H3C S2126-EI以太网交换机vlan的划分

H3C S2126-EI以太网交换机

 

1.system-view//进入系统视图
vlan 10//创建vlan 10
vlan 20
vlan 30
vlan 40
vlan 50
vlan 60
vlan 70
创建10到70的vlan

然后添加指定端口创建好的vlan中去。

display vlan all//显示所有创建的vlan 10-70

2.在vlan10-70里面添加成员端口
vlan 10
port Ethernet 1/0/1 to Ethernet 1/0/2 //在vlan 10中添加1-2端口

vlan 20
port Ethernet 1/0/3 to Ethernet 1/0/7 //在vlan 20中添加3-7端口

vlan 30
port Ethernet 1/0/8 to Ethernet 1/0/12 //在vlan 30中添加8-12端口

vlan 40
port Ethernet 1/0/13 to Ethernet 1/0/14 //在vlan 40中添加13-14端口

vlan 50
port Ethernet 1/0/15 to Ethernet 1/0/16 //在vlan 50中添加15-16端口

vlan 60
port Ethernet 1/0/17 to Ethernet 1/0/18 //在vlan 60中添加17-18端口

vlan 70
port Ethernet 1/0/19 to Ethernet 1/0/22 //在vlan 70中添加19-22端口

3.公共的端口为23-26 口作trunk

interface Ethernet 1/0/23//进入端口模式
port link-type trunk//设置端口工作模式trunk
port trunk permit vlan 10//设trunk允许的VLAN
port trunk permit vlan 20
port trunk permit vlan 30
port trunk permit vlan 40
port trunk permit vlan 50
port trunk permit vlan 60
port trunk permit vlan 70

interface Ethernet 1/0/24//进入端口模式
port link-type trunk//设置端口工作模式trunk
port trunk permit vlan 10//设trunk允许的VLAN
port trunk permit vlan 20
port trunk permit vlan 30
port trunk permit vlan 40
port trunk permit vlan 50
port trunk permit vlan 60
port trunk permit vlan 70

interface Ethernet 1/1/1//进入端口模式
port link-type trunk//设置端口工作模式trunk
port trunk permit vlan 10//设trunk允许的VLAN
port trunk permit vlan 20
port trunk permit vlan 30
port trunk permit vlan 40
port trunk permit vlan 50
port trunk permit vlan 60
port trunk permit vlan 70

interface Ethernet 1/2/1//进入端口模式
port link-type trunk//设置端口工作模式trunk
port trunk permit vlan 10//设trunk允许的VLAN
port trunk permit vlan 20
port trunk permit vlan 30
port trunk permit vlan 40
port trunk permit vlan 50
port trunk permit vlan 60
port trunk permit vlan 70

4.添加vlan1 ip地址
system-view
interface vlan-interface 1
ip address xxx.xxx.xxx.xxx 255.255.255.0
quit
ip route-static 0.0.0.0 0.0.0.0 xxx.xxx.xxx.xxx


5.添加用户名密码
system-view
local-user admin
service-type telnet level 3
password simple administrator
display web user

最后别忘记save保存哦
然后reboot启动h3c交换机

你可能感兴趣的:(职场,h3c,休闲,S2126-EI)