華爲交換機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回的。所有是手打的,但願能幫到你。
相關文章
相關標籤/搜索