Aggregation in solaris
How to create aggregation in solaris
An aggregation is similar to
an IPMP link created for failover, but has other advantages
An aggregation is treated as
one device for configuration and management, and uses only one IP address
In-bound as well as outbound
load spreading is provided, so extra bandwidth is available.
Automatic failover is
provided, to the remaining working links in the aggregation
Parallel aggregations between
servers can be created, without going through a switch
Prereqsites:
An interface that has been
plumbed cannot become a member of an aggregation
All interfaces in the
aggregation must run at the same speed and in full-duplex mode
we must set the value for
MAC addresses to “true” in the EEPROM parameter local-mac-address
Interfaces must be of the
GLDv3 type: bge,
e1000g, xge, nge, rge, ixgb
If the device shows up as type:legacy you cannot use it in an
aggregation
Creating a Link
Aggregation
Unplumb the
interfaces to be aggregated:
# dladm show-dev
nxge0 link: up speed: 1000 Mbps duplex: full
nxge1 link: up speed: 1000 Mbps duplex: full
nxge2 link: unknown speed: 0 Mbps duplex: unknown
nxge3 link: unknown speed: 0 Mbps duplex: unknown
nxge0 link: up speed: 1000 Mbps duplex: full
nxge1 link: up speed: 1000 Mbps duplex: full
nxge2 link: unknown speed: 0 Mbps duplex: unknown
nxge3 link: unknown speed: 0 Mbps duplex: unknown
# ifconfig nxge0 down
unplumb
# ifconfig nxge1 down unplumb
# ifconfig nxge1 down unplumb
dladm create -aggr -d nxge0
-d nxge1 1 To create an aggregation number 1(key) from interfaces nxge0 and nxge1.
ifconfig aggr1 plumb ---1 is aggregation name or key aggr1 is having bandwidth2gb now {nxge0 (1gb) +nxge1(1gb)=2gb}
dladm show-aggr
key: 1 (0x0001) policy:
L4 address: 0:3:ba:7:84:5e (auto)
device address speed duplex link state
bge0 0:3:ba:7:84:5e 1000 Mbps full up attached
bge1 0:3:ba:7:84:5e 1000 Mbps full up attached
device address speed duplex link state
bge0 0:3:ba:7:84:5e 1000 Mbps full up attached
bge1 0:3:ba:7:84:5e 1000 Mbps full up attached
ifconfig aggr1 172.18.1.1 netmask 255.255.255.0 broadcast 172.18.1.255 up
Make the configuration persistent
# vi /etc/hostname.aggr1
server01-aggr1 netmask + broadcast + up
# vi /etc/hosts
172.30.36.133 server01-aggr1
#
Perform
reboot. Good to go for reconfigure reboot but not required.
reboot -- -rv
To add another interface to the aggregation
dladm
add-aggr -d bge2 -d bge3 1
How to remove a interface from
aggregation
dladm remove-aggr -d nxge0 1 ----here 1 is aggregation
# dladm show-aggr -s
key: 1 ipackets rbytes opackets obytes %ipkts %opkts
Total 158030 31173663 12 504
qfe1 132878 26014941 12 504 84.1 100.0
qfe2 8818 1818890 0 0 5.6 0.0
qfe3 8174 1671697 0 0 5.2 0.0
qfe0 8160 1668135 0 0 5.2 0.0
dladm show-aggr -L command to
display LACP-specific information.
nlcbck08:a511627>
nlcbck08:a511627>
dladm show-aggr -L
key: 1 (0x0001) policy:
L4 address: 0:21:28:7:3e:ee (auto)
LACP mode: active LACP timer: short
device
activity timeout aggregatable sync
coll dist defaulted expired
nxge0
active short yes
yes yes yes no no
nxge4
active short yes
yes yes yes
no no
==============================================================================================================
How to configure VLANS:
VLANs enable
you to split your physical LAN into logical subparts, providing an essential
tool for increasing the efficiency and flexibility of your network.
network port on
the switch, etc, should support multiple VLANs
By default, 128
VLANs can be defined for each VLAN-aware card on your server
VLANs are
commonly used to separate groups of network users into manageable broadcast
domains, to create logical segmentation of workgroups, and to enforce security
policies among each logical segment. Each defined VLAN behaves as its own separate
network, with its traffic and broadcasts isolated from the others, increasing
the bandwidth efficiency within each logical group
Configuring VLANS
ifconfig nxge0plumb
ifconfig nxge0 up
ifconfig nxge487000 plumb
ifconfig nxge487000 192.19.20.54 netmask 255.255.255.0 broadcast + up
VLAN=driver-name + VID * 1000 + device-instance
nxge487000= nxge+487*1000+0---here 487 is vlan port and nxge is driver name and device instance is 0(nxge0)
for making it persistent
cat /etc/hostname. nxge487000
192.19.20.54
Cat /etc/hosts
192.19.20.54 hostname
No comments:
Post a Comment