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

合集下载
相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

[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

相关文档
最新文档