搜档网
当前位置:搜档网 › H3C华三四种VLAN划分方式基于端口VLAN、基于MAC地址VLAN、基于协议Vlan、基于子网VLAN

H3C华三四种VLAN划分方式基于端口VLAN、基于MAC地址VLAN、基于协议Vlan、基于子网VLAN

[H3C]dis curr
#
version 5.20, Alpha 1011
#
sysname H3C
#
password-control login-attempt 3 exceed lock-time 120
#
undo voice vlan mac-address 00e0-bb00-0000
mac-vlan mac-address 00e0-fc00-0201 vlan 20 priority 0
mac-vlan mac-address 00e0-fc00-0221 vlan 10 priority 0
mac-vlan mac-address 00e0-fc00-f221 vlan 20 priority 0
mac-vlan mac-address 00e0-fc00-e221 vlan 10 priority 0
mac-vlan mac-address 00e0-fce0-e221 vlan 10 priority 0
mac-vlan mac-address 00e0-dce0-e221 vlan 10 priority 0
mac-vlan mac-address 02e0-dce0-e221 vlan 10 priority 0
#
ipsec cpu-backup enable
#
undo cryptoengine enable
#
domain default enable system
#
vlan 1
#
vlan 10
description MAC-VLAN
#
vlan 20
description MAC-VLAN
#
vlan 30
description PORT-VLan
#
vlan 40
description PORT-VLan
#
vlan 50
description IPSUB-VLAN
ip-subnet-vlan 0 ip 192.168.50.0 255.255.255.0
#
vlan 60
description IPSUB-VLAN
ip-subnet-vlan 1 ip 192.168.60.0 255.255.255.0
#
vlan 110
description PROTOCAL-VLAN
protocol-vlan 0 ipv4
#
vlan 120
description PROTOCAL-VLAN
protocol-vlan 0 ipv6
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
interface NULL0
#
interface Vlan-interface20
ip address 192.168.1.1 255.255.255.0
#
interface Ethernet0/4/0
port link-mode bridge
port link-type hybrid
port hybrid vlan 1 10 20 untagged
mac-vlan enable
#
interface Ethernet0/4/1
port link-mode bridge
port link-type hybrid
port hybrid vlan 1 10 20 untagged
mac-vlan enable
#
interface Ethernet0/4/2
port link-mode bridge
port access vlan 30
#
interface Ethernet0/4/3
port link-mode bridge
port access vlan 40
#
interface Ethernet0/4/4
port link-mode bridge
port link-type hybrid
port hybrid vlan 1 50 60 untagged
port hybrid ip-subnet-vlan vlan 50
port hybrid ip-subnet-vlan vlan 60
#
interface Ethernet0/4/5
port link-mode bridge
port link-type hybrid
port hybrid vlan 1 50 60 untagged
port hybrid ip-subnet-vlan vlan 50
port hybrid ip-subnet-vlan vlan 60
#
interface Ethernet0/4/6
port link-mode bridge
port link-type hybrid
port hybrid vlan 1 110 120 untagged
port hybrid protocol-vlan vlan 110 0
port hybrid protocol-vlan vlan 120 0
#
interface Ethernet0/4/7
port link-mode bridge
port link-type hybrid
port hybrid vlan 1 110 120 untagged
port hybrid protocol-vlan vlan 110 0
port hybrid protocol-vlan vlan 120 0
#
load xml-configuration
#
user-interface con 0
user-interface vty 0 4
#
return

相关主题