Friday, 25 April 2014

How to configure Link Based IPMP in solaris 10?

1)make entry in /etc/hosts file
# cat /etc/hosts
#
# Internet host table
#
::1     localhost
127.0.0.1       localhost
10.25.12.15   Guest1  loghost
2)make link base config , start in.mapthd daemon & restart service.
# cat /etc/hostname.vnet0
Guest1 netmask + broadcast + group testgrp0  up
# cat /etc/hostname.vnet1
group testgrp0  up

#/usr/lib/inet/in.mpathd
# svcadm restart svc:/network/physical:default
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
vnet0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.25.12.15 netmask ffffff00 broadcast 119.43.101.255
        groupname testgrp0
        ether 0:14:4f:f9:9:11
vnet1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
        groupname testgrp0
        ether 0:14:4f:fb:e1:4e
3)testing of IPMP.
# if_mpadm -d vnet0
Apr 25 20:41:38 Guest1 in.mpathd[7920]: Successfully failed over from NIC vnet0 to NIC vnet1
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
vnet0: flags=89000842<BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER,OFFLINE> mtu 0 index 2
        inet 0.0.0.0 netmask 0
        groupname testgrp0
        ether 0:14:4f:f9:9:11
vnet1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
        groupname testgrp0
        ether 0:14:4f:fb:e1:4e
vnet1:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 10.25.12.15 netmask ffffff00 broadcast 119.43.101.255

# if_mpadm -r vnet0
Apr 25 20:42:05 Guest1 in.mpathd[7920]: Successfully failed back to NIC vnet0
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
vnet0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.25.12.15 netmask ffffff00 broadcast 119.43.101.255
        groupname testgrp0
        ether 0:14:4f:f9:9:11
vnet1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
        groupname testgrp0
        ether 0:14:4f:fb:e1:4e

No comments:

Post a Comment