HCIP-7.4 hybrid接口特殊用法(下)
根据MAC地址划分vlan
SW1:
vlan batch 10 20 30 40
dhcp enable
ip pool aa
net 192.168.10.0 mask 24
gateway-list 192.168.10.1
ip pool bb
net 192.168.20.0 mask 24
gateway-list 192.168.20.1
#
int vlanif10
ip add 192.168.10.1 24
dhcp select global
#
int vlanif20
ip add 192.168.20.1 24
dhcp select global
#
port-g g g0/0/1 to g0/0/24
port hybrid untagged 10 20 30 40
mac-vlan enable
#
vlan 10
mac-vlan mac-address 5489-9822-75A6
#
vlan 20
mac-vlan mac-address 5489-98D1-45E9
调试命令:
dis mac-address
单播互通,广播隔离。
本文链接:https://www.orcy.net.cn/3932.html,转载请附上原文出处链接
发表评论