A link aggregation consists of several interfaces on a system that are configured together as a single, logical unit. Link aggregation, also referred to as trunking
Basically link aggregation is like a bonding on server. Its work in active and passive mode. At a time one network device are up and other bonding device are in stand by mode.
Requirements for Link Aggregations:-
1. Your link aggregation configuration is bound by the following requirements:
2. You must use the dladm command to configure aggregations.
3. An interface that has been plumbed cannot become a member of an aggregation.
4. Interfaces must be of the GLDv3 type: xge, e1000g, and bge.
5. All interfaces in the aggregation must run at the same speed and in full-duplex mode.
If the solaris box matches these above requirement, after that we can only able to create a link aggregation.
How to create a link aggregation in Solaris operating system:-
1. As a root user please login on the solaris operating system so you have full administrative role to perform the action.
2. Determine which interfaces are currently installed on your system.
For this work you need to run the below command.
#dladm show-link
The above command show you the which interfaces are currently installed on your system.
#dladm show-link
ce0 type: legacy mtu: 1500 device: ce0
ce1 type: legacy mtu: 1500 device: ce1
bge0 type: non-vlan mtu: 1500 device: bge0
bge1 type: non-vlan mtu: 1500 device: bge1
As per link aggregation requirement, we can only use the interface which start from bge etc. here the device bge0, bge1 are currently installed on the server.
3. In this step now determine which interfaces have been plumbed. for this please run the below command.
#ifconfig -a
lo0: flags=2001000322 <UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
ce0: flags=1000420 <UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.1.43 netmask ffffff00 broadcast 192.168.1.255
ether 0:4:7c:8:92:7d
4. Now create a link aggregation using below command
#dladm create-aggr -d bge0 -d bge1 1
here 1 is the key number which identify the link aggreation , and it is lowest number.
5. now configure & plumb the newly created aggregation. Please use the below command to do this.
#ifconfig aggr1 plumb 192.168.1.56 up
6. To check the status of the aggregation you just created, please run the below command.
#dladm show-aggr
key: 1 (0x0001) policy: L4 address: 0:4:7c:8:92:7d (auto)
device address speed duplex link state
bge0 0:4:7c:9:87:4e 1000 Mbps full up attached
bge1 0:4:7c:9:32:9e 0 Mbps unknown down standby
7. For link aggregations with IPv4 addresses, create an /etc/hostname.aggrkey file.
#vi /etc/hostname.aggr1
92.168.1.56
8. perform a reboot.
#reboot -- -r
No comments:
Post a Comment