Pages

Thursday, January 13, 2011

How to configure link aggregation

Link aggregation is used because increased demand for network bandwith. It specifies how two or more ethernet connection can be linked to share load and increase reliability. With link aggregation we can increase bandwith, increase reliability, and load balancing. Below is tips to configure link aggregation.



  1. Display the link type.In this example non-vlan type indicates that they are supported GLDv3-based drivers and able to be aggregated. If type is legacy, the link can not be aggregated.
    root@solaris-sunray # dladm show-link
    e1000g0 type: non-vlan mtu: 1500 device: e1000g0
    e1000g1 type: non-vlan mtu: 1500 device: e1000g0
    e1000g2 type: non-vlan mtu: 1500 device: e1000g0
  2. Determine link that available for an aggregation. It is better that you use link that has not been used. In this case e1000g1 and e1000g2 is available.
root@solaris-sunray # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.16.31.242 netmask fffffc00 broadcast 172.16.31.255
ether 8:0:27:7e:12:82
  1. Display link status, speed and duplex property.
    root@solaris-sunray # dladm show-dev
    e1000g0 link: up speed: 1000 Mbps duplex: full
    e1000g1 link: down speed: 1000 Mbps duplex: unknown
    e1000g2 link: down speed: 1000 Mbps duplex: unknown
  2. Create an aggregation link that consist of e1000g1 and e1000g2 with identification key 1.
    root@solaris-sunray # dladm create-aggr -d e1000g1 -d e1000g2 1
    root@solaris-sunray # dladm show-link
    e1000g0 type: non-vlan mtu: 1500 device: e1000g0
    e1000g1 type: non-vlan mtu: 1500 device: e1000g0
    e1000g2 type: non-vlan mtu: 1500 device: e1000g0
    aggr1 type: non-vlan mtu: 1500 aggregation: key 1
  3. Configure and set IP address of new link aggregation.
    root@solaris-sunray # ifconfig aggr1 plumb 192.168.1.10 netmask 255.255.255.0 broadcast 192.169.1.255 up
root@solaris-sunray # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.16.31.242 netmask fffffc00 broadcast 172.16.31.255
    ether 8:0:27:7e:12:82
    aggr1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 5 inet 192.168.1.10 netmask ffffff00 broadcast 192.168.1.255
  1. Make your link aggregation is presistent across reboot.
    root@solaris-sunray # vi /etc/hostname.aggr1
    192.168.1.10

No comments:

Post a Comment