Configuring 802.3ad Link Aggregation
To configure link aggregation on Ethernet interfaces, you must configure the Ethernet interface, create the LAG bundle, and add the Ethernet interface as a member link in the LAG bundle. Optionally, you can then configure IP, a VLAN subinterface, a PPPoE subinterface, or MPLS for the LAG bundle.
For more information about specifying LAG interfaces and subinterfaces on E-series routers, see Interface Types and Specifiers in JUNOSe Command Reference Guide, About This Guide.
Tasks to configure 802.3ad link aggregation interfaces are:
- Configuring an Ethernet Physical Interface
- Configuring a LAG Bundle
- Configuring IP for a LAG Bundle
- Configuring a VLAN Subinterface for a LAG Bundle
- Configuring a PPPoE Subinterface for a LAG Bundle
- Configuring MPLS for a LAG Bundle
Configuring an Ethernet Physical Interface
To configure a member link, perform the following steps:
- Specify a Fast Ethernet or Gigabit Ethernet interface for which you want to create a member link.
host1(config)#interface gigabitEthernet 2/0- Configure LACP in passive or active mode.
host1(config-if)#lacp active- Specify the speed and the duplex mode for the Ethernet interface.
host1(config-if)#speed 100host1(config-if)#duplex full- Specify the MTU.
host1(config-if)#mtu 9000- To configure additional member links, repeat steps 1 to 4.
NOTE: All of the member links that you configure must be on the same line module and have the same physical layer characteristics, such as speed, duplex mode, and MTU.
Configuring a LAG Bundle
To configure a LAG bundle and add member links, perform the following steps:
- Create the LAG bundle.
host1(config)#interface lag bundleBoston- Add a member link to the LAG bundle.
host1(config-if)#memberinterface gigabitEthernet 2/0Configuring IP for a LAG Bundle
To configure IP for a LAG bundle, perform the following steps:
- Specify the LAG bundle.
host1(config)#interface lag bundleBoston- Assign an IP address and mask.
host1(config-if)#ip address 192.5.127.8 255.255.255.0Configuring a VLAN Subinterface for a LAG Bundle
To configure a VLAN subinterface for the LAG bundle, perform the following steps:
- Specify VLAN as the encapsulation method.
host1(config-if)#encapsulation vlan- Specify the VLAN subinterface for the LAG bundle by adding a unique subinterface number to the LAG interface identification command.
host1(config)# interface lag bundleBoston.1- Assign a VLAN ID for the subinterface.
host1(config-if)#vlan id 203- Assign an IP address and mask.
host1(config-if)#ip address 192.168.1.1 255.255.0.0Configuring a PPPoE Subinterface for a LAG Bundle
To configure a PPPoE subinterface for the LAG bundle, perform the following steps:
- Specify PPPoE as the encapsulation method.
host1(config-if)#encapsulation pppoe- Specify the PPPoE subinterface for the LAG bundle in either of the following ways:
host1(config)#interface lag bundleBoston.2Use the pppoe subinterface lag command to add a unique subinterface number to the LAG bundle name. host1(config)#pppoe subinterface lag bundleBoston.2
- Specify PPP as the encapsulation method on the PPPoE subinterface.
host1(config-if)#encapsulation ppp- Assign an IP address and mask.
host1(config-if)#ip address 192.168.1.2 255.255.0.0You can also configure a PPPoE subinterface over a VLAN subinterface over a LAG bundle. For an example of this configuration, see Example: Configuring a PPPoE Subinterface over a VLAN for a LAG Bundle.
Configuring MPLS for a LAG Bundle
To configure MPLS for a LAG bundle, perform the following steps:
- Specify the LAG bundle.
host1(config)#interface lag bundleBoston- Create an MPLS interface.
host1(config-if)#mplsinterface lag
- Use to create an IEEE 802.3ad LAG interface, also known as a LAG bundle, or a subinterface for the LAG bundle.
- Examples
host1(config)#interface lag bostonhost1(config)#interface lag boston.2host1(config)#interface lag boston.2.1Use the no version to delete the LAG bundle. lacp
- Use to configure whether an Ethernet link in a LAG bundle participates actively or passively in the LACP.
- Use the active keyword to indicate that the Ethernet link participates in the protocol regardless of whether its Partner member link is set to active or passive LACP PDU participation.
- Use the passive keyword to indicate that the Ethernet link to transmit LACP PDUs only when it receives LACP PDUs from its Partner member link.
- By default, Ethernet links in a LAG bundle do not send LACP PDUs.
- Example
host1(config-if)#lacp activeUse the no version to restore the default behavior. lacp port-priority
- Use to set the priority for an Ethernet link in a LAG bundle.
- The member with the lowest value has the highest priority, and is selected to join the LAG bundle first.
- Valid values are in the range 065535.
- Example
host1(config-if)#lacp port-priority 100Use the no version to restore the default value of 32768. member-interface
- Use to add a Fast Ethernet interface or Gigabit Ethernet interface, also known as a bundle member, to a LAG bundle.
- Example
host1(config-if)#member-interface fastEthernet 4/0Use the no version to remove the specified Ethernet link from the bundle. mpls
host1(config)#mplsUse the no version to halt MPLS on the interface and delete the MPLS interface configuration. mtu
- Use to specify the MTU for a LAG bundle.
- Specify a value in the range 649188 bytes. The range for FE-8 I/O modules is 649042 bytes.
- This command does not work for the Fast Ethernet port on the SRP module.
- Example
host1(config-if)#mtu 9000Use the no version to specify the default, 1518. pppoe subinterface lag
host1(config-if)#pppoe subinterface lag boston.1Use the no version to remove the PPPoE subinterface from the LAG bundle. virtual-router
- From Global Configuration mode, use this command to create a virtual router or access the context of a previously created virtual router or a VRF.
- Example
host1(config)#virtual-router bostonUse the no version of the command only to delete the VR and return the router to the default VR.