h3c vlan配置
[SWA]vlan 10 #創建VLAN
[SWA-vlan10]port Ethernet1/0/1 #向當前VLAN添加端口
[SWA]vlan 20 #創建VLAN
[SWA-vlan20]port Ethernet1/0/2 #向當前VLAN添加端口
[SWA]interface Ethernet1/0/24 #進入端口
[SWA-Ethernet1/0/24]port link-type trunk #配置端口的鏈路類型為Trunk類型
[SWA-Ethernet1/0/24]port trunk permit vlan 10 20 #允許指定的VLAN通過當前Trunk端口
2、基於協議的VLAN配置命令
[SWA]vlan 10 #創建VLAN
[SWA-vlan10]protocol-vlan ipv4 #指定協議模板
[SWA]interface Ethernet 1/0/1 #進入端口
配置Hybrid端口與基於協議的VLAN關聯
[SWA-Ethernet1/0/1]port link-type hybrid
[SWA-Ethernet1/0/1]port hybrid vlan 10 20 untagged
[SWA-Ethernet1/0/1]port hybrid protocol-vlan vlan 10 0
3、基於IP子網的VLAN配置命令
[SWA]vlan 10 #創建VLAN
[SWA-vlan10]ip-subnet-vlan ip 10.10.10.0 255.255.255.0 #配置當前VLAN與指定的IP子網關聯
[SWA]interface Ethernet 1/0/1
[SWA-Ethernet1/0/1]port link-type hybrid
[SWA-Ethernet1/0/1]port hybrid vlan 10 20 untagged
[SWA-Ethernet1/0/1]port hybrid ip-subnet-vlan vlan 10 #配置當前端口與基於IP子網的VLAN關聯
4、配置MVRP
[SWA]vlan 10
[SWA]mvrp global enable 開啟全局MVRP功能
[SWA-Ethernet1/0/24]port link-type trunk
[SWA-Ethernet1/0/24]port trunk permit vlan all
[SWA-Ethernet1/0/24]mvrp enable 開啟端口的MVRP功能
[SWA-Ethernet1/0/24]mvrp registration fixed 配置MVRP註冊模式
**配置Periodic定時器、Join定時器、Leave定時器和Leaveall定時器
[Switch-Ethernet1/0/1] mrp timer {periodic | join | leave | leaveall} timer-value
h3c vlan配置