How to Configure 802.1Q VLAN Interfaces
This section contains the following procedures:
Configuring 802.1Q VLAN Subinterfaces
This task explains how to configure 802.1Q VLAN subinterfaces. To remove these subinterfaces, see the “Removing an 802.1Q VLAN Subinterface” section.
SUMMARY STEPS
- configure
- interface {TenGigE | FortyGigE | HundredGigE | Bundle-Ether} interface-path-id.subinterface
- encapsulation dot1q
- ipv4 address ip-address mask
- exit
- Repeat Step 2 through Step 5 to define the rest of the VLAN subinterfaces.
- end or commit
- show ethernet trunk bundle-ether instance
DETAILED STEPS
Step 1 |
configure Example:
Enters global configuration mode. |
Step 2 |
interface {TenGigE | FortyGigE | HundredGigE | Bundle-Ether} interface-path-id.subinterface Example:
Enters subinterface configuration mode and specifies the interface type, location, and subinterface number.
|
Step 3 |
encapsulation dot1q Example:
Sets the Layer 2 encapsulation of an interface. |
Step 4 |
ipv4 address ip-address mask Example:
Assigns an IP address and subnet mask to the subinterface.
|
Step 5 |
exit Example:
(Optional) Exits the subinterface configuration mode.
|
Step 6 |
Repeat Step 2 through Step 5 to define the rest of the VLAN subinterfaces. — |
Step 7 |
end or commit Example:
or
Saves configuration changes.
|
Step 8 |
show ethernet trunk bundle-ether instance Example:
(Optional) Displays the interface configuration. The Ethernet bundle instance range is from 1 through 65535. |
Verification
This example shows how to verify the configuration of Ethernet interfaces :
# show ethernet trunk be 1020 Wed May 17 16:43:32.804 EDT
Trunk Sub types Sub states
Interface St Ly MTU Subs L2 L3 Up Down Ad-Down
BE1020 Up L3 9100 3 3 0 3 0 0
Summary 3 3 0 3 0 0
Configuring an Attachment Circuit on a VLAN
Use the following procedure to configure an attachment circuit on a VLAN.
SUMMARY STEPS
- configure
- interface [GigabitEthernet | TenGigE | Bundle-Ether | FortyGigE] interface-path] id.subinterface l2transport
- encapsulation dot1q 100
- end or commit
- show interfaces [GigabitEthernet |FortyGigE|Bundle-Ether | TenGigE] interface-path-id.subinterface
DETAILED STEPS
Step 1 |
configure Example:
Enters global configuration mode. |
||
Step 2 |
interface [GigabitEthernet | TenGigE | Bundle-Ether | FortyGigE] interface-path] id.subinterface l2transport Example:
Enters subinterface configuration and specifies the interface type, location, and subinterface number.
|
||
Step 3 |
encapsulation dot1q 100 Example:
Sets the Layer 2 encapsulation of an interface.
|
||
Step 4 |
end or commit Example:
or
Saves configuration changes.
|
||
Step 5 |
show interfaces [GigabitEthernet |FortyGigE|Bundle-Ether | TenGigE] interface-path-id.subinterface Example:
(Optional) Displays statistics for interfaces on the router. |
Removing an 802.1Q VLAN Subinterface
This task explains how to remove 802.1Q VLAN subinterfaces that have been previously configured using the Configuring 802.1Q VLAN subinterfaces section in this module.
SUMMARY STEPS
- configure
- no interface {TenGigE | FortyGigE | HundredGigE | Bundle-Ether] interface-path-id.subinterface
- Repeat Step 2 to remove other VLAN subinterfaces.
- end or commit
DETAILED STEPS
Step 1 |
configure Example:
Enters global configuration mode. |
Step 2 |
no interface {TenGigE | FortyGigE | HundredGigE | Bundle-Ether] interface-path-id.subinterface Example:
Removes the subinterface, which also automatically deletes all the configuration applied to the subinterface.
Naming notation is instance.subinterface , and a period between arguments is required as part of the notation. |
Step 3 |
Repeat Step 2 to remove other VLAN subinterfaces. — |
Step 4 |
end or commit Example:
or
Saves configuration changes.
|