Link Aggregation in Solaris 10

Creating Solaris Link Aggregation:
OR
How can I set up and configure a network aggregation under Solaris 10?

Please take console of your host machine before starting Link Aggregation as we have to bring down or unplumb NIC interfaces.

An aggregation is similar to an IPMP link created for failover:

>An aggregation is treated as one device for configuration and management, and uses only one IP address.
>In-bound as well as outbound load spreading is provided, so extra bandwidth is available.
>Automatic failover is provided, to the remaining working links in the aggregation.
>Policies can be applied to the traffic flows.
>Parallel aggregations between servers can be created, without going through a switch.

Early versions of Solaris 10 do not have this facility - you would need to download the Sun Trunking software.

Bring down and unplumb your NIC interface(s).

# ifconfig bge0 down unplumb
# ifconfig bge1 down unplumb

To check link
#dladm show-aggr
key: 1 (0x0001) policy: L4 address: 0:3:ba:f3:e3:f1 (auto)
device address speed duplex link state
bge0 0:3:ba:f3:e3:f1 100 Mbps full up attached
bge1 0:3:ba:f3:e3:f2 100 Mbps full up attached
bash-3.00#

Then I created the aggregation of three links with key of 1.

# dladm create-aggr -d bge0 -d bge1 1

dladm: create operation failed: Device busy (invalid interface name)
Surprised. Don’t get panic if you receive above error. Just fiddling with dladm command search around a little. After that I have to reboot.


# ps -e | grep dh
42 ? 0:00 dhcpagen
# kill 42
# ps -e | grep dh

NOTE:
In case DHCP is configured. Bring down dhcp daemon. The dhcp agent was keeping the NIC interface busy.

# ifconfig bge0 down unplumb
# ifconfig bge1 down unplumb

# dladm create-aggr -d bge0 -d bge1 1

# dladm show-aggr
key: 1 (0x0001) policy: L4 address: 0:3:ba:f3:e3:f1 (auto)
device address speed duplex link state
bge0 0:3:ba:f3:e3:f1 100 Mbps full up standby
bge1 0:3:ba:f3:e3:f2 100 Mbps full up standby


# ifconfig aggr1 plumb 10.200.44.162 up

# dladm show-link
bge0 type: non-vlan mtu: 1500 device: bge0
bge1 type: non-vlan mtu: 1500 device: bge1
bge2 type: non-vlan mtu: 1500 device: bge2
bge3 type: non-vlan mtu: 1500 device: bge3
aggr1 type: non-vlan mtu: 1500 aggregation: key 1
#

# dladm show-aggr
key: 1 (0x0001) policy: L4 address: 0:3:ba:f3:e3:f1 (auto)
device address speed duplex link state
bge0 0:3:ba:f3:e3:f1 100 Mbps full up attached
bge1 0:3:ba:f3:e3:f2 100 Mbps full up attached


# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
aggr1: flags=1000843 mtu 1500 index 4
inet 10.200.44.162 netmask ff000000 broadcast 10.255.255.255
ether 0:3:ba:f3:e3:f1

Create following files to make it persistent after reboots

# vi /etc/hostname.aggr1
10.200.44.162

If you want to put active-active IPMP config

# ifconfig agg1 group up

For information of Link Aggregation please refer below link
http://docs.sun.com/app/docs/doc/816-4554/fpjvl?a=view

Comments

Popular Posts