# Example: Configuring a PPPoE Subinterface over a VLAN for a LAG Bundle

The following example displays LACP configuration for two Fast Ethernet interfaces in slot 3. The interfaces are enabled for active LACP. The speed and duplex characteristics are the same for both interfaces.

host1(config)#interface fastEthernet 3/0 host1(config-if)#speed 100 host1(config-if)#duplex full host1(config-if)#lacp active host1(config-if)#interface fastEthernet 3/1 host1(config-if)#speed 100 host1(config-if)#duplex full host1(config-if)#lacp active

The following commands add the Ethernet physical interfaces to a LAG bundle named sunnyvale.

host1(config)#interface lag sunnyvale host1(config-if)#member-interface fastEthernet 3/0 host1(config-if)#member-interface fastEthernet 3/1

The following commands configure a VLAN subinterface for the LAG bundle named sunnyvale. In the LAG interface identification command (interface lag sunnyvale.1), the number 1 represents the subinterface number for the VLAN subinterface.

host1(config-if)#encapsulation vlan host1(config)#interface lag sunnyvale.1 host1(config-if)#vlan id 100

The following commands configure a PPPoE subinterface over the VLAN subinterface for the LAG bundle named sunnyvale. In the LAG interface identification command (interface lag sunnyvale.1.2), the number 2 represents the subinterface number for the PPPoE subinterface.

host1(config-if)#encapsulation pppoe host1(config)#interface lag sunnyvale.1.2 host1(config-if)#encapsulation ppp host1(config-if)#ip address 10.10.2.2 255.255.0.0

As an alternative to using the command interface lag sunnyvale.1.2 to configure the PPPoE subinterface in this example, you can also use the command pppoe subinterface lag sunnyvale.1.2 to achieve the same result. For more information, see pppoe subinterface lag.