华为交换机S5700配置VLAN和VLANif

?? system-view/由用户视图进入系统视图
[HuaWei-S5700-01]vlan 2/创建并进入vlan2
[HuaWei-S5700-01-vlan2]port GigabitEthernet 0/0/1 to 0/0/12/添加1-12端口到vlan2
Error: Trunk or Hybrid port(s) can not be added or deleted in this manner./报错:不能添加Hybrid 混合端口 需要将端口模式改为access模式才可以继续
Access、Hybrid和Trunk三种模式的理解
http://blog.csdn.net/liunianchao/article/details/50000055


[HuaWei-S5700-01]int GigabitEthernet 0/0/2
[HuaWei-S5700-01-GigabitEthernet0/0/2]port link-type access
[HuaWei-S5700-01-GigabitEthernet0/0/2]quit
[HuaWei-S5700-01]int GigabitEthernet 0/0/3
[HuaWei-S5700-01-GigabitEthernet0/0/3]port link-type access
[HuaWei-S5700-01-GigabitEthernet0/0/3]quit/进入每一个端口将Hybrid模式改为access模式
... ...
[HuaWei-S5700-01-vlan2]port GigabitEthernet 0/0/1 to 0/0/12/添加1-12端口到vlan2
HuaWei-S5700-01]dis vlan
【华为交换机S5700配置VLAN和VLANif】华为交换机S5700配置VLAN和VLANif
文章图片

[HuaWei-S5700-01]interface Vlanif 2
[HuaWei-S5700-01-Vlanif2]ip address 172.16.8.1 255.255.0.0/配置vlanif ip地址

    推荐阅读