Port trunking

Viewing and configuring port trunk groups

You can list the trunk type and group for all ports on the switch or for selected ports. You can also list LACP-only status information for LACP-configured ports.


[CAUTION: ]

CAUTION: To avoid broadcast storms or loops in your network while configuring a trunk, first disable or disconnect all ports you want to add to or remove from the trunk. After you finish configuring the trunk, enable or re-connect the ports.


Viewing static trunk type and group for all ports or for selected ports

Syntax

show trunks<PORT-LIST>

Omitting the <PORT-LIST> parameter results in a static trunk data listing for all LAN ports in the switch.

Static trunk group

In a switch where ports A4 and A5 belong to Trunk 1 and ports A7 and A8 belong to Trunk 2, you have the options shown in figures Listing specific ports belonging to static trunks and Example of a show trunk listing without specifying ports for displaying port data for ports belonging to static trunks.

Using a port list specifies, for switch ports in a static trunk group, only the ports you want to view. In this case, the command specifies ports A5 through A7. However, because port A6 is not in a static trunk group, it does not appear in the resulting listing:

Listing specific ports belonging to static trunks

Listing specific ports belonging to static trunks

The show trunks <PORT-LIST> command in the above example includes a port list, and thus shows trunk group information only for specific ports that have membership in a static trunk. In Example of a show trunk listing without specifying ports, the command does not include a port list, so the switch lists all ports having static trunk membership.

Example of a show trunk listing without specifying ports

HP Switch> show trunks

 Load Balancing

 Port | Name                    Type      | Group Type
 ---- + ----------------------- --------- + ----- -----
 4    | Print-Server-Trunk      10/100TX  | Trk1  Trunk
 5    | Print-Server-Trunk      10/100TX  | Trk1  Trunk
 7    |                         10/100TX  | Trk2  Trunk
 8    |                         10/100TX  | Trk2  Trunk

Viewing static LACP and dynamic LACP trunk data

Syntax

show lacp

Lists data for only the LACP-configured ports.

Example of a show LACP listing

Ports A1 and A2 have been previously configured for a static LACP trunk. (For more on the Active parameter, see LACP port status data.)

HP Switch> show lacp

                            LACP
       LACP     Trunk    Port              LACP     Admin  Oper
Port   Enabled  Group    Status   Partner  Status   Key    Key
----   -------  -------  -------  -------  -------  ------ ------ 
Al     Active   Trkl     Up       Yes      Success  0      250
A2     Active   Trkl     Up       Yes      Success  0      250
A3     Active   A3       Down     No       Success  0      300
A4     Passive  A4       Down     No       Success  0      0
A5     Passive  A5       Down     No       Success  0      0
A6     Passive  A6       Down     No       Success  0      0

For a description of each of the above-listed data types, see LACP port status data.

Configuring a static trunk or static LACP trunk group


[IMPORTANT: ]

IMPORTANT: Configure port trunking before you connect the trunked links between switches. Otherwise, a broadcast storm could occur. If you need to connect the ports before configuring them for trunking, you can temporarily disable the ports until the trunk is configured.


Syntax

trunk <PORT-LIST><trk1 | trk2 | ..... trkN>trunk | lacp | dt-lacp | dt-trunk

Configures the specified static trunk type.

Static trunk group

This example uses ports C4 to C6 to create a non-protocol static trunk group with the group name Trk2.

(HP_Switch_name#) trunk c4-c6 trk2 trunk

Removing ports from a static trunk group


[CAUTION: ]

CAUTION: Removing a port from a trunk can create a loop and cause a broadcast storm. When you remove a port from a trunk where spanning tree is not in use, HP Switch recommends that you first disable the port or disconnect the link on that port.


Syntax

no trunk <PORT-LIST>

Removes the specified ports from an existing trunk group.

Example

To remove ports C4 and C5 from an existing trunk group:

(HP_Switch_name#) no trunk c4-c5

Port Shutdown with Broadcast Storm

A LAN broadcast storm arises when an excessively high rate of broadcast packets flood the LAN. Occurrence of LAN broadcast storm disrupts traffic and degrades network performance. To prevent LAN traffic from being disrupted, the use of fault-finder commands trigger a port disablement when a broadcast storm is detected. Commands can be used only to support broadcast traffic and not multicast and unicast types of traffic.

The waiting period range for re-enabling ports is 0 to 604800 seconds. The default waiting period to re-enable a port is zero which prevents the port from automatic re-enabling.


[NOTE: ]

NOTE: Avoid port flapping when choosing the waiting period by considering the time to re-enable carefully.


Configuration Commands

Use the following commands to configure the broadcast-storm on a port.

Syntax

[no]fault-finder broadcast-storm [ethernet]<PORT-LIST> action [warn | warn-and-disable <seconds>][percent <Percent> | pps<rate>]

To remove the current configuration of broadcast-storm on a port, use:

Syntax

[no]fault-finder broadcast-storm [ethernet] <PORT-LIST>

Configuration example 1
Syntax

HP Switch(config)# fault-finder broadcast-storm [ethernet] <A1> action [warn-and-disable <65535>]< percent 10>

Configuration example 2
Syntax

HP Switch(config)# fault-finder broadcast-storm [ethernet] <A2> action [warn-and-disable]<pps 100>

Configuration example 3
Syntax

HP Switch(config)# fault-finder broadcast-storm [ethernet]<A22> action [warn]<pps100>

Viewing broadcast-storm configuration

Use the following command to display the broadcast-storm-control configuration.

Syntax

show fault-finder broadcast-storm [<ethernet> PORT-LIST]

Show example 1
Port Bcast storm Port status Rising threshold Action Disable timer Disable timer left
A1 Yes Down 10% warnanddisable 65535  
Show example 2

HP Switch (config)# show fault-finder broadcast-storm

Port Bcast storm Port status Rising threshold Action Disable timer Disable timer left
A1 Yes Down 200 pps warnanddisable 10 9
Show example 3

HP Switch (config)# show fault-finder broadcast-storm A1

Port Bcast storm Port status Rising threshold Action Disable timer Disable timer left
A1 No Up   none    
Show example 4

HP Switch (config)# show fault-finder broadcast-storm

Port Bcast storm Port status Rising threshold Action Disable timer Disable timer left
A1 Yes Up 75% warn    

Definitions

broadcast-storm

Configure broadcast storm control.

pps

Rising threshold level in number of broadcast packets per second.

Percent

Rising threshold level as a percentage of bandwidth of the port. The percentage is calculated on 64 byte packet size.

warn

Log the event only.

warn-and-disable

Log the event and disable the port.

seconds

Re-enable the port after waiting for the specified number of seconds. Default is not to re-enable.

Event logs

Depending on the configuration of broadcast storm control several of the following messages can be logged:

  • FFI: port <ID>-Administrator action required to re-enable.

  • FFI: port <ID>-Excessive Broadcasts. Broadcast-storm control threshold <configured value> percent exceeded.

  • FFI: port <ID>-Excessive Broadcasts. Broadcast-storm control threshold <configured value>pps exceeded.

  • FFI: port <ID>-Port disabled by Fault-finder.

  • ports: Fault Finder(<FF ID>) has disabled port A1 for 100 Seconds.

The following messages can be logged after the port is enabled:

  • ports: port <ID> timer (<FF ID>) has expired.

  • ports: port <ID> is now on-line.

Event log

l 01/01/90 00:35:20 00025 ip: DEFAULT_VLAN: ip address 10.100.38.231/24 configured on vlan 1
l 01/01/90 00:35:20 00083 dhcp: updating IP address and subnet mask
l 01/01/90 00:35:05 00076 ports: port A1 is now on-line
l 01/01/90 00:35:02 00900 ports: port A1 timer (71) has expired
W 01/01/90 00:34:13 00026 ip: DEFAULT_VLAN: ip address 10.100.38.231/24 removed from vlan 1
l 01/01/90 00:34:12 00077 ports: port A1 is now off-line
l 01/01/90 00:34:12 00898 ports: Fault Finder(71) has disabled port A1 for 5seconds
M 01/01/90 00:34:12 02673 FFI: port A1-Port disabled by Fault-finder.
W 01/01/90 00:34:12 02676 FFI: port A1-Excessive Broadcasts. Broadcast-storm control threshold 4 percent exceeded.
---- Reverse event Log listing: Events Since Boot ----
I 01/01/90 00:08:44 00025 ip: DEFAULT_VLAN: ip address 10.100.38.231/24 configured on vlan 1
I 01/01/90 00:08:44 00083 dhcp: updating IP address and subnet mask
I 01/01/90 00:08:11 00076 ports: port A1 is now on-line
I 01/01/90 00:08:08 00900 ports: port A1 timer (71) has expired
W 01/01/90 00:06:29 00026 ip: DEFAULT_VLAN: ip address 10.100.38.231/24 removed from vlan 1
I 01/01/90 00:06:28 00077 ports: port A1 is now off-line
I 01/01/90 00:06:28 00898 ports: Fault Finder(71) has disabled port A1 for 100 seconds
M 01/01/90 00:06:28 02673 FFI: port A1-Port disabled by Fault-finder.
W 01/01/90 00:06:28 02675 FFI: port A1-Excessive Broadcasts. Broadcast-storm control threshold 10 pps exceeded.

Enabling dynamic LACP trunk groups

An individual trunk can have up to eight links, with additional standby links if you are using LACP. You can configure trunk group types as follows:

Syntax

interface <PORT-LIST> lacp active

Configures<PORT-LIST> as LACP active. If the ports at the other end of the links on <PORT-LIST> are configured as LACP passive, this command enables a dynamic LACP trunk group on <PORT-LIST>.

Example

This example uses ports C4 and C5 to enable a dynamic LACP trunk group.

(HP_Switch_name#) interface c4-c5 lacp active

Removing ports from a dynamic LACP trunk group

To remove a port from dynamic LACP trunk operation, you must turn off LACP on the port. (On a port in an operating, dynamic LACP trunk, you cannot change between LACP Active and LACP passive without first removing LACP operation from the port.)


[CAUTION: ]

CAUTION: Unless spanning tree is running on your network, removing a port from a trunk can result in a loop. To help prevent a broadcast storm when you remove a port from a trunk where spanning tree is not in use, HP recommends that you first disable the port or disconnect the link on that port.


Syntax

no interface <PORT-LIST> lacp

Removes <PORT-LIST> from any dynamic LACP trunk and returns the ports in <PORT-LIST> to passive LACP.

Example

Port C6 belongs to an operating, dynamic LACP trunk. To remove port C6 from the dynamic trunk and return it to passive LACP, do the following:

(HP_Switch_name#) no interface c6 lacp
(HP_Switch_name#) interface c6 lacp passive

In the above example, if the port on the other end of the link is configured for active LACP or static LACP, the trunked link will be re-established almost immediately.

Setting the LACP key

During dynamic link aggregation using LACP, ports with the same key are aggregated as a single trunk.

Syntax

[no]lacp [[active] | [passive] | [key 0-65535]]

Enabling LACP and configuring an LACP key

(HP_Switch_name#) int A2-A3 lacp active
(HP_Switch_name#) int A2-A3 lacp key 500

(HP_Switch_name#) show lacp

                                 LACP

         LACP      Trunk    Port               LACP     Admin  Oper
  Port   Enabled   Group    Status   Partner   Status   Key    Key
  ----   -------   -------  -------  -------   -------  ------ ------
  A2     Active    A2       Down     No        Success  500    500
  A3     Active    A3       Down     No        Success  500    500

Interface configured with a different LACP key

(HP_Switch_name#) int A5 lacp active
(HP_Switch_name#) int A5 lacp key 250

HP Switch> show lacp

LACP

      LACP      Trunk     Port              LACP      Admin  Oper
Port  Enabled   Group     Status   Partner  Status    Key    Key
----  -------   -------   -------  -------  -------   ------ ------ 
Al    Active    Dyn1      Up       Yes      Success   100    100
A2    Active    Dyn1      Up       Yes      Success   100    100
A3    Active    Dyn1      Up       Yes      Success   100    100
A4    Active    Dyn1      Up       Yes      Success   100    100
A5    Active    A5        Up       No       Success   250    250