配置Dot1q终结子接口实现同设备VLAN间通信示例

示例图

一.实验目的

1.配置Dot1q终结子接口实现同设备VLAN间通信示例

二.注意事项

1.Dot1q终结子接口和QinQ终结子接口不支持透传不带VLAN Tag的报文,
  收到不带VLAN Tag的报文会直接丢弃
2.由于三层以太网子接口不支持VLAN报文,当它收到VLAN报文时,会将VLAN报文当成是
  非法报文而丢弃,因此,需要在子接口上将VLAN Tag剥掉,也就是需要VLAN终结
3.配置某个VLAN为子接口的终结VLAN后,该VLAN不能再配置为Super-VLAN或Sub-VLAN

三.简单配置

AR1

sysname AR1
#
interface GigabitEthernet0/0/0.1
 dot1q termination vid 10
 ip address 10.10.10.1 255.255.255.0 
 arp broadcast enable
#
interface GigabitEthernet0/0/1.1
 dot1q termination vid 20
 ip address 10.10.20.1 255.255.255.0 
 arp broadcast enable
#
return

AR2

sysname AR2
#
vlan batch 10
#
interface Ethernet0/0/0
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10
#
return

AR3

sysname AR3
#
vlan batch 20
#
interface Ethernet0/0/0
 port link-type trunk
 port trunk allow-pass vlan 20
#
interface Ethernet0/0/1
 port link-type access
 port default vlan 20
#
return

你可能感兴趣的:(VLAN终结/以太网子接口,VLAN,数通,网络)