Configuring Static Trunking for Link Aggregation
To statically configure a Link Aggregation Group (LAG), also known as trunk, you can use the trunk-create command.
CLI (network-admin@switch) > trunk-create
trunk-create |
Create a trunk configuration. |
name name-string |
Specify the name for the trunk configuration. |
ports port-list |
Specify the port number(s) for the link(s) to aggregate into the trunk. |
Specify any of the following options: |
|
speed disable|100m|1g|10g|40g|50g|100g |
Specify the port speed or disable the port. |
egress-rate-limit unlimited |
Specify an egress rate limit for the configuration. |
autoneg|no-autoneg |
Specify if you want the physical port to autonegotiate port speed. |
jumbo|no-jumbo |
Specify if the port can receive jumbo frames. |
lacp-mode off|passive|active |
Specify the Link Aggregation Control Protocol (LACP) mode for the configuration. |
lacp-priority number |
Specify the LACP priority. This is a number between 1 and 65535 with a default value of 32768. |
lacp-timeout slow|fast |
Specify the LACP time out as slow (30 seconds) or fast (4 seconds). The default value is slow. |
lacp-fallback bundle|individual |
Specify the LACP fallback mode as individual or bundled. |
lacp-fallback-timeout seconds |
Specify the LACP fallback timeout in seconds. The range is between 30 and 60 seconds with a default value of 50 seconds. |
reflect|noreflect |
Specify physical port reflection |
edge-switch|no-edge-switch |
Specify if the switch is an edge switch. |
pause|no-pause |
Specify if pause frames are sent. |
description description-string |
Specify a description for the trunk configuration. |
loopback|no-loopback |
Specify loopback if you want to use loopback. |
vxlan-termination| |
Specify if a VXLAN can terminate on the trunk. |
unknown-ucast-level unknown-ucast-level-string |
Specify an unknown unicast level in percent. The default value is 100%. |
unknown-mcast-level unknown-mcast-level-string |
Specify an unknown multicast level in percent. The default value is 100%. |
broadcast-level broadcast-level-string |
Specify a broadcast level in percent. The default value is 100%. |
port-mac-address mac-address |
Specify the MAC address of the port. |
loop-vlans vlan-list |
Specify a list of VLANS for looping. |
routing|no-routing |
Specify if the port participates in routing on the network. |
host-enable|host-disable |
Enable or disable host facing ports. |
defer-bringup|no-defer-bringup |
Specify to delay bringing up the host. |
dscp-map dscp-map name|none |
Specify the DSCP map name to enable on a port |
local-switching|no-local-switching |
Specify local-switching or no-local-switching. A no-local-switching port cannot bridge traffic to another no-local-switching port |
allowed-tpid q-in-q|q-in-q-old |
Specify an allowed TPID in addition to 0x8100 for VLAN headers. |
fabric-guard|no-fabric-guard |
Specify if fabric guard is enabled. |
fec|no-fec |
Specify Port Forwarding Error Correction (FEC) mode. |
For example, create a trunk configuration named trunk-1 for ports 1, 2, and 3 by entering the following command:
CLI (network-admin@switch) > trunk-create name trunk-1 ports 1,2,3
To verify the result of the configuration, use the trunk-show command:
CLI (network-admin@switch) > trunk-show
name port speed autoneg jumbo
------- ---- ------ ------- -----
trunk-1 1-3 10g off off
You can modify the trunk configuration by using the trunk-modify command:
CLI (network-admin@switch) > trunk-modify
trunk-modify |
Modify a trunk configuration. |
name name-string |
Specify the name for the trunk configuration. |
trunk-id trunk-id-number |
Specify the trunk ID. |
description description-string |
Specify the trunk description. Note: If you add ports to the trunk, the trunk description applies to the new ports. If you remove ports from the trunk, the trunk description is removed from the ports. |
Specify any of the following options: |
|
ports port-list |
Specify the physical ports. |
speed disable|100m|1g|10g|40g|50g|100g |
Specify the port speed or disable the port. |
egress-rate-limit unlimited |
Specify an egress rate limit for the configuration. |
autoneg|no-autoneg |
Specify if you want the physical port to autonegotiate port speed. |
jumbo|no-jumbo |
Specify if the port can receive jumbo frames. |
lacp-mode off|passive|active |
Specify the Link Aggregation Control Protocol (LACP) mode for the configuration. |
lacp-priority number |
Specify the LACP priority. This is a number between 1 and 65535 with a default value of 32768. |
lacp-timeout slow|fast |
Specify the LACP time out as slow (30 seconds) or fast (4 seconds). The default value is slow. |
lacp-fallback bundle|individual |
Specify the LACP fallback mode as individual or bundled. |
lacp-fallback-timeout seconds |
Specify the LACP fallback timeout in seconds. The range is between 30 and 60 seconds with a default value of 50 seconds. |
reflect|noreflect |
Specify physical port reflection |
edge-switch|no-edge-switch |
Specify if the switch is an edge switch. |
pause|no-pause |
Specify if pause frames are sent. |
description description-string |
Specify a description for the trunk configuration. |
loopback|no-loopback |
Specify loopback if you want to use loopback. |
vxlan-termination|no-vxlan-termination |
Specify if a VXLAN can terminate on the trunk. |
unknown-ucast-level unknown-ucast-level-string |
Specify an unknown unicast level in percent. The default value is 100%. |
unknown-mcast-level unknown-mcast-level-string |
Specify an unknown multicast level in percent. The default value is 100%. |
broadcast-level broadcast-level-string |
Specify a broadcast level in percent. The default value is 100%. |
port-mac-address mac-address |
Specify the MAC address of the port. |
loop-vlans vlan-list |
Specify a list of VLANs for looping. |
routing|no-routing |
Specify if the port participates in routing on the network. |
host-enable|host-disable |
Enable or disable host facing ports. |
defer-bringup|no-defer-bringup |
Specify to delay bringing up the host. |
dscp-map dscp-map name|none |
Specify the DSCP map name to enable on a port |
local-switching|no-local-switching |
Specify local-switching or no-local-switching. A no-local-switching port cannot bridge traffic to another no-local-switching port |
allowed-tpid q-in-q|q-in-q-old |
Specify an allowed TPID in addition to 0x8100 for VLAN headers. |
fabric-guard|no-fabric-guard |
Specify if fabric guard is enabled. |
fec|no-fec |
Specify Port Forwarding Error Correction (FEC) mode. |
For example, to remove port 2 from the trunk, issue the command:
CLI (network-admin@switch) > trunk-modify name trunk-1 port 1,3
View the updated trunk configuration:
CLI (network-admin@switch) > trunk-show
name port speed autoneg jumbo
------- ---- ----- ------- -----
trunk-1 1,3 10g off off
To remove the trunk configuration from the switch, use the trunk-delete command:
CLI (network-admin@switch) > trunk-delete
trunk-delete |
Delete a trunk configuration. |
name name-string |
Specify the name of the trunk configuration. |
trunk-id trunk-id-number |
Specify the trunk ID. |
description description-string |
Specify the trunk description to delete the trunk configuration. When you delete a trunk configuration, the trunk description is removed from the member ports. |
CLI (network-admin@switch) > trunk-delete name trunk-1
Verify that the trunk configuration is removed again by using the trunk-show command.