华三交换机基础配置

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           //配置登录密码
原文地址:https://www.cnblogs.com/gray0/p/14435534.html