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.
- 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-linke1000g0 type: non-vlan mtu: 1500 device: e1000g0e1000g1 type: non-vlan mtu: 1500 device: e1000g0e1000g2 type: non-vlan mtu: 1500 device: e1000g0
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
- Display link status, speed and duplex property.root@solaris-sunray # dladm show-deve1000g0 link: up speed: 1000 Mbps duplex: fulle1000g1 link: down speed: 1000 Mbps duplex: unknowne1000g2 link: down speed: 1000 Mbps duplex: unknown
- Create an aggregation link that consist of e1000g1 and e1000g2 with identification key 1.root@solaris-sunray # dladm create-aggr -d e1000g1 -d e1000g2 1root@solaris-sunray # dladm show-linke1000g0 type: non-vlan mtu: 1500 device: e1000g0e1000g1 type: non-vlan mtu: 1500 device: e1000g0e1000g2 type: non-vlan mtu: 1500 device: e1000g0aggr1 type: non-vlan mtu: 1500 aggregation: key 1
- 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
- Make your link aggregation is presistent across reboot.
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
root@solaris-sunray # vi /etc/hostname.aggr1
192.168.1.10
No comments:
Post a Comment