HCNA配置telnet遠程管理
阿新 • • 發佈:2017-12-08
ret eth urn 拓撲圖 路由器 loopback data -- ati
1、拓撲圖
說明:通過配置最終能通過R5 用telnet協議登陸到R4上並將R4改名為R44
2、R4配置
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R4
[R4]user-in
[R4]user-interface vty
[R4]user-interface vty 0 4
[R4-ui-vty0-4]au
[R4-ui-vty0-4]authentication-mode aaa
[R4-ui-vty0-4]q
[R4]aaa
[R4-aaa]lo
[R4 -aaa]local-user user
[R4-aaa]local-user user-telnet pass
[R4-aaa]local-user user-telnet password ci
[R4-aaa]local-user user-telnet password cipher huawei
Info: Add a new user.
[R4-aaa]lo
[R4-aaa]local-user pri
[R4-aaa]local-user user
[R4-aaa]local-user user-telnet pri
[R4 -aaa]local-user user-telnet privilege le
[R4-aaa]local-user user-telnet privilege level 2
[R4-aaa]loc
[R4-aaa]local-user user
[R4-aaa]local-user user-telnet serv
[R4-aaa]local-user user-telnet service-type tel
[R4-aaa]local-user user-telnet service-type telnet
[R4-aaa]
[R4-aaa]
[R4 -aaa]q
[R4]int
[R4]interface g
[R4]interface GigabitEthernet 0/0/0
[R4-GigabitEthernet0/0/0]ip add
[R4-GigabitEthernet0/0/0]ip address 192.168.1.10 24
Dec 7 2017 22:21:26-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R4-GigabitEthernet0/0/0]q
[R4]dis ip int
[R4]dis ip interface bre
[R4]dis ip interface bre
^
Error: Wrong parameter found at ‘^‘ position.
[R4]dis ip interface bri
[R4]dis ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 2
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.10/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
[R4]
[R44]
3、R5配置並進行測試
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R5
[R5]int
[R5]interface g
[R5]interface GigabitEthernet 0/0/0
[R5-GigabitEthernet0/0/0]ip add
[R5-GigabitEthernet0/0/0]ip address 192.168.1.20 24
Dec 7 2017 22:22:37-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R5-GigabitEthernet0/0/0]q
[R5]dis ip in
[R5]dis ip interface bri
[R5]dis ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 2
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.20/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
[R5]ping 192.168.1.10
PING 192.168.1.10: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.10: bytes=56 Sequence=1 ttl=255 time=160 ms
Reply from 192.168.1.10: bytes=56 Sequence=2 ttl=255 time=40 ms
Reply from 192.168.1.10: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 192.168.1.10: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 192.168.1.10: bytes=56 Sequence=5 ttl=255 time=10 ms
--- 192.168.1.10 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/50/160 ms
[R5]telnet 192.168.1.10
^
Error: Unrecognized command found at ‘^‘ position.
[R5]tel
[R5]telnet 192.168.1.10
^
Error: Unrecognized command found at ‘^‘ position.
[R5]q
<R5>tel
<R5>telnet 192.168.1.10
Press CTRL_] to quit telnet mode
Trying 192.168.1.10 ...
Connected to 192.168.1.10 ...
Login authentication
Username:user-telnet
Password:
<R4>dis ip in
<R4>dis ip interface br
<R4>dis ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 2
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.10/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
<R4>sysname R44
^
Error: Unrecognized command found at ‘^‘ position.
<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]sysname R44
[R44]
註意:telnet只能在用戶模式上用
創建用戶步驟
1、system-view進入系統模式
2、user-interface vty 0 4 進入vty視圖
3 、允許AAA授權,退出vty
4、進入AAA模式 進入AAA視圖
5、添加用戶 local-user user-telnet password ciper huawei
6、授權用戶級別2+ local-user user-telnet privileges level 2
7、授權用戶可用協議 local-user user-telnet service-type telnet
8、退出
9、從另外一臺路由器登陸測試,前提是IP配置好互相能ping 通
HCNA配置telnet遠程管理