DISCLAIMER

All advice, guides, tips & tricks, and other information on this website is provided as-is with no warranty or guarantee. While most information is correct to the best of our knowledge, We are not responsible for any issues that may arise in using the information, and you do so at your own risk.

Monday, December 24, 2012

Solaris 11 IPMP Active-Active and Active-Standby

http://techsupportpk.blogspot.com/2012/12/solaris-11-ipmp-active-active.html

Automated network configuration is managed by a Solaris service called "nwam" or "Network Auto Magic". The nawm service is turned on by default, and must be disabled before you manually make changes to the settings for static IP addresses. Also needed is the "default" physical networking service.





IPMP Active-Active without IPv6 (Link-based Failure Detection)

root@labsrv:~# dladm show-phys
LINK              MEDIA                STATE      SPEED  DUPLEX    DEVICE
net1              Ethernet             unknown    0       unknown   e1000g1
net0              Ethernet             unknown    0       unknown   e1000g0

root@labsrv:~# dladm show-link
LINK                CLASS     MTU    STATE    OVER
net1                  phys         1500     unknown  --
net0                  phys         1500     unknown  --

root@labsrv:~# svcadm disable network/physical:nwam
root@labsrv:~# netadm enable -p ncp defaultfixed

root@labsrv:~# ipadm create-ipmp ipmp0
root@labsrv:~# ipadm create-ip net0
root@labsrv:~# ipadm create-ip net1
root@labsrv:~# ipadm add-ipmp -i net0 -i net1 ipmp0
root@labsrv:~# echo "172.22.16.10 labsrv" >> /etc/hosts
root@labsrv:~# ipadm create-addr -T static -a labsrv/24 ipmp0/v4

Cleanup and remove ipv6 from the interfaces

root@labsrv:~# ipadm show-addr
root@labsrv:~# ipadm delete-addr net0/_a
root@labsrv:~# ipadm delete-addr net1/_a
root@labsrv:~# ifconfig net0 inet6 unplumb
root@labsrv:~# ifconfig net1 inet6 unplumb
root@labsrv:~# ifconfig ipmp0 inet6 unplumb

### Delete all lines _family=26 ###

root@labsrv:~# vi /etc/ipadm/ipadm.conf
#
# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# DO NOT EDIT OR PARSE THIS FILE!
#
# Use the ipadm(1m) command to change the contents of this file.
_ifname=lo0;_family=2;_class=2;
_ifname=lo0;_aobjname=lo0/v4;_ipv4addr=127.0.0.1,;up=yes;
_ifname=lo0;_aobjname=lo0/v4;prefixlen=8;
_ifname=lo0;_family=26;_class=2;
_ifname=net0;_family=2;_class=0;
_ifname=net0;_family=26;_class=0;
_ifname=net1;_family=2;_class=0;
_ifname=net1;_family=26;_class=0;
_ifname=ipmp0;_family=2;_class=1;
_ifname=ipmp0;_family=26;_class=1;
_ifname=ipmp0;_underif=net0;
_ifname=ipmp0;_underif=net1;
_ifname=ipmp0;_aobjname=ipmp0/labsrv;_ipv4addr=ipmp0-labsrv,;up=yes;
_ifname=ipmp0;_aobjname=ipmp0/labsrv;prefixlen=24;

:wq

root@labsrv:~# route -p add default 172.22.16.1 -ifp ipmp0
root@labsrv:~# pkill -HUP in.mpathd

Probe Based Failure detection (Test Addresses)

root@labsrv:~# dladm show-phys
LINK              MEDIA                STATE      SPEED  DUPLEX    DEVICE
net1              Ethernet             unknown    0       unknown   e1000g1
net0              Ethernet             unknown    0       unknown   e1000g0

root@labsrv:~# dladm show-link
LINK                CLASS     MTU    STATE    OVER
net1                phys      1500   unknown  --
net0                phys      1500   unknown  --

root@labsrv:~# svcadm disable network/physical:nwam
root@labsrv:~# netadm enable -p ncp defaultfixed

root@labsrv:~# ipadm create-ip net0
root@labsrv:~# ipadm create-ip net1
root@labsrv:~# ipadm create-ipmp -i net0 -i net1 ipmp0
root@labsrv:~# echo "172.22.16.11 testaddr-net0" >> /etc/hosts
root@labsrv:~# echo "172.22.16.12 testaddr-net1" >> /etc/hosts
root@labsrv:~# ipadm create-addr -T static -a testaddr-net0/24 ipmp0/test
root@labsrv:~# ipadm create-addr -T static -a testaddr-net1/24 ipmp0/test
root@labsrv:~# ipadm set-ifprop -p standby=on -m ip net1
root@labsrv:~# echo "172.22.16.10 labsrv" >> /etc/hosts
root@labsrv:~# ipadm create-addr -T static -a labsrv/24 ipmp0/v4

root@labsrv:~# route -p add default 172.22.16.1 -ifp ipmp0
root@labsrv:~# pkill -HUP in.mpathd

Probe Based Failure detection (transitive probing)

root@labsrv:~# dladm show-phys
LINK              MEDIA                STATE      SPEED  DUPLEX    DEVICE
net1              Ethernet             unknown    0       unknown   e1000g1
net0              Ethernet             unknown    0       unknown   e1000g0

root@labsrv:~# dladm show-link
LINK                CLASS     MTU    STATE    OVER
net1                phys      1500   unknown  --
net0                phys      1500   unknown  --

root@labsrv:~# svcadm disable network/physical:nwam
root@labsrv:~# netadm enable -p ncp defaultfixed

root@labsrv:~# ipadm create-ip net0
root@labsrv:~# ipadm create-ip net1
root@labsrv:~# ipadm create-ipmp -i net0 -i net1 ipmp0
root@labsrv:~# svccfg -s svc:/network/ipmp setprop config/transitive-probing=true
root@labsrv:~# svcadm refresh svc:/network/ipmp:default
root@labsrv:~# ipadm set-ifprop -p standby=on -m ip net1
root@labsrv:~# echo "172.22.16.10 labsrv" >> /etc/hosts
root@labsrv:~# ipadm create-addr -T static -a labsrv/24 ipmp0/v4

root@labsrv:~# route -p add default 172.22.16.1 -ifp ipmp0
root@labsrv:~# pkill -HUP in.mpathd




That's all what you need to do.
Like This Article ? :
 
Related Posts Plugin for WordPress, Blogger...