The source includes both single-tag and double-tag examples and shows how to verify each mode.
Before you begin
Identify the physical interface, subinterface number, and VLAN IDs that the service requires.
Procedure
|
1. |
Create the Layer 2 subinterface.
Example:
Router# configure
Router(config)# interface HundredGigE 0/0/0/10.1 l2transport
|
|
2. |
Configure encapsulation for the required service type.
Example:
Router(config-if)# encapsulation dot1q 10
For a double-tag service, the source uses:
Router# configure
Router(config)# interface HundredGigE 0/0/0/10.1 l2transport
Router(config-if)# encapsulation dot1ad 200 dot1q 201
|
|
3. |
Bring the subinterface up.
Example:
Router(config-if)# no shutdown
|
|
4. |
Use the show interfaces hundredGigE 0/0/0/29.300 command to verify that the VLAN subinterface is active in a double-tag scenario.
Example:
Router# show interfaces hundredGigE 0/0/0/29.300
HundredGigE0/0/0/29.300 is up, line protocol is up
Interface state transitions: 1
Hardware is VLAN sub-interface(s), address is 0029.c201.3f0c
Internet address is Unknown
MTU 1518 bytes, BW 100000000 Kbit (Max: 100000000 Kbit)
reliability 255/255, txload 0/255, rxload 0/255
Encapsulation 802.1Q Virtual LAN, VLAN Id 300, loopback not set,
Last link flapped 00:00:19
Last input never, output never
Last clearing of "show interface" counters never
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 total input drops
0 drops for unrecognized upper-level protocol
Received 0 broadcast packets, 0 multicast packets
0 packets output, 0 bytes, 0 total output drops
Output 0 broadcast packets, 0 multicast packets
|
|
5. |
Use the show interface HundredGigE 0/0/0/29.200 command to verify that the VLAN subinterface is active in a double-tag scenario.
Example:
Router# show interface HundredGigE 0/0/0/29.200
HundredGigE0/0/0/29.200 is up, line protocol is up
Interface state transitions: 1
Hardware is VLAN sub-interface(s), address is 0029.c201.3f0c
Internet address is 40.40.50.1/24
MTU 1522 bytes, BW 100000000 Kbit (Max: 100000000 Kbit)
reliability 255/255, txload 0/255, rxload 0/255
Encapsulation 802.1ad-802.1Q Virtual LAN,
Last link flapped 00:01:25
ARP type ARPA, ARP timeout 04:00:00
Last input never, output never
Last clearing of "show interface" counters never
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 total input drops
0 drops for unrecognized upper-level protocol
Received 0 broadcast packets, 0 multicast packets
0 packets output, 0 bytes, 0 total output drops
Output 0 broadcast packets, 0 multicast packets
Successful verification shows the interface up and the encapsulation line for each scenario.
|