 |
» |
|
|
 |
 |  |  |  |  | NOTE: Remember that the
starting PPA number for link aggregates varies with the operating
system you have installed: for HP-UX 11.00, it is 100; and for 11i
v1 and 11i v2, it is 900. The following example uses HP-UX 11i. |  |  |  |  |
To obtain additional information
on options for the lanadmin command, enter the
following command: lanadmin -X
-H linkAggregatePPA Where linkAggregatePPA can be any valid link aggregate PPA value. To form a link aggregate
of ports automatically using the Cisco Fast EtherChannel protocol
on that port, set the port configuration mode to FEC_AUTO. For example,
if port 2 must be trunked automatically, enter the following command: lanadmin -X -p 2 FEC_AUTO 900 900 is the PPA of the first link aggregate. When
the protocol completes successfully, HP APA determines the link aggregate
into which port 2 best fits and adds the port to an aggregate based
on the group_capability of ports and link
aggregate. Ports in the same link aggregate must be connected to the
same host and in the same trunk. To form a link aggregate
of ports automatically using the LACP protocol, use LACP_AUTO in place
of FEC_AUTO and key instead of group_capability in the previous example. To manually configure ports
with PPAs 6, 7, 8, and 9 into a link aggregate lan901, enter the following command: lanadmin -X -a
6 7 8 9 901  |  |  |  |  | CAUTION: Be careful when using the -a suboption.
This might lead to an invalid link aggregate. This command gives you
full control over forming any link aggregate that you want. This example
configures ports with PPAs 6, 7, 8, and 9 into a single link aggregate,
even if they are connected to different switches, which is an invalid
configuration, and could lead to problems. |  |  |  |  |
Before you can remove a
port from an automatically formed link aggregate, you must turn off
Cisco's Fast EtherChannel or LACP protocol on that port. If a
port with a PPA number of 2 belongs to link aggregate lan900 (PPA number of 900), enter one of the following two commands: lanadmin -X -d 2 900 or lanadmin -X -p 2 MANUAL 900 To deconfigure FEC_AUTO
(or LACP_AUTO) mode link aggregate 903, which has ports with PPAs
6, 7, 8, and 9, enter the following commands in succession: # lanadmin -X -p 6 MANUAL 903
# lanadmin -X -p 7 MANUAL 903
# lanadmin -X -p 8 MANUAL 903
# lanadmin -X -p 9 MANUAL 903 |
Alternatively, the following single command achieves
the same result: lanadmin -X -d 6 7 8 9 903 To delete a single port
(for example, 8) from link aggregate 901, enter the following command: lanadmin -X -d 8 901 To delete ports 6 and 9, enter: lanadmin -X -d 6 9 901 To deconfigure the link
aggregate 901 completely, enter: lanadmin -X -c 901 This deletes the remaining port, 7, from link aggregate
901 and clears all the properties from the link aggregate; it becomes
clean.  |  |  |  |  | IMPORTANT: After you delete all the ports from link aggregate
901, (after using, for example, lanadmin -X -d 7 901), use the -c suboption. Otherwise, some properties
are retained in link aggregate 901. Subsequently, when you add new
ports to link aggregate 901, they inherit old properties of the link
aggregate and might not aggregate properly. |  |  |  |  |
Configuring an FEC_AUTO Mode Link Aggregation using lanadminThe following example works for all
versions of 11i (link aggregate begins at 900). To add ports lan1 and lan2 (which are not aggregated) to link aggregate lan901 (which is not enabled), with the group capability
set to 901, do the following: Configure the switch. Configure your switches' trunking mode to match the mode being
used on the server. The mode is Cisco Fast EtherChannel (FEC). Configure the server: Set the link aggregate's group capability
to 901. Enter: lanadmin -X -g
901 901 900 Change the port's group capability to
be the same as the link aggregate's group capability (901). # lanadmin -X -g 1 901 900
# lanadmin -X -g 2 901 900 |
Change ports lan1 and lan2 mode to FEC_AUTO. # lanadmin -X -p 1 FEC_AUTO 900 |
# lanadmin -X -p 2 FEC_AUTO 900 |
 |  |  |  |  | NOTE: By default, the group_capability of each physical link is set to 5. |  |  |  |  |
|