Configuring a Layer 3 static aggregation group

Prerequisites

You must be in the global configuration context:switch(config)#

Procedure
  1. Create a Layer 3 aggregate interface and access the Layer 3 aggregate interface view by entering:
    switch(config)#接口延迟

    The range of the LAG interface ID is 1 to 256.

    While creating the Layer 3 aggregate interface, the system automatically creates a Layer 3 static aggregation group numbered the same.

  2. Set the operational state of every interface in the LAG to up by entering:
    • For 6300 and 6400 switch series:

      switch(config-lag-if)#no shutdownswitch(config-lag-if)#routing
      NOTE:
      这个命令不会影响the administrative state of the member interfaces because the command was entered at the level of the LAG. To change the administrative state of a member interface, enter the command at the interface level. For example:
      switch(config)#interface 1/1/2switch(config-if)#no shutdownswitch(config-if)#routing
    • For 8320, 8325, 8360, and 8400 switch series:

      switch(config-lag-if)#no shutdown
      NOTE:
      这个命令不会影响the administrative state of the member interfaces because the command was entered at the level of the LAG. To change the administrative state of a member interface, enter the command at the interface level. For example:
      switch(config)#interface 1/1/2switch(config-if)#no shutdown
  3. Set the IP address on the LAG interface by entering:
    switch(config-lag-if)#ip address/
    For example:
    switch(config-lag-if)#ip address 192.0.2.1/30
  4. Use the following steps to add a maximum of 16 interfaces to the LAG:
    1. To assign an interface to the LAG:
      switch(config-lag-if)#interface

      To assign a range of interfaces to a LAG:

      switch(config-lag-if)#interface-

      For example:

      switch(config-lag-if)#interface 1/1/1-1/1/4

      See theCommand-Line Interface Guidefor your switch and software version for more information about theinterface command.

    2. Assign an ID to the LAG:
      switch(config-if)#lag

      For example:

      switch(config-if-<1/1/1-1/1/4>)#滞后100
    3. Set the administrative state of the member interface to up:
      switch(config-if-<1/1/1-1/1/4>)#no shutdown
  5. View the configuration by entering the following:
    For 6300 and 6400 switch series:
    switch(config-if-<1/1/1-1/1/4>)#show running-configCurrent configuration: ! vlan 1 interface lag 100 no shutdown routing ip address 192.0.2.1/30 interface 1/1/1 no shutdown lag 100 interface 1/1/2 no shutdown lag 100 interface 1/1/3 no shutdown lag 100 interface 1/1/4 no shutdown lag 100 switch(config-if-<1/1/1-1/1/4>)#show lacp aggregatesAggregate name : lag100 Interfaces : 1/1/3 1/1/1 1/1/4 1/1/2 Heartbeat rate : N/A Hash : l3-src-dst Aggregate mode : Off
    For 8320, 8325, 8360, and 8400 switch series:
    switch(config-if-<1/1/1-1/1/4>)#show running-configCurrent configuration: ! vlan 1 interface lag 100 no shutdown ip address 192.0.2.1/30 interface 1/1/1 no shutdown lag 100 interface 1/1/2 no shutdown lag 100 interface 1/1/3 no shutdown lag 100 interface 1/1/4 no shutdown lag 100 switch(config-if-<1/1/1-1/1/4>)#show lacp aggregatesAggregate name : lag100 Interfaces : 1/1/3 1/1/1 1/1/4 1/1/2 Heartbeat rate : N/A Hash : l3-src-dst Aggregate mode : Off