|
Command or Action |
Purpose |
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
-
Enter your password if prompted.
|
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode. |
|
interface type slot /subslot/port
Example:
Router(config)# interface gigabitethernet 1/0/0
|
Configures an interface and enters interface configuration mode. |
|
dot1q tunneling ethertype ethertype
Example:
Router(config-if)# dot1q tunneling ethertype 0x9100
|
(Optional) Defines the Ethertype field type used by peer devices when implementing QinQ VLAN tagging.
-
Use this command if the Ethertype of peer devices is 0x9100 or 0x9200.
|
|
exit
Example:
Router(config-if)# exit
|
Exits the interface configuration mode. |
|
interface type slot /subslot/port[.subinterface]
Example:
Router(config-if)# interface gigabitethernet 1/0/0.1
|
Configures a subinterface and enters subinterface configuration mode. |
|
encapsulation dot1q vlan-id second-dot1q {any | vlan-id| vlan-id - vlan-id[, vlan-id - vlan-id]}
Example:
Router(config-subif)# encapsulation dot1q 100 second-dot1q 200
|
(Required) Enables the 802.1Q encapsulation of traffic on a specified subinterface in a VLAN.
-
Use the second-dot1q keyword and the vlan-idargument to specify the VLAN tags to be terminated on the subinterface.
-
In this example, an unambiguous QinQ subinterface is configured because only one inner VLAN ID is specified.
-
QinQ frames with an outer VLAN ID of 100 and an inner VLAN ID of 200 will be terminated.
|
|
pppoe enable [group group-name]
Example:
Router(config-subif)# pppoe enable group vpn1
|
(Optional) Enables PPPoE sessions on a subinterface.
-
The example specifies that the PPPoE profile, vpn1, will be used by PPPoE sessions on the subinterface.
Note |
This step is required only for PPPoEoQinQ. |
|
|
ip address ip-address mask [secondary]
Example:
Router(config-subif)# ip address 192.168.1.2 255.255.255.0
|
(Optional) Sets a primary or secondary IP address for a subinterface.
-
The example enables IP on the subinterface specified by the IP address, 192.168.1.2, and mask, 255.255.255.0.
Note |
This step is required only for IPoQinQ. |
|
|
exit
Example:
Router(config-subif)# exit
|
Exits subinterface configuration mode. |
|
Repeat Step 6 to configure another subinterface.
Example:
Router(config-if)# interface gigabitethernet 1/0/0.2
|
(Optional) Configures a subinterface and enters subinterface configuration mode. |
|
Repeat Step 7, Step 8, and Step 9, as required, to specify the VLAN tags to be terminated on the subinterface.
Example:
Router(config-subif)# encapsulation dot1q 100 second-dot1q 100-199,201-600
Example:
Router(config-subif)# pppoe enable group vpn1
Example:
Router(config-subif)# ip address 192.168.1.2 255.255.255.0
|
Specifies the VLAN tags to be terminated on the subinterface, to enable PPPoE sessions or IP on the subinterface.
-
Use the second-dot1q keyword and the vlan-idargument to specify the VLAN tags to be terminated on the subinterface.
-
In the example, an ambiguous QinQ subinterface is configured because a range of inner VLAN IDs is specified.
-
QinQ frames with an outer VLAN ID of 100 and an inner VLAN ID in the range of 100 to 199 or 201 to 600 will be terminated.
-
Step 7 enables the 802.1Q encapsulation of traffic on a specified subinterface in a VLAN.
-
Step 8 enables PPPoE sessions on the subinterface. The example specifies that the PPPoE profile, vpn1, will be used by PPPoE sessions on the subinterface.
-
Step 9 enables IP on a subinterface specified by the IP address and mask. The example enables IP on the subinterface specified by the IP address, 192.168.1.2, and mask, 255.255.255.0.
Note |
Both PPPoE sessions and IP can be enabled on a subinterface. |
|
|
end
Example:
Router(config-subif)# end
|
Exits subinterface configuration mode and returns to privileged EXEC mode. |