Saturday 15 June 2013

Setting up LACP between Omnios / Openindiana and a HP 1910 Smart switch


Install the OS, log on as root
Setting up first interface/management IP
Check interface names so we know what to use with our commands
Here i have bge0 as an on mobo nic, igb0-3 as a quad intel Gbit nic

# dladm show-link
LINK        CLASS     MTU    STATE    BRIDGE     OVER
igb2        phys      1500   unknown  --         --
igb1        phys      1500   unknown  --         --
igb3        phys      1500   unknown  --         --
igb0        phys      1500   unknown  --         --
bge0        phys      1500   unknown  --         --

create an interface to attach the IP config to

#ipadm create-if bge0

#ipadm create-addr -T dhcp bge/v4
Or for a static IP
# ipadm create-addr -T static -a 192.168.200.6/24 bge/v4





Setup LACP on the server

        #dladm create-aggr -l igb0 -l igb1 -L active -P l2 aggr0

# dladm show-aggr
LINK            POLICY   ADDRPOLICY           LACPACTIVITY  LACPTIMER   FLAGS
aggr0           L2       auto                 active        short       -----

Create an logical interface to join the newly created port aggregation object to something the IP config can attach to

#ipadm create-if aggr0

 Did it create ok? lets check

# ipadm show-if
IFNAME     STATE    CURRENT      PERSISTENT
lo0        ok       -m-v------46 ---
bge0       ok       bm--------46 -46
aggr0      down     bm--------46 -46

Attach IP address to interface

#ipadm create-addr -T dhcp aggr0/v4



Configure Switch
Log in to HP 1910v web interface

go to network, link aggregation
Click create, select Dynamic (LACP enabled)
Select the ports from the GUI photo which represent the ports your setting up
Click apply



Now check from the server if the link is working, back to the Unix box

# dladm show-link

LINK        CLASS     MTU    STATE    BRIDGE     OVER
igb2        phys      1500   unknown  --         --
igb1        phys      1500   up       --         --
igb3        phys      1500   unknown  --         --
igb0        phys      1500   up       --         --
bge0        phys      1500   up       --         --
aggr0       aggr      1500   up       --         igb0 igb1

Looks good!

No comments:

Post a Comment