Solaris 11 – From nothing to IPMP Load Balancing

This box did not have any network configurations done at all. I started configuring every single file up to the IPMP configuration.

How to configure the networking files.

# dladm show-phys

LINK MEDIA STATE SPEED DUPLEX DEVICE
net1 Ethernet unknown 0 unknown vnet1
net0 Ethernet unknown 0 unknown vnet0

# ifconfig net0 plumb
# ifconfig net1 plumb
# dladm show-phys

LINK MEDIA STATE SPEED DUPLEX DEVICE
net1 Ethernet up 0 unknown vnet1
net0 Ethernet up 0 unknown vnet0

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
 inet 127.0.0.1 netmask ff000000
ipmp0: flags=8011000803<UP,BROADCAST,MULTICAST,IPv4,FAILED,IPMP> mtu 68 index 2
 inet <ip address> netmask ffffff00 broadcast 10.37.10.255
 groupname ipmp0
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
 inet6 ::1/128
ipmp0: flags=28012000800<MULTICAST,IPv6,FAILED,IPMP> mtu 1280 index 2
 inet6 ::/0
 groupname ipmp0

# svccfg -s dns/client
svc:/network/dns/client> listprop config
config application
config/value_authorization astring solaris.smf.value.name-service.dns.client
svc:/network/dns/client> setprop config/nameserver = (<ip address> <ip address>)
svc:/network/dns/client> setprop config/domain = sing.seagate.com
svc:/network/dns/client> listprop config
config application
config/value_authorization astring solaris.smf.value.name-service.dns.client
config/nameserver net_address <ip address> <ip address>
config/domain astring sing.seagate.com
svc:/network/dns/client> exit
# svcadm refresh dns/client
# cat /etc/resolv.conf

domain domainname.com
nameserver <ip address>
nameserver <ip address>

# svccfg -s name-service/switch
svc:/system/name-service/switch> setprop config/host= "files dns"
svc:/system/name-service/switch> setprop config/ipnode = astring: "files/dns"
svc:/system/name-service/switch> exit
# svcadm restart name-service/switch

# cat /etc/nsswitch.conf

hosts: files dns
ipnodes: files dns

# vi /etc/netmasks
<ip address> 255.255.255.0

# vi /etc/hosts
127.0.0.1 localhost
<ip address> <FQDN> loghost

# vi /etc/defaultrouter
<default gateway ip>

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
 inet 127.0.0.1 netmask ff000000
ipmp0: flags=8001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,IPMP> mtu 1500 index 2
 inet <ip address>netmask ffffff00 broadcast
 groupname ipmp0
net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
 inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
 groupname ipmp0
 ether 0:14:4f:fb:ec:be
net1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
 inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
 groupname ipmp0
 ether 0:14:4f:fb:e:e9

How to create IPMP

# ipadm create-ipmp ipmp0
# ipadm add-ipmp -i net0 -i net1 ipmp0
# ipadm create-addr -T static -a /24 ipmp0/v4
# ipadm show-ifprop | grep standby

lo0 standby ip rw off -- off on,off
 ipmp0 standby ip rw off -- off on,off
 net0 standby ip rw off -- off on,off
 net1 standby ip rw off -- off on,off

# ipadm set-ifprop -p standby=on -m ip net0
# ipadm show-ifprop | grep standby

lo0 standby ip rw off -- off on,off
 ipmp0 standby ip rw off -- off on,off
 net0 standby ip rw on on off on,off
 net1 standby ip rw off -- off on,off

# ifconfig -a

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
ipmp0: flags=8001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,IPMP> mtu 1500 index 2
 inet netmask ffffff00 broadcast
 groupname ipmp0
 net0: flags=61000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY,INACTIVE> mtu 1500 index 3
 inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255 groupname ipmp0 ether 0:14:4f:fb:ec:be
 net1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
 inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255 groupname ipmp0 ether 0:14:4f:fb:e:e9

# ipmpstat -g
 GROUP GROUPNAME STATE FDT INTERFACES
 ipmp0 ipmp0 ok -- net1 (net0)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s