基于接口的qinq实验
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
基于接口的qinq实验
Sw1:
vlan batch 200 300 400
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 200
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 200
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 300
#
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 300 400 #
interface GigabitEthernet0/0/5
port link-type access
port default vlan 400
sw2:
vlan batch 200 300 400
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 200
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 300
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 200
#
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 300 400 #
interface GigabitEthernet0/0/5
port link-type access
port default vlan 400
sw2:
vlan batch 3
interface GigabitEthernet0/0/1
port link-type dot1q-tunnel
port default vlan 3
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 3
sw3:
vlan batch 3
interface GigabitEthernet0/0/1
port link-type dot1q-tunnel
port default vlan 3
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 3
测试:
Pc1ping pc2
然后在sw2和sw3之间的接口抓包