Index Index for
Section 8
Index Alphabetical
listing for L
Bottom of page Bottom of
page

lagconfig(8)

NAME

lagconfig - Configures or displays link aggregation groups (or trunk groups)

SYNOPSIS

For creating a link aggregation group, use the following syntax: /usr/sbin/lagconfig -c [attribute, attribute,...] For enabling a port for link aggregation, use the following syntax: /usr/sbin/lagconfig -p port {lag=interface-id| key=value} For deleting a port from a link aggregation group, use the following syntax: /usr/sbin/lagconfig -d port For displaying a link aggregation group, use the following syntax: /usr/sbin/lagconfig -s lag=interface-id

OPTIONS

-c Creates a link aggregation group virtual interface. You can specify the following attributes to this option. If you specify more than one attribute, separate them with commas: lag=interface-id Specifies the link aggregation group virtual interface name in the form lagn, where n is the unit number (for example, lag1). By default, the next available unit number is assigned to the interface. key=value Specifies a value with which to identify the link aggregation group interface. By default, the key value is the next available number. For example, if you previously created a link aggregation group with a key of 4, the next time you create a link aggregation group it is assigned a key of 5. macaddr=address Specifies the Media Access Control (MAC) address to be assigned to the link aggregation group interface. By default, the MAC address of the first link aggregation port (interface) to attach to the link aggregation group is used. -p port Enables the specified port (or physical interface) for link aggregation. You must also specify one of the following attributes: lag=interface-id Specifies the link aggregation group virtual interface name in the form lagn, where n is the unit number (for example, lag1). key=value Specifies the link aggregation group virtual interface to which to add the port by the key assigned to it. -d port Deletes the specified port or interface from a link aggregation group. -s lag=interface-id Displays the attributes for the specified link aggregation group. The interface-id is in the form lagn, where n is the unit number (for example, lag3).

DESCRIPTION

The lagconfig command allows you to perform the following tasks: · Create link aggregation group logical interfaces. · Enable a port (physical interface) for link aggregation. · Display attributes for a specified link aggregation group logical interface. · Delete a port from a link aggregation group. Link aggregation, or trunking, enables administrators to combine one or more physical Ethernet Network Interface Cards (NICs) and create a single logical link. (Upper-layer software sees this link aggregation group as a single logical interface.) The single logical link can carry traffic at higher data rates than a single interface because the traffic is distributed across all of the physical ports that make up the link aggregation group. If you want to enable a port for link aggregation, you must not configure an IP address on the port, either through the Network Setup Wizard (netconfig) or SysMan. After you enable ports for link aggregation, you issue the ifconfig up command to enable the link aggregation group interface. The enabled ports then attach to the link aggregation group that has the same key assigned to it and are available to carry traffic. If a port fails in some way, the port detaches from the link aggregation group and traffic rerouted to the remaining port or ports. A port also detaches when the system is shut down. The server or switch at the other end of a link aggregation group must also be configured for link aggregation. Modifications made with the lagconfig command do not persist across reboots of the operating system. To configure the interface or modify the parameters automatically each time the system is booted, edit the inet.local file and add the lagconfig command and ifconfig command entries to it. Any user can query the status of a link aggregation group; only the superuser can create and modify the configuration of network interfaces.

EXAMPLES

1. To create a link aggregation group with a default key value and the next available interface number, enter: lagconfig -c 2. To add tu0 and tu1 to the link aggregation group created in the previous step, enter: lagconfig -p tu0 key=1 lagconfig -p tu1 key=1 Note Both tu0 and tu1 must be DOWN and not have an IP address configured prior to issuing the lagconfig -p commands. 3. To display information about the link aggregation group, enter: lagconfig -s lag=lag0 lag0: Attached Interfaces: ( tu3 tu2 tu1 tu0 ) key = 1 Max ports = 8

DIAGNOSTICS

lagconfig: subsystem error: Invalid argument You attempted to add a port (interface) to a link aggregation group and the port is UP. Mark the interface DOWN with the ifconfig command and try to add the port again.

SEE ALSO

Commands: netstat(1), ifconfig(8), pfconfig(8), sysconfig(8) Interfaces: lag(7) System Attributes: sys_attrs_lag(5) Network Administration: Connections

Index Index for
Section 8
Index Alphabetical
listing for L
Top of page Top of
page