Configuring IP over VLAN and PPPoE over VLAN

To configure IP over VLAN with PPPoE over the same VLAN over an Ethernet interface:

  1. Specify a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit Ethernet port.
    host1(config)#interface fastEthernet 4/1
  2. Specify VLAN as the encapsulation method.
    host1(config-if)#encapsulation vlan

    The VLAN major interface is added.

  3. Create a VLAN subinterface by adding a subinterface number to the interface identification command.
    host1(config-if)#interface fastEthernet 4/1.1
  4. 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
  5. 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
  6. Specify PPPoE as the encapsulation method on the interface.
    host1(config-if)#pppoe
  7. Create a PPPoE subinterface.
    host1(config-if)#pppoe subinterface fastEthernet 4/1.1.1
  8. Specify PPP as the encapsulation method on the interface.
    host1(config-if)#encapsulation ppp
  9. Assign an IP address and mask.
    host1(config-if)#ip address 192.6.129.5 255.255.255.0
  10. (Optional) Configure additional PPPoE subinterfaces by completing Steps 7 through 9 using unique numbering.

To configure additional IP interfaces over the VLAN major interface:

  1. Create a new VLAN subinterface by adding a unique subinterface number to the interface identification command.
    host1(config-if)#interface fastEthernet 4/1.2
  2. Assign a VLAN ID for the subinterface.
    host1(config-if)#vlan id 401
  3. 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:

Related Documentation