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/0host1(config-if)#speed 100host1(config-if)#duplex fullhost1(config-if)#lacp activehost1(config-if)#interface fastEthernet 3/1host1(config-if)#speed 100host1(config-if)#duplex fullhost1(config-if)#lacp activeThe following commands add the Ethernet physical interfaces to a LAG bundle named sunnyvale.
host1(config)#interface lag sunnyvalehost1(config-if)#member-interface fastEthernet 3/0host1(config-if)#member-interface fastEthernet 3/1The 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 vlanhost1(config)#interface lag sunnyvale.1host1(config-if)#vlan id 100The 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 pppoehost1(config)#interface lag sunnyvale.1.2host1(config-if)#encapsulation ppphost1(config-if)#ip address 10.10.2.2 255.255.0.0As 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.