Link Aggregation Command List. D-Link DGS-3000 series
Reklama
Reklama
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Chapter 46 Link Aggregation Command List
create link_aggregation group_id <value> {type [lacp | static]}
delete link_aggregation group_id <value>
config link_aggregation group_id <value> {master_port <port> | ports <portlist> | state [enable | disable]
config link_aggregation algorithm [mac_source | mac_destination|mac_source_dest | ip_source | ip_destination | ip_source_dest]
show link_aggregation {group_id <value> | algorithm}
config lacp_port <portlist> mode [active | passive]
show lacp_port <portlist>
46-1 create link_aggregation group_id
Description
This command is used to create a link aggregation group on the Switch.
Format create link_aggregation group_id <value> {type [lacp | static]}
Parameters
<value> - Enter the group ID value here. The value is from 1 to 13.
type - (Optional) Specify the group type is belong to static or LACP. If type is not specified, the default is static type.
lacp - Specify to use LACP as the group type.
static - Specify to use static as the group type.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To create link aggregation group:
DGS-3000-26TC:admin#create link_aggregation group_id 1 type lacp
Command: create link_aggregation group_id 1 type lacp
Success.
DGS-3000-26TC:admin#
46-2 delete link_aggregation group_id
Description
This command is used to delete a previously configured link aggregation group.
Format delete link_aggregation group_id <value>
430
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Parameters
<value> - Enter the group ID value here.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To delete link aggregation group:
DGS-3000-26TC:admin#delete link_aggregation group_id 3
Command: delete link_aggregation group_id 3
Success.
DGS-3000-26TC:admin#
46-3 config link_aggregation group_id
Description
This command is used to configure a previously created link aggregation group.
Format config link_aggregation group_id <value> {master_port <port> | ports <portlist> | state [enable | disable]
Parameters
group_id - Specify the group ID. The group number identifies each of the groups.
<value> - Enter the group ID value here. For the DGS-3000-10TC, this value must be between 1 and 5. For the DGS-3000-24TC, this value must be between 1 and 12. For the DGS-3000-26TC, this value must be between 1 and 13.
master_port - (Optional) Master port ID. Specify which port (by port number) of the link aggregation group will be the master port. All of the ports in a link aggregation group will share the port configuration with the master port.
<port> - Enter the master port number here.
ports - (Optional) Specify a range of ports that will belong to the link aggregation group.
<portlist> - Enter the list of port used for the configuration here.
state - (Optional) Specify to enable or disable the specified link aggregation group. If not specified, the group will keep the previous state, the default state is disabled. If configure LACP group, the ports’ state machine will start.
enable - Enables the specified link aggregation group.
disable - Disables the specified link aggregation group.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To define a load-sharing group of ports:
431
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin#config link_aggregation group_id 1 master_port 5 ports 5-7
Command: config link_aggregation group_id 1 master_port 5 ports 5-7
Success.
DGS-3000-26TC:admin#
46-4 config link_aggregation algorithm
Description
This command is used to configure the part of the packet examined by the Switch when selecting the egress port for transmitting load-sharing data. This feature is available using the address-based load-sharing algorithm, only.
Format config link_aggregation algorithm [mac_source | mac_destination|mac_source_dest | ip_source | ip_destination | ip_source_dest]
Parameters
mac_source - Indicates that the Switch should examine the MAC source address.
mac_destination - Indicates that the Switch should examine the MAC destination address.
mac_source_dest - Indicates that the Switch should examine the MAC source and destination address.
ip_source - Indicates that the Switch should examine the IP source address.
ip_destination - Indicates that the Switch should examine the IP destination address.
ip_source_dest - Indicates that the Switch should examine the IP source address and destination address.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To configure link aggregation algorithm for mac-source-dest:
DGS-3000-26TC:admin#config link_aggregation algorithm mac_source_dest
Command: config link_aggregation algorithm mac_source_dest
Success.
DGS-3000-26TC:admin#
46-5 show link_aggregation
Description
This command is used to display the current link aggregation configuration on the Switch.
Format show link_aggregation {group_id <value> | algorithm}
Parameters
group_id - (Optional) Specify the group ID. The group number identifies each of the groups.
432
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
<value > - Enter the group ID value here.
algorithm - (Optional) Allows you to specify the display of link aggregation by the algorithm in use by that group.
If no parameter specified, system will display all link aggregation information.
Restrictions
None.
Example
Link aggregation group enable:
DGS-3000-26TC:admin#show link_aggregation
Command: show link_aggregation
Link Aggregation Algorithm = MAC-Source-Dest
Group ID : 1
Type : LACP
Master Port : 5
Member Port : 5-7
Active Port :
Status : Enabled
Flooding Port : 7
Total Entries : 1
DGS-3000-26TC:admin#
Link aggregation group enable and no member linkup:
DGS-3000-26TC:admin#show link_aggregation
Command: show link_aggregation
Link Aggregation Algorithm = MAC-Source-Dest
Group ID : 1
Type : LACP
Master Port : 5
Member Port : 5-7
Active Port :
Status : Enabled
Flooding Port :
Total Entries : 1
DGS-3000-26TC:admin#
Link aggregation group disabled:
433
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin#show link_aggregation
Command: show link_aggregation
Link Aggregation Algorithm = MAC-Source-Dest
Group ID : 1
Type : LACP
Master Port : 5
Member Port : 5-7
Active Port :
Status : Disabled
Flooding Port : 7
Total Entries : 1
DGS-3000-26TC:admin#
46-6 config lacp_port
Description
This command is used to configure per-port LACP mode.
Format config lacp_port <portlist> mode [active | passive]
Parameters
<portlist> - Enter the list of port used for the configuration here.
mode - Specify the LACP mode used.
active - Specify to set the LACP mode as active.
passive - Specify to set the LACP mode as passive.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To config port LACP mode:
DGS-3000-26TC:admin#config lacp_port 1-12 mode active command: config lacp_port 1-12 mode active
Success.
DGS-3000-26TC:admin#
46-7 show lacp_port
Description
This command is used to display the current mode of LACP of the ports.
434
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Format show lacp_port <portlist>
Parameters
<portlist> - Enter the list of ports used for this configuration here.
If no parameter specified, the system will display current LACP and all port status.
Restrictions
None.
Example
To show port lacp mode:
DGS-3000-26TC:admin#show lacp_port
Command: show lacp_port
Port Activity
------ --------
1 Active
2 Active
3 Active
4 Active
5 Active
6 Active
7 Active
8 Active
9 Active
10 Active
11 Active
12 Active
DGS-3000-26TC:admin#
435
Stiahnuť
Reklama