一、基礎知識
二、場景
三、配置
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 10
SW3
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的報文通過