Recently, I was looking for information on what Ethernet cards will work with Nemo drivers for link aggregation/trunking. It was a long search and took me a while to figure out what is supported and what product/technologies should be used on what hardware. So, here are my notes for configuring trunking on various Solaris 10 systems.
The first thing you should do before even begin working on trunking on a Solaris 10 machine is to make sure it has latest patches.
Next, check what kind of Ethernet driver do you have. There are several ways you can find out. Here is one way:
dladm show-link
Look for the first word for each line. If you see any of the following driver types, then you can use Nemo drivers: bge, e1000g, xge, nge, rge, ixgb
If you have qfe, ge, or ce, then you should use Sun Trunking 1.3. See also support matrix.
Let’s say that you have Nemo supported drivers, then here are the steps to setup link aggregation:
1. Identify which ports you want to aggregate. dladm show-link should give you an idea what are available. I’ll assume you want to aggregate bge0 and bge1.
2. Run the following command to create an aggregation interface:
dladm create-aggr -d bge0 -d bge1 1
If you get an error, it is most likly you either attempting to use Nemo drivers on a not supported Ethernet driver or you do not have the latest patches for Solaris 10.
3. Plumb the interface. See example below:
ifconfig aggr1 plub 192.168.1.200 up
4. Check the configuration:
dladm show-aggr
ifconfig -a
If you decided that Sun Trunking 1.3 is what you need, then follow the steps below:
1. Download the binary.
2. Read the Installation Guide
3. After unzip the binary from step #1, follow the installation steps stated in page 46 (printed on the left corner on the page or page 56 according to your Acrobat reader) in the Installation guide.
4. Install the appripriate patches for the driver you use. See page 44 (printed on the page or 54 according to Acrobat reader) in the Installation Guide.
5. Set local-mac-address as root on the command-line:
eeprom local-mac-address?=true
6.Reboot
7. Make sure the interfacs that you want aggregate isn’t plumb. If not, use the following command to unplumb:
ifconfig ce0 unplumb
8 Create an aggregated interface
/etc/opt/SUNWconn/bin/nettr -setup 0 device ce members=0,1
This should create an aggregated interface for use with switches (MAC based policy) If you want to use Round Robin for back to back connection, use the following command instead:
/etc/opt/SUNWconn/bin/nettr -setup 0 device ce members=0,1 policy=2
See Page 29 and 32 for further information about other policies.
9. Plumb the interface.
ifconfig ce0 plumb 192.168.1.200 up
10. Check config:
/etc/opt/SUNWconn/bin/nettr -conf