Ethernet interfaces support IP, PPPoE, MPLS, or both IP and PPPoE on each VLAN. In addition to a VLAN major interface level, a VLAN subinterface level distinguishes the VLAN.
![]() |
Note: You cannot configure VLANs on the Fast Ethernet port of the SRP module. |
Tasks to configure VLAN subinterface are:
To use VLANs, you must first configure the Ethernet interface for VLAN encapsulation. This creates the VLAN major interface. For example:
- host1(config)#interface fastEthernet 4/0
- host1(config-if)#encapsulation vlan
The router creates the VLAN major interface.
You can now create multiple VLAN subinterfaces to carry higher-level protocols. For examples, see Creating a VLAN Subinterface, next.
To configure IP over VLAN over an Ethernet interface:
- host1(config)#interface fastEthernet 4/0
- host1(config-if)#encapsulation vlan
The VLAN major interface is added.
- host1(config-if)#interface fastEthernet 4/0.3
- host1(config-if)#ip address 192.6.129.5 255.255.255.0
Figure 14 illustrates the IP/VLAN/Fast Ethernet stacking, showing two separate VLAN subinterfaces. Configure one VLAN subinterface entirely; then configure the next VLAN subinterface.
Figure 14: Example of IP/VLAN/Fast Ethernet Stacking Configuration Procedure

To configure PPPoE over VLAN over an Ethernet interface:
- host1(config)#interface fastEthernet 4/1
- host1(config-if)#encapsulation vlan
The VLAN major interface is added.
- host1(config-if)#interface fastEthernet 4/1.1
- host1(config-if)#pppoe
- host1(config-if)#pppoe subinterface
fastEthernet 4/1.1.1
- host1(config-if)#encapsulation ppp
- host1(config-if)#ip address 192.6.129.5 255.255.255.0
Figure 15 illustrates the PPPoE/VLAN/Fast Ethernet stacking, showing two separate VLAN subinterfaces. One VLAN subinterface has two PPPoE subinterfaces, and one VLAN subinterface has one PPPoE subinterface.
Figure 15: Example of PPPoE/VLAN/Fast Ethernet Stacking Configuration Procedure

To configure MPLS over VLAN over an Ethernet interface:
- host1(config)#interface fastEthernet 4/0
- host1(config-if)#encapsulation vlan
The VLAN major interface is added.
- host1(config-if)#interface fastEthernet 4/1.1
- host1(config-if)#mpls
Figure 16 illustrates the MPLS/VLAN/Fast Ethernet stacking, showing one VLAN subinterface.
Figure 16: Example of MPLS/VLAN/Fast Ethernet Stacking Configuration Procedure

To configure IP over VLAN with PPPoE over the same VLAN over an Ethernet interface:
- host1(config)#interface fastEthernet 4/1
- host1(config-if)#encapsulation vlan
The VLAN major interface is added.
- host1(config-if)#interface fastEthernet 4/1.1
- host1(config-if)#ip address 164.10.6.71 255.255.255.0
- host1(config-if)#pppoe
- host1(config-if)#pppoe subinterface
fastEthernet 4/1.1.1
- host1(config-if)#encapsulation ppp
- host1(config-if)#ip address 192.6.129.5 255.255.255.0
To configure additional IP interfaces over the VLAN major interface:
- host1(config-if)#interface fastEthernet 4/1.2
- host1(config-if)#vlan id 401
- host1(config-if)#ip address 164.10.6.51 255.255.255.0
Figure 17 illustrates the configuration steps for two VLAN subinterfaces. In this example:
![]() |
Note: Before you can remove a VLAN subinterface, you must remove the upper-layer interface stack. |
Figure 17: Example of PPPoE over VLAN with IP over VLAN Stacking Configuration Procedure

encapsulation ppp
- host1(config-if)#encapsulation ppp
encapsulation vlan
- host1(config-if)#encapsulation vlan
ip address
- host1(config-if)#ip address 192.6.129.5 255.255.255.0
pppoe
- host1(config-if)#pppoe
pppoe subinterface fastEthernet
- host1(config-if)#pppoe subinterface fastEthernet
4/1.1.1
pppoe subinterface gigabitEthernet
pppoe subinterface tenGigabitEthernet
- host1(config-if)#pppoe subinterface
gigabitEthernet 4/2.1.1
- host1(config-if)#pppoe subinterface tenGigabitEthernet
4/0/2.1.1
vlan description
- host1(config-if)#vlan description randolph56a
vlan id
- host1(config-if)#vlan id 400
- host1(config-if)#vlan id 4 255 mac-address 0090.1a01.1234