Tuesday, July 3, 2012

IPMP on Solaris 10 & 9

Hi All, 
I have gone thriugh the docs and pdf , but did not get much clarity on implementing IPMP properly on Solaris 9 & on Solaris 10. It would of great help to me if anyone can give me an example (steps) each for configuring Link based and probe based 
IPMP. 
Hi, 


I tried the link based IPMP the follwing way and it worked. 

Make sure: eeprom "local-mac-address?=true". 



[root@AAAconv]# more hostname.bge0 
10.66.12.60/24 group oam up 
[root@AAAconv]# more hostname.bge1 
group oam standby up 
[root@AAAconv]# 


[root@AAAconv]# ifconfig -a 
lo0: flags 
01000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4 ,VIRTUAL> mtu 8232 index 1 
inet 127.0.0.1 netmask ff000000 
bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IP v4> mtu 1500 index 2 
inet 10.66.12.60 netmask ffffff00 broadcast 10.66.12.255 
groupname oam 
ether 0:14:4f:a2:60:70 
bge0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IP v4> mtu 1500 index 2 
inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255 
bge1: flags=69000842<BROADCAST,RUNNING,MULTICAST,IPv4 ,NOFAILOVER,STANDBY,INACTIVE> mtu 0 index 3 
inet 0.0.0.0 netmask 0 
groupname oam 
ether 0:14:4f:a2:60:71 


To verify that the IPMP daemon is running, use the following command: 

pgrep -fl mpathd 
119 /usr/lib/inet/in.mpathd -a 

Verify Link-based IPMP Operation 
To verify the system's IPMP configuration, the if_mpadm command can be used. You can use this command to take a network interface offline (detach it), which forces a failover. Messages are sent to the console and to /var/adm/messages that indicate any failovers or failbacks which occur. 
Take the interface offline to force a failover:p 

if_mpadm -d bge0 
The message on the console indicates that the failover was successful: 
Dec 16 13:24:31 sys11 in.mpathd[119]: Successfully failed over from NIC bge0 to NIC hme1 
Thankyou very much Vaughn , this is a wonderfull piece of information and my doubts were clear pertaining to Link & Probe based. 
Once Again thankyou very very much
Link based : 



Setting IPMP on Solaris 10 - link based detection 





activate ethernet interface 

# ifconfig ce0 plumb 

# ifconfig ce1 plumb 



Giving IP Address and IP Multipathing 

# ifconfig ce0 10.172.75.2 netmask 255.255.255.0 broadcast + group ipmp1 
up 



# ifconfig ce1 group ipmp1 up 



Now we only have 1 IP address ( 10.172.75.2 ). 



If this setting keep on when system reboot, check all following conf 
file. 



# more /etc/hosts 

127.0.0.1 localhost 

10.172.75.2 server01 



# more /etc/netmasks 

10.172.75.0 255.255.255.0 



#more /etc/defaultrouter 

10.172.75.1 



# more /etc/hostname.ce0 

server01 netmask + broadcast + group ipmp1 up 



For active-active configuration : 

# more /etc/hostname.ce1 

group ipmp1 up 



For active-passive configuration : 

# more /etc/hostname.ce1 

group ipmp1 standby up 



Check network interface status for active-active : 

# ifconfig -a 

ce0: flags=1000843 mtu 1500 index 4 

inet 10.172.75.2 netmask ffffff00 broadcast 10.172.75.255 

groupname ipmp1 

ether xx:xx:xx:xx:xx:xx 

ce1: flags=1000843 mtu 1500 index 5 

inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255 

groupname ipmp1 

ether xx:xx:xx:xx:xx:xx 



Check network interface status for active-standby : 

# ifconfig -a 

ce0: flags=1000843 mtu 1500 index 4 

inet 10.172.75.2 netmask ffffff00 broadcast 10.172.75.255 

groupname ipmp1 

ether xx:xx:xx:xx:xx:xx 

ce0:1: flags=1000843 mtu 1500 index 4 

inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255 

ce1: flags=69000842 mtu 0 index 5 

inet 0.0.0.0 netmask 0 

groupname ipmp1 

ether xx:xx:xx:xx:xx:xx 



Probe Based: 



We will assume the following: 



#Private Net for node A 

10.0.0.10 oradb-0a-priv oradb-0a-priv.adesa.com #Private 
VIP 

10.0.0.11 oradb-0a-ce1 oradb-ce1.adesa.com 

10.0.0.12 oradb-0a-ce2 oradb-ce2.adesa.com 



#Private Net for Node B 

10.0.0.20 oradb-0b-priv oradb--0b-priv.adesa.com #Private 
VIP 

10.0.0.21 oradb-0b-ce1 oradb-ce1.adesa.com 

10.0.0.22 oradb-0b-ce2 oradb-ce2.adesa.com 





Create the /etc/hostname.ce1 and /etc/hostname.ce2 files with the 
following contents. 



Note that ipmpdev in the following examples is a group name that you can 
assign for your particular host. 



Replace the contents of /etc/hostname.ce1 with the following: 



oradb-0a-ce1 deprecated -failover netmask + broadcast + group ipmpdev up 
addif oradb-0a-priv netmask + broadcast + failover up 



Replace the contents of /etc/hostname.ce2 with the following: 



oradb-0a-ce2 netmask + broadcast + deprecated group ipmpdev -failover 
standby up 



Plumb both NICs if they are not already plumbed 

# ifconfig ce1 plumb 

# ifconfig ce2 plumb 



Bring the NICs online 

# ifconfig ce1 oradb-0a-ce1 deprecated -failover netmask + broadcast + 
group ipmpdev up addif oradb-0a-priv netmask + broadcast + failover up 



#ifconfig ce2 oradb-0a-ce2 netmask + broadcast + deprecated group 
ipmpdev -failover standby up 



Reboot the system and verify the following network configurations 
afterwards: 



init 6 



# ifconfig -a 



ce1: 
flags=9040843<UP,BROADCAST,RUNNING,MULTICAS T,DEPRECATED,IPv4,NOFAILOVER> 
mtu 1500 index 4 

inet 10.0.0.11 netmask ffffff00 broadcast 10.0.0.255 

groupname ipmpdev 

ether 0:3:ba:9b:2f:cb 

ce1:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IP v4> mtu 1500 index 


inet 10.0.0.10 netmask ffffff00 broadcast 10.0.0.255 

ce2: 
flags=69040843<UP,BROADCAST,RUNNING,MULTICA ST,DEPRECATED,IPv4,NOFAILOVER 
,STANDBY,INACTIVE> mtu 1500 index 5 

inet 10.0.0.12 netmask ffffff00 broadcast 10.0.0.255 

groupname ipmpdev 

ether 0:3:ba:9b:2f:cb

0 comments:

Post a Comment

 
Design by BABU | Dedicated to grandfather | welcome to BABU-UNIX-FORUM