華三交換機基礎配置


1.配置主機名及VLAN

1 system-view
2 hostname SW1   //改主機名稱
3 vlan 100      //創建VLAN
4 interface vlan 100    
5 ip address 192.168.1.255 24 //配置vlan IP地址及24位掩碼
6 quit

 

2.批量配置端口

1 interface range GigabitEthernet 1/0/1 to GigabitEthernet 1/0/20    //批量配置端口
2 port link-type access                     //設置端口為access模式
3 port access vlan 100                     //設備端口所屬vlan
4 display interface brief                 //查看端口狀態
5 quit

 

3.開啟 ssh遠程登錄

 1 ssh server enable 
 2 line vty 0 4
 3 authentication-mode scheme
 4 user-role network-admin
 5 user-role network-operator
 6 protocol inbound ssh
 7 quit
 8 local-user admin class manage    //配置登錄用戶名
 9 service-type ssh telnet
10 authorization-attribute user-role level-15
11 authorization-attribute user-role network-admmin
12 authorization-attribute user-role network-operator
13 password simple 123456           //配置登錄密碼

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM