Here's a Cisco link in configuring QinQ (802.1ad) or double VLAN tagging in a Cisco IOS-XE router.
SUMMARY STEPS
- enable
- configure terminal
- interface type number
- dot1q tunneling ethertype ethertype
- interface type number . subinterface-number
- encapsulation dot1q vlan-id second-dot1q {any | vlan-id | vlan-id - vlan-id [ vlan-id - vlan-id ]}
- pppoe enable [group group-name ] [max-sessions max-sessions-number ]
- exit
- Repeat Step 5 to configure another subinterface.
- Repeat Step 6 and Step 7 to specify the VLAN tags to be terminated on the subinterface.
- end
Router(config)#interface GigabitEthernet0/0/1
Router(config-if)#dot1q ?
tunneling dot1q tunneling configuration
Router(config-if)#dot1q tunneling ?
ethertype ethertype used for dot1q tunneling packets
Router(config-if)#dot1q tunneling ethertype ?
0x88A8 dot1q tunneling etype 0x88A8
0x9100 dot1q tunneling etype 0x9100
0x9200 dot1q tunneling etype 0x9200
Router(config-if)#dot1q tunneling ethertype 0x88A8
Router(config-if)#end
Router#show run interface Gi0/0/1
Building configuration...
Current configuration : 173 bytes
!
interface GigabitEthernet0/0/1
no ip address
negotiation auto
dot1q tunneling ethertype 0x88A8
end
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/0/1.210
Router(config-subif)#encapsulation ?
dot1Q IEEE 802.1Q Virtual LAN
priority-tagged Priority-tagged (VLAN 0)
Router(config-subif)#encapsulation dot1q ?
<1-4094> IEEE 802.1Q VLAN ID required
Router(config-subif)#encapsulation dot1q 20 ?
native Make this as native vlan
second-dot1q Configure this
subinterface as a 1Q-in-1Q subinterface
<cr> <cr>
Router(config-subif)#encapsulation dot1q 20 second-dot1q ?
WORD Second (inner) VLAN IDs e.g.
100,200-300,400,500-600
any All Inner VLAN IDs not configured on another subinterface
Router(config-subif)#encapsulation dot1q 20 second-dot1q 200
Router(config-subif)#end
Router#show run interface Gi0/0/1.200
Building configuration...
Current configuration : 216 bytes
!
interface GigabitEthernet0/0/1.200
encapsulation dot1Q 20 second-dot1q 200
ip vrf forwarding CUSTOMER-A
ip address 192.168.200.1 255.255.255.0
end
No comments:
Post a Comment