Subinterface Support
Logical L3 interfaces use subinterfaces on the L2/L3 boundary device. They enable the division of a single Ethernet interface into multiple logical L3 interfaces based on the incoming 802.1q tag (VLAN-ID).
For a subinterface to be operational on an Ethernet or port-channel interface, the parent interface must be configured as a routed port and be administratively up. Configure a VLAN on the subinterface. If the parent interface goes down, all subinterfaces automatically go down, but come back up with the same configuration once the parent interface returns to an active state.
Note that a port channel should not contain Ethernet interfaces with configured subinterfaces, and subinterfaces cannot be members of a port channel.
Create a subinterface by adding a period followed by a unique subinterface number to the name of the parent interface. Note that the subinterface number has no relation to the ID of the VLAN corresponding to the subinterface.
Configuring Routing Features on a Subinterface
- IP Routing
- VRF
- IP ACL
- Policy Map
- Basic QOS
- COS rewrite
- VRRP
Creating a Subinterface
To create a subinterface on an Ethernet or port-channel interface:
- Bring up the parent interface and ensure it has a routed port configuration.
router(config)# interface Ethernet1/1 router(config-if-Et1/1)# no switchport router(config-if-Et1/1)# no shutdown - Configure a VLAN on the subinterface. Use the encapsulation dot1q vlan command for VLAN translation, and associate a VLAN with the subinterface.
router(config-if-Et1/1)# interface Ethernet1/1.1 router(config-if-Et1/1.1)# encapsulation dot1q vlan 100 - Configure an IP address on the subinterface (optional) and ensure an active status.
router(config-if-Et1/1)# ip address 10.0.0.1/24 router(config-if-Et1/1)# no shutdown router(config-if-Et1/1)#
