华为交换机telnet配置

1.在路由器上和交换机相连的借口上配置一个IP地址:好比192.168.1.1 24

2.在交换机上配置以下:
<switch>system-view
[switch]vlan 10
[switch-vlan10]quit
[switch]interface vlan 10
[switch-vlanif 10]ip address 192.168.1.2 24 //保证和路由器的IP在同一网段
[switch-vlanif 10]quit

[switch]interface ethernet 0/0/1
[switch-interface ethernet 0/0/1]port hybrid untagged vlan 10 //untag方式加入vlan10
[switch-interface ethernet 0/0/1]quit
//作完上述配置后,在路由器和交换机上192.168.1.1和192.168.1.2应该能够互相ping通。

3.而后就是在交换机上配置telnet登陆命令:
[switch]aaa
[switch-aaa]local-user admin password simple admin //2个admin分别是帐号密码,能够自设
[switch-aaa]local-user admin privilege level 3 //设置帐号级别,3为最高级
[switch-aaa]local-user service-type telnet //设置本地帐号服务类型是telnet[switch-aaa]quit [switch]user-interface vty 0 4[switch-user-vty0-4]authentication-mode aaa //设置登陆用户验证方式为aaa,在刚才设置帐号那块设置了帐号密码[switch-user-vty0-4]protocol bind all // 绑定用户协议为所有,包括telnet/ftp/ssh。就是这些方式登陆交换机的时候都使用这个用户界面。[switch-user-vty0-4]quitOK,打工告成。这时候应该是能够telnet到交换机的。按照个人步骤来,第一步搞定后边就没问题了,我作过N回的。所有是手打的,但愿能帮到你。
相关文章
相关标签/搜索