IPMP

From S23Wiki
Jump to: navigation, search

Sun's Internet Protical Multi Pathing (IPMP)

Here is a example of how to set up two nic's in a IPMP failover pair with a floating address. This group 'vlan23' will use probe based failure detection.


First we set up the hosts table '/etc/hosts' here we define the hostnames and ip addresses of the servers network interfaces (bge0 and hme0)

#
# Internet host table
#
::1 localhost
127.0.0.1        localhost
10.23.23.5      host23-pirmary
10.23.23.17     host23-standby
10.23.23.23     host23				loghost

We also want the define the default netmask for the ip addresses used.

host23:~# cat /etc/netmasks 
#
#       network-number  netmask
10.23.23.0     255.255.225.0

Now we configure the network interfaces:

The first one bge0 '/etc/hostname.bge0 ' will be the default interface for the floating ip

host23-pirmary group VLAN23 deprecated -failover up \
addif host23 failover up \

The second one hme0 '/etc/hostname.hme0' is the standby interface for the floating ip.

host23-standby group VLAN23 deprecated -failover standby up

After setting this up restart the server (or more likely just networking) and you will end up with your interfaces look like this.

'ifconfig -a'
lo0: ...
bge0: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2
        inet 10.23.23.5 netmask ffffff00 broadcast 10.23.23.255
        groupname VLAN23
        ether 0:14:2:3:2:3a 
bge0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.23.23.23 netmask ffffff00 broadcast 10.23.23.255
hme0: flags=69040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE> mtu 1500 index 3
        inet 10.23.23.17 netmask ffffff00 broadcast 10.23.23.255
        groupname VLAN23
        ether 0:14:2:3:2:3b