实验使用USG5500防火墙 ,
<SRG>system-view
[SRG]interface g0/0/0
[SRG-GigabitEthernet0/0/0]ip address 192.168.1.1 24 接口配置地址
[SRG-GigabitEthernet0/0/0]display this(显示当前配置)
[SRG-GigabitEthernet0/0/0]service-manage enable 开启服务
[SRG-GigabitEthernet0/0/0]service-manage telnet permit 允许telnet网管防火墙
[SRG-GigabitEthernet0/0/0]quit 退出
[SRG]user-interface vty 0 4 设置虚拟终端
[SRG-ui-vty0-4]authentication-mode aaa 认证方式AAA
[SRG-ui-vty0-4]protocol inbound telnet 定义telent流量
[SRG-ui-vty0-4]quit
[SRG]aaa
[SRG-aaa]local-user 111 password cipher 666
[SRG-aaa]local-user 111 service-type telnet
[SRG-aaa]local-user 111 level 3
[SRG-aaa]q
路由器配置
<Huawei>system-view
[Huawei]sysname R2
[R2]interface e0/0/0
[R2-Ethernet0/0/0]ip address 192.168.1.2 24
[R2-Ethernet0/0/0]
[R2-Ethernet0/0/0]q
验证
[R2]q
[R2]quit
<R2>
<R2>
<R2>
<R2>tel
<R2>telnet 192.168.1.1
原文地址:http://blog.51cto.com/ronning/2112736