How To Configure An IP Address in Solaris 11
How To Configure An IP Address in Solaris 11
How To Configure An IP Address in Solaris 11
Oracle made a huge changes in the networking stack with Solaris 11. The use of many
network related files have been deprecated in Solaris 11. Below are some of the files
which are not used in Solaris 11 for persistent network configuration :
/etc/defaultdomain
/etc/dhcp.*
/etc/hostname.*
/etc/hostname.ip*.tun*
/etc/nodename
/etc/nsswitch.conf
# netadm list
TYPE PROFILE STATE
ncp Automatic disabled
ncp DefaultFixed online
loc Automatic offline
loc NoNet offline
loc DefaultFixed online
As seen in the output above, the NCP is set to DefaultFixed. In case it is not set, use
netadm command to set it to DefaultFixed :
# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet up 1000 full e1000g0
Now if you see, there is a device alias name net0 for e1000g0. Starting Solaris 11, all
the network ports would be identified by an alias in a generic format of net#.
# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes ---
net0 ip down no ---
# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes --
net0 ip ok yes --
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/geeklab static ok 192.168.1.20/24
lo0/v6 static ok ::1/128