Configuring IP over VLAN and PPPoE over VLAN
To configure IP over VLAN with PPPoE over the same VLAN over an Ethernet interface:
- Specify a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit
Ethernet port.host1(config)#interface fastEthernet 4/1
- Specify VLAN as the encapsulation method.host1(config-if)#encapsulation vlan
The VLAN major interface is added.
- Create a VLAN subinterface by adding a subinterface number
to the interface identification command.host1(config-if)#interface fastEthernet 4/1.1
- Do one of the following:
- Assign a VLAN ID for the subinterface.host1(config-if)#vlan id 400
- Assign a VLAN ID and the optional unique MAC address for
the subinterface.host1(config-if)#vlan id 400 mac-address 0090.1a01.1234
- Assign a VLAN ID for the subinterface.
- Create an IP interface on the same VLAN as the PPPoE interface.host1(config-if)#ip address 164.10.6.71 255.255.255.0
- Specify PPPoE as the encapsulation method on the interface.host1(config-if)#pppoe
- Create a PPPoE subinterface.host1(config-if)#pppoe subinterface fastEthernet 4/1.1.1
- Specify PPP as the encapsulation method on the interface.host1(config-if)#encapsulation ppp
- Assign an IP address and mask.host1(config-if)#ip address 192.6.129.5 255.255.255.0
- (Optional) Configure additional PPPoE subinterfaces by completing Steps 7 through 9 using unique numbering.
To configure additional IP interfaces over the VLAN major interface:
- Create a new VLAN subinterface by adding a unique subinterface
number to the interface identification command.host1(config-if)#interface fastEthernet 4/1.2
- Assign a VLAN ID for the subinterface.host1(config-if)#vlan id 401
- Assign an IP address and mask.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:
- VLAN subinterface 4/1.1 has an IP interface, a PPPoE interface, and multiple PPPoE subinterface stacks.
- VLAN subinterface 4/1.2 has only an IP interface.

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

Hide Navigation Pane
Show Navigation Pane
SHA1