华为S5700配置--VLAN

#添加Vlan
<Quidway> system-view
[Quidway] vlan 10
[Quidway-vlan10] quit
 

#设定端口模式
<Quidway> system-view
[Quidway] int gigabitethernet 0/0/1
[Quidway-GigabitEthernet0/0/1] port link-type access
//默认为trunk,需在将端口划入VLAN前转为ACCESS口,如果出现

Error: Please renew the default configurations,则需先从VLAN中删除该端口再设成ACCESS。

[Quidway-GigabitEthernet0/0/1]quit
 

#将端口加入Vlan
<Quidway> system-view
[Quidway] vlan 10
[Quidway-vlan10] port gigabitethernet 0/0/1 to 0/0/23
[Quidway-Vlan10] quit

#设置Trunk
<Quidway> system-view
[Quidway] interface GigabitEthernet 0/0/24
[Quidway-GigabitEthernet0/0/24] port link-type trunk
[Quidway-GigabitEthernet0/0/24] port trunk allow-pass vlan 10  //不设置此条的话,VLAN10会处于DOWN的状态

 

你可能感兴趣的:(华为,VLAN,S5700)