基于IP子網(wǎng)劃分VLAN 在Switch上配置VLAN10與IP地址172.16.1.0/24關(guān)聯(lián),,優(yōu)先級為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標簽的數(shù)據(jù)后再次封裝外層標簽為vlan 100 |
|