Suntrunking Quick setup notes

This is a quick setup guide for suntrunking 1.3
– Install the Suntrunking package. Install the most recent suntrunking patch.
– grab our ce instance numbers, we can get these from path_to_inst.
phoenix# grep ce /etc/path_to_inst
“/sbus@3,0/SUNW, ce@0,8c00000” 0 “ce”
“/sbus@3,0/SUNW, ce@0,8c10000” 1 “ce”
“/sbus@3,0/SUNW, ce@0,8c20000” 2 “ce”
“/sbus@3,0/SUNW, ce@0,8c30000” 3 “ce”
– make sure the local-mac-address? setting is set to true
phoenix# eeprom local-mac-address?
local-mac-address?=false
phoenix# eeprom local-mac-address?=true
In this case we are going to choose ce0 as the head of the trunk, so we set /etc/hostname.ce0 to the hostname and
make sure that
it has an entry in our host file.
There are four possible policies:
1 – MAC Default policy, at its simplest will divide the traffic equally, ie each interface in this example will handle 25% of
the traffic
2 – Round Robin Use each interface in turn
3 – IP Destination Address Use IP Destination address to get the transmission path
4 – IP Source Address/IP Destination Address Deterministic connections
In our case we are going to choose round robin as our policy. So to enable this permanently we edit
/etc/opt/SUNWconn/bin/nettr.sh and add the following line
nettr -setup 0 device=ce policy=2 members=0,1,2,3
We now reboot the server
phoenix# init 6
INIT: New run level: 6
The system is coming down. Please wait.
System services are now being stopped.
Print services already stopped.
Sept 3 09:41:12 phoenix syslogd: going down on signal 15
The system is down.
syncing file systems… done
Program terminated
……………..
Configuring Sun Trunking devices
ce trunk members:
ce0 (head)
ce1
ce2
ce3
configuring IPv4 interfaces: hme0 ce0.
Hostname: phoenix
…….
Now let’s check the configuration
phoenix# ./nettr -conf
Key: 0; Policy: 1;
60/433
Aggr MAC address: 0:14:4f:41:f4:34
Name Original-Mac-Addr Speed Duplex Link Status
—- —————– —– —— —- ——
ce0 0:14:4f:41:f4:34 1000 full up enb
ce1 0:14:4f:41:f4:35 1000 full up enb
ce2 0:14:4f:41:f4:36 1000 full up enb
ce3 0:14:4f:41:f4:37 1000 full up enb
And let’s check the load for each interface, this server is restoring data from tape and sending it to other
servers, so it has mainly outbound traffic. It is very important to push traffic through the trunk in order to see
how is it really operating.
phoenix# ./nettr -stats 0 interval=5
Sep 16 09:16:33 2009
Name Ipkts Ierrs Opkts Oerrs Collis Crc %Ipkts %Opkts
—- —– —– —– —– —— — —— ——
ce0 6 0 26873 0 0 0 0.01 25.01
ce1 6 0 26877 0 0 0 0.01 25.01
ce2 56764 0 26862 0 0 0 99.98 25.00
ce3 0 0 26848 0 0 0 0.00 24.98
(Aggregate Throughput(Mb/sec): 252.00(New Peak) 282.00(Past Peak) 89.36%(N)
61/433

Leave a Reply

Your email address will not be published. Required fields are marked *