1. 程式人生 > >華為交換機telnet配置

華為交換機telnet配置

希望 best 互相ping通 pre interface 網段 http ofo 級別

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]quit

OK,打工告成。這時候應該是可以telnet到交換機的。按照我的步驟來,第一步搞定後邊就沒問題了,我做過N回的。全部是手打的,希望能幫到你。

華為交換機telnet配置