Link Aggregation for Synology NAS/Cisco SG 300 switches

fonte: http://www.kasson.com/bleeding_edge/?p=687

Link Aggregation for Synology NAS/Cisco SG 300 switches

A 1 Gb/s Ethernet connection can’t keep up with modern disks or the processors in Synology NAS boxes. For those of you with really deep pockets, there are Synology boxes with 10 Gb/s interfaces and 10 gigabit Ethernet switches to match, but for the rest of us, there’s link aggregation. Link aggregation, aka (in the Microsoft world) as Ethernet teaming, allows a computer (and, in this context, a NAS box counts as a computer) to bond together two or more Ethernet links so that they act as one higher-speed one. It also provides the ability to survive the loss of one link with no penalty other than decreased performance. The most common way of doing link aggregation is defined by an IEEE standard, 802.3ad. That’s the kind I’ll be discussing here.

To set up link aggregation, you need to make changes to your Ethernet switch to tell it to treat two ports as one aggregated connection, and to your computer, to do the same. Make just one change, and it won’t work. And, with the Synology boxes and the Cisco SG 300 switches, do things in the wrong order and it won’t work. That situation may obtain with other switches as well.

Through trial and lots of error, I’ve figured out how to make it all work.

First, connect the Synology box — hereafter called the NAS — to the switch with one Ethernet cable. Set up the network configuration for a fixed IP address. I suppose it might work with a DHCP-assigned IP address, but I think it’s safer to make it fixed.

Find two free ports on the Cisco switch. Set up link aggregation from Administration > Port Management > Link Aggregation > LAG management. A LAG is, I suppose, a Link Aggregation Group.

Click the selection box to the left of one of the LAG group entries, and then click on the Edit button at the screen.

LAG

 

 

 

 

 

 

 

Now you’ll see the window where you can create a LAG. Pick one of the two free ports.

cisco lag 1

Hit the arrow to move the port to the LAG.

cisco lag 2

And click the Enable check box next to LACP. Don’t miss this step!

cisco lag 3

Now add the next port.

cisco lag 4

Hit Apply, and close the window. Now log on to your NAS, open the control panel, click on network, and click on the Network Interface tab.

create bond syn 1

Click on the Create button to create the aggregated link. Accept the default IEEE 802.3ad option, and click next.

create bond sys 2

Make sue both LAN interfaces are checked.

create bond syn 3

The next screen will reflect the network configuration you’ve already entered. Hit Apply.

create bond syn 4

The window will go gray for a minute or two, which will seem like a long time. Have patience.

screen goes grey

Then the NAS will complain, because you haven’t connected to the LAG on the switch yet.

cant find link

Disconnect the NAS LAN port you’ve been using so far from the switch and connect it to one of the ports in the LAG. Connect the other NAS LAN port to the other port in the LAG. After a short while, the NAS will be happy.

success syn

Now go to the Cisco LAG screen and make sure it’s happy too.

cisco success

You’re done. Enjoy your high speed connection.