Documente Academic
Documente Profesional
Documente Cultură
Page 1 of 4
Next, ensure that automatic network configuration is disabled. In my case it was as Id configured networking manually during the installation of Solaris 11:
# netadm list -p ncp -x TYPE PROFILESTATEAUXILIARY STATE ncp Automaticdisabled disabled by administrator ncp DefaultFixed online active
Verify that the appropriate physical interfaces are available. In the following output, Ill be bonding
http://www.tokiwinter.com/configuring-transitive-ipmp-on-solaris-11/
2/6/2014
Page 2 of 4
0 1000
List the current addresses from the output of ipadm show-addr I can see that Ill need to delete
net0/v4 and net0/v6, otherwise Ill be unable to add net0 to the IPMP group.
# ipadm delete-addr net0/v4 # ipadm delete-addr net0/v6
As the net0 IP interface is already created, I only need to create the net1 interface:
# ipadm create-ip net1
I can then create the IPMP group, which Ill call ipmp0:
# ipadm add-ipmp -i net0 -i net1 ipmp0
And configure the appropriate interface (in my case net1) to be a standby interface (as Im using failover):
# ipadm set-ifprop -p standby=on -m ip net1
Finally, fix the default route. I removed the existing route and added a new default route using the new and correct interface ipmp0:
# route -p delete default 10.1.1.1 # route -p add default 10.1.1.1 -ifp ipmp0 # netstat -rn -f inet Routing Table: IPv4 Destination -------------------default 10.1.1.0 127.0.0.1
Flags Ref Use Interface ----- ----- ---------- --------UG 1 0 ipmp0 U 8 388 ipmp0 UH 2 554 lo0
http://www.tokiwinter.com/configuring-transitive-ipmp-on-solaris-11/
2/6/2014
Page 3 of 4
You can use ipmpstat to verify the configuration and health of the IPMP group:
# ipmpstat -g GROUP GROUPNAME STATE FDT INTERFACES ipmp0 ipmp0 ok 10.00s net0 (net1) # ipmpstat -a ADDRESS STATEGROUP INBOUND OUTBOUND :: down ipmp0 --clusternode1up ipmp0 net0net0 # ipmpstat -t INTERFACE MODE TESTADDRTARGETS net1transitive <net1> <net0> net0routes clusternode1 10.1.1.1
Lets perform a failover test. Ill disable net0 and ensure that the clusternode1 address fails over:
# ipadm disable-if -t net0 # ipmpstat -t INTERFACE MODE TESTADDRTARGETS net1routes clusternode1 10.1.1.1
It works! (and my SSH connection is still active) net1 is now active with the correct IP address. Lets fail it back:
# ipadm enable-if -t net0 # ipmpstat -t INTERFACE MODE TESTADDRTARGETS net0routes clusternode1 10.1.1.1 net1transitive <net1> <net0>
The address has failed back to net0, and again my SSH connection is still active. I can now continue with clusternode2, and the rest of the cluster install.
Related posts:
1. Solaris Cluster 4.1 Part One: Initial Preparation 2. How to Upgrade from Solaris 10 to Solaris 11: Network Preparation 3. Configuring Interface Bonding on CentOS/RHEL/OEL 6.x 4. How to Network Solaris 11 Zones Under VMware or VirtualBox 5. Configuring Interface Bonding on Debian (Wheezy)
This entry was posted in UNIX & Linux How Tos and Tutorials and tagged clustering, IPMP, solaris, solaris 11 on May 22, 2013 [http://www.tokiwinter.com/configuring-transitive-ipmp-on-solaris-11/] .
http://www.tokiwinter.com/configuring-transitive-ipmp-on-solaris-11/
2/6/2014
Page 4 of 4
http://www.tokiwinter.com/configuring-transitive-ipmp-on-solaris-11/
2/6/2014