【思唯网络】华为 交换机VLAN的划分如何配置?
基于IP子网划分VLAN
在Switch上配置VLAN10与IP地址172.16.1.0/24关联,优先级为2。
ip-subnet-vlan 1 ip 172.16.2.0 255.255.255.0 priority 2
[Switch] vlan 100[Switch-vlan100] ip-subnet-vlan 1 ip 192.168.1.2 24 priority 2
[LSW]vlan 100
[LSW-vlan100]protocol-vlan ipv4
[LSW-vlan100]protocol-vlan ipv6
[LSW-vlan100]protocol-vlan ?
[LSW1-GigabitEthernet0/0/1]port link-type ?
[Huawei-GigabitEthernet0/0/1]port link-type hybrid #将此接口类型配置为hybrid(混杂接口)
[LSW1-port-group-link-type]port link-type trunk
[LSW1-port-group-link-type]port link-type access
[LSW-1-GigabitEthernet0/0/1]qinq vlan-translation enable #开启此接口的qinq多vlan标签处理功能
[LSW-1-GigabitEthernet0/0/1]port vlan-stacking vlan 10 stack-vlan 100 #配置此接口收到带有vlan 10标签的数据后再次封装外层标签为vlan 100
赞 (0)