一、基础知识
二、场景
三、配置
SW1
interface GigabitEthernet0/0/1
port link-type trunk port trunk allow-pass vlan 20 30#interface GigabitEthernet0/0/2 port link-type access port default vlan 20#interface GigabitEthernet0/0/3 port link-type access port default vlan 30#SW2
interface GigabitEthernet0/0/1
port link-type dot1q-tunnel port default vlan 10#interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 10SW3
interface GigabitEthernet0/0/1
port link-type trunk port trunk allow-pass vlan 10#interface GigabitEthernet0/0/2 port link-type dot1q-tunnel port default vlan 10#SW4
interface GigabitEthernet0/0/1
port link-type trunk port trunk allow-pass vlan 20 30#interface GigabitEthernet0/0/2 port link-type access port default vlan 20#interface GigabitEthernet0/0/3 port link-type access port default vlan 30业务名称 | vlan区间 | 外层vlan |
租户1 | 20 | 10 |
租户2 | 30 | 10 |
PC1中的数据——>进入SW2的GE0/0/1的报文封装外层vlan 10,反之相同
SW2<——>SW3允许VLAN10的报文通过