根據上圖完成配置,使用ping命令來測試pc1與pc2連通性,2 》可以用R2/R3 telent到R1 并将vty權限設置為3
R2配置如下;
<Huawei>sy
Enter system view, return user view with Ctrl Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ADD 10.1.1.1 24
May 3 2018 14:54:04-08:00 Huawei %IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]
[Huawei-GigabitEthernet0/0/0]q
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add
^
Error:Incomplete command found at '^' position.
[Huawei-GigabitEthernet0/0/1]ip add 192.168.2.254 24
May 3 2018 14:55:35-08:00 Huawei %IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]q
[Huawei]vlan 2 <因為pc2鍊接R2的是e0/0/0口 為以太網口屬于二層 要創建vlan 才能配置》
[Huawei-vlan2]q
[Huawei]int e0/0/0
[Huawei-Ethernet0/0/0]port link-t
[Huawei-Ethernet0/0/0]port link-type access
[Huawei-Ethernet0/0/0]port defa vlan 2
[Huawei-Ethernet0/0/0]port defa vlan 2
[Huawei-Ethernet0/0/0]
[Huawei-Ethernet0/0/0]q
[Huawei]int vlan 2
May 3 2018 14:56:48-08:00 Huawei %IFNET/4/IF_STATE(l)[2]:Interface Vlanif2 h
as turned into UP state.
[Huawei-Vlanif2]ip add 192.168.1.254 244
^
Error: Wrong parameter found at '^' position.
[Huawei-Vlanif2]ip add 192.168.1.254 24
設備R3配置如上的g口配置方法
設備R1配置如下:
<Huawei>sys
Enter system view, return user view with Ctrl Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]10.1.1.254 24
^
Error: Unrecognized command found at '^' position.
[Huawei-GigabitEthernet0/0/0]ip add 10.1.1.254 24
May 3 2018 14:51:08-08:00 Huawei %IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]q
[Huawei]aaa
[Huawei-aaa]lo
[Huawei-aaa]local-user admin pass
[Huawei-aaa]local-user admin password cip
[Huawei-aaa]local-user admin password cipher hello pri
[Huawei-aaa]local-user admin(admin是用戶名) password cipher hello(hello是密碼) privilege lev
[Huawei-aaa]local-user admin password cipher hello privilege level 3(vty級别) ps:用戶名和密碼是創建新的
[Huawei-aaa]loc
[Huawei-aaa]local-user admin ser
[Huawei-aaa]local-user admin service-type tel
[Huawei-aaa]local-user admin service-type telnet
[Huawei-aaa]q
[Huawei]user
[Huawei]user-group
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]auth
[Huawei-ui-vty0-4]authentication-mode aaa(将telnet的認證變為aaa)
[Huawei-ui-vty0-4]q
[Huawei]
設置好之後我們來測試pc1與pc2是否能ping通
再用R2 telnet R1 看是否可以進入系統視圖
[Huawei]sysname R2
[R2]
[R2]
<R2>telnet 10.1.1.254
Press CTRL_] to quit telnet mode
Trying 10.1.1.254 ...
Connected to 10.1.1.254 ...
Login authentication
Username:admin
Password:
-----------------------------------------------------------------------------
User last login information:
-----------------------------------------------------------------------------
Access Type: Telnet
IP-Address : 10.1.1.2
Time : 2018-05-03 14:59:54-08:00
-----------------------------------------------------------------------------
<R1>sy
Enter system view, return user view with Ctrl Z.
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]dis this
[V200R003C00]
#
interface GigabitEthernet0/0/0
ip address 10.1.1.254 255.255.255.0
#
return
[R1-GigabitEthernet0/0/0]
可以進入并查看配置 實驗結束
,更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!