1. Aggregate e1000g0, e1000g1, e1000g2, and e1000g3 to form an aggregation and a random number as key, for example 33.
a. Unplumb the interfaces to be aggregated:
# ifconfig down unplumb e1000g0
# ifconfig down unplumb e1000g1
# ifconfig down unplumb e1000g2
# ifconfig down unplumb e1000g3
b. Create a link-aggregation group with key 33 without specifying mode:
# dladm create-aggr -d e1000g0 -d e1000g1 -d e1000g2 -d e1000g3 33
As the command returns, one line appears in the /etc/aggregation.conf file and indicates that the default mode is off, as shown in the following example:
# tail -1 /etc/aggregation.conf
# Use is subject to license terms.
#
# ident "@(#)aggregation.conf 1.1 05/09/01 SMI"
#
# DO NOT EDIT OR PARSE THIS FILE!
#
# Use the dladm(1m) command to change the contents of this file.
33 L4 2 e1000g4/0,e1000g5/0 auto off short
# dladm show-link aggr33
aggr33 type: non-vlan mtu: 1500 aggregation: key 33
2. Plumb up the interface aggrkey, which is aggr33 is this case:
# ifconfig aggr33 plumb
# ifconfig aggr33
aggr33: flags=1000842
inet 0.0.0.0 netmask 0
ether 0:3:ba:d8:9d:e8
# ifconfig aggr33 192.168.1.1/24 broadcast + up
# ifconfig aggr33
aggr33: flags=1000843
inet 192.168.1.1 netmask ffffff00 broadcast 192.168.1.255
ether 0:3:ba:d8:9d:e8
3. Show link aggregation status again.
Now the state should become attached:
# dladm show-aggr
key: 33 (0x0021) policy: L4 address: 0:14:4f:6c:11:8 (auto)
device address speed duplex link state
e1000g0 0:14:4f:6c:11:8 1000 Mbps full up attached
e1000g1 0:14:4f:6c:11:9 1000 Mbps full up attached
e1000g2 0:14:4f:6c:11:a 1000 Mbps full up attached
e1000g3 0:14:4f:6c:11:b 1000 Mbps full up attached
4. Use the dladm show-aggr -s command to display statistics:
# dladm show-aggr -s
key: 33 ipackets rbytes opackets obytes %ipkts %opkts
Total 380354 25872976 28 2648
e1000g0 95089 6468278 7 662 25.0 25.0
e1000g1 95089 6468278 7 662 25.0 25.0
e1000g2 95089 6468278 7 662 25.0 25.0
e1000g3 95087 6468142 7 662 25.0 25.0
5. Use the dladm show-aggr -L command to display LACP specific information:
# dladm show-aggr -L
key: 33 (0x0021) policy: L4 address: 0:14:4f:6c:11:8 (auto)
LACP mode: off LACP timer: short
device activity timeout aggregatable sync coll dist defaulted expired
e1000g0 passive short yes no no no no no
e1000g1 passive short yes no no no no no
e1000g2 passive short yes no no no no no
e1000g3 passive short yes no no no no no
For more information refer to the man pages for dladm, man dladm.
No comments:
Post a Comment