Tuesday, January 8, 2013

Creating link-aggregation on h3c/hpn switch.



Link aggregation is a computer networking term to describe various methods of combining (aggregating) multiple network connections in parallel to increase throughput beyond what a single connection could sustain, and to provide redundancy in case one of the links fails.
More detail about link aggregation can refer to this wiki site.
http://en.wikipedia.org/wiki/Link_aggregation



Lets start how to configure link aggregation on h3c/hpn switches.

H3C/HPN switches support link-aggregation up to 8 ports. Maximum of 8Gbps of bandwidth.

1st step. Make sure telnet or console to the switch a.k.a connected to the switch.

2nd step. In order to make any configuration to h3c/hpn switches, must be in system-view mode. 

The command is per below.

[H3C]interface Bridge-Aggregation 1  <-- declare the first link aggregation group, if the switches not yet configure with link aggregation. If the switch is already have the link aggregation group 1, then follow with number 2 and so on.

[H3C-Bridge-Aggregation1]link-aggregation mode dynamic  <-- put the group 1 into dynamic mode. H3C/HPN support 2 type of link aggregation, dynamic and static. If not declare the group in dynamic mode, then by default it will choose the static mode.

Always used “display this” command to view what is the inside configuration.

[H3C-Bridge-Aggregation1]display this
#
interface Bridge-Aggregation1
 link-aggregation mode dynamic
#
Return

Now we can see, we already configured bridge-aggregation with group 1 and it is in the dynamic mode.

Next step is to put the specific port in the link aggregation group.

1.       Go to the specific port by issued this command.
[H3C]interface GigabitEthernet 1/0/1 <-- now we choose port gigabit 1/0/1
And press enter
[H3C-GigabitEthernet1/0/1]  <-- now we are inside port  gigabit 1/0/1

2.       Put port 1/0/1 in the bride aggregation group and press enter.
[H3C-GigabitEthernet1/0/1]port link-aggregation group 1
[H3C-GigabitEthernet1/0/1]

3.       To verify whether the port has been in the group or not used “display this” command.
[H3C-GigabitEthernet1/0/1]display this
#
interface GigabitEthernet1/0/1
 port link-aggregation group 1
#
Return

As we can see the selected port 1/0/1 has been in the group 1 link aggregation. 

Repeat the above step (step 1 to 3) in order to add another port to the link aggregation group. Maximum port for link aggregation is 8 port as stated above.

Remember both side must be configure for link aggregation, if not the link aggregation and all the configuration above will not work.


The diagram of switch is as below.




  








The screenshot for configuration of the switch is as below.

























To view the port in the selected link aggregation used this command.

[H3C]display link-aggregation verbose Bridge-Aggregation

Now you should see the output as below.

[H3C]display link-aggregation verbose Bridge-Aggregation

Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected
Flags:  A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
        D -- Synchronization, E -- Collecting, F -- Distributing, 
        G -- Defaulted, H -- Expired

Aggregation Interface: Bridge-Aggregation1
Aggregation Mode: Dynamic
Loadsharing Type: Shar
System ID: 0x8000, 3822-d612-51f2
Local:
  Port             Status  Priority Oper-Key  Flag
--------------------------------------------------------------------------------
  GE1/0/1          U       32768    1         {ACG}
  GE1/0/2          U       32768    1         {ACG}
Remote:
  Actor            Partner Priority Oper-Key  SystemID               Flag  
--------------------------------------------------------------------------------
  GE1/0/1          0       32768    0         0x8000, 0000-0000-0000 {EF}
  GE1/0/2          0       32768    0         0x8000, 0000-0000-0000 {EF}

Notices that port GE1/0/1 and GE1/0/2 is in the bridge aggregation 1 and they carry the same flag {ACG}.

Screenshot as below.