Oracle Solaris 11 Network Configuration and New Features


Oracle  Solaris  introduced two new features  on Solaris 11  which  different  from Oracle  Solaris 10. There are  some changes for “dladm” command  and  also a new  command “ipadm” which will help us  to configure  network interfaces. Instead  of  “ifconfig” changes  made  by “dladm” and  also “ipadm” are  persistend  across reboot.

“dladm” helps administrator  two perform  data-link  (layer 2)  operation like  configure  physical links, Vlan,aggregations etc. And also changing  link layer  properties.

Another  point  that  introduced  on Solaris 11  link name  are  not  physical name  like  e100g0,bge0  etc. It  means that  data-link name  are  not  same  as  physical link name . As  I showed  below.

# dladm show-phys

LINK MEDIA STATE SPEED DUPLEX DEVICE

net0 Ethernet up 1000 full e1000g0

net1 Ethernet up 1000 full e1000g1

net2 Ethernet up 1000 full e1000g2

As  you see  from command output Link name are  “net0-1-2” and  also  physical-link name  are “e1000g0-1-2”. Remember that  on Solaris  10  data-link and  physical-link name are same  as. This will help us  to give spesific  names  to  data-link . You should change  “net*” as  you want.

# dladm show-phys

LINK MEDIA STATE SPEED DUPLEX DEVICE

net0 Ethernet up 100Mb full e1000g0

net1 Ethernet up 100Mb full nge0



# ipadm delete-ip net0

# dladm rename-link net0 oldnet0

# dladm rename-link net1 net0



# ipadm create-ip net0

# ipadm create-addr -a 192.168.91.140/24 net0

ipadm: net0/v4



# dladm show-phys

LINK MEDIA STATE SPEED DUPLEX DEVICE

oldnet0 Ethernet up 1000 full e1000g0

net0 Ethernet up 1000 full nge0

Also  you can  create  network profile and apply them with  “netadm” and  “netcfg” command. Her  is an simple example  of  create  network  profile  with “netcfg” command. It  names  NCP on Oracle  Solaris 11.

root@first:~# netcfg

netcfg> create ncp DisasterNet

netcfg:ncp:DisasterNet> create ncu phys net2

Created ncu 'net2'. Walking properties ...

activation-mode (manual) [manual|prioritized]>

mac-address>

autopush>

mtu>

netcfg:ncp:DisasterNet:ncu:net2> end

Committed changes

netcfg:ncp:DisasterNet> create ncu ip net2

Created ncu 'net2'. Walking properties ...

ip-version (ipv4,ipv6) [ipv4|ipv6]> ipv4

ipv4-addrsrc [dhcp|static]> static

ipv4-addr> 192.168.91.130

ipv4-default-route>

netcfg:ncp:DisasterNet:ncu:net2> verify

All properties verified

netcfg:ncp:DisasterNet:ncu:net2> end

Committed changes

netcfg:ncp:DisasterNet> list

ncp:DisasterNet

management-type reactive

NCUs:

phys net2

ip net2

netcfg:ncp:DisasterNet> list ncu phys net2

ncu:net2

type link

class phys

parent "DisasterNet"

activation-mode manual

enabled true

netcfg:ncp:DisasterNet> list ncu ip net2

ncu:net2

type interface

class ip

parent "DisasterNet"

enabled true

ip-version ipv4

ipv4-addrsrc static

ipv4-addr "192.168.91.130"

netcfg:ncp:DisasterNet>

There  are  two modes  for  Oracle Solaris 11 Manual an Automatic Networking  modes which named “Automatic”  and  “DefaultFixed”. Automatic  network  profiles  use DHCP  to  obtain basic network  configuration like IP addres netmask and  gateway. DefaultFixed  mode  needs  to configure  network  interface  manually  with  “dladm” and ” ipadm”  commands. If you are an administrator  like  me to  take  all control of system  you should  disable  Automatic  networking  options . Link aggregations  operations  needs  to DefaultFixed mode. So  If you ‘ll  create  aggregations you need to  change  default  Automatic mode to  DefaultFixed.

root@first:~# netadm list

TYPE PROFILE STATE

ncp Automatic online

ncu:phys net0 online

ncu:phys net1 online

ncu:phys net2 online

ncu:ip net0 online

ncu:ip net1 online

ncp DefaultFixed disabled

ncp TempNetwokr disabled

ncp TempUserNetwork disabled

ncp DisasterNet disabled

loc DefaultFixed offline

loc Automatic online

loc NoNet offline

root@first:~# netadm enable -p ncp DefaultFixed

Enabling ncp 'DefaultFixed'

root@first:~#



root@first:~# netadm list

TYPE PROFILE STATE

ncp Automatic disabled

ncp DefaultFixed online

ncp TempNetwokr disabled

ncp TempUserNetwork disabled

ncp DisasterNet disabled

loc DefaultFixed online

loc Automatic offline

loc NoNet offline

root@first:~#

A simple example  about  how to create static ip with ipadm command manually.

root@first:~# ipadm

NAME CLASS/TYPE STATE UNDER ADDR

lo0 loopback ok -- --

lo0/v4 static ok -- 127.0.0.1/8

lo0/v6 static ok -- ::1/128

net0 ip ok -- --

net0/v4 dhcp ok -- 192.168.0.6/24

net0/v6 addrconf ok -- fe80::20c:29ff:fef0:59b5/10

net1 ip ok -- --

net1/test static ok -- 192.168.91.129/24

root@first:~# dladm show-phys

LINK MEDIA STATE SPEED DUPLEX DEVICE

net0 Ethernet up 1000 full e1000g0

net1 Ethernet up 1000 full e1000g1

net2 Ethernet up 1000 full e1000g2

root@first:~# ipadm create-ip net2

root@first:~# ipadm create-addr -T static -a 192.168.91.130 net2

net2/v4

root@first:~# ipadm

NAME CLASS/TYPE STATE UNDER ADDR

lo0 loopback ok -- --

lo0/v4 static ok -- 127.0.0.1/8

lo0/v6 static ok -- ::1/128

net0 ip ok -- --

net0/v4 dhcp ok -- 192.168.0.6/24

net0/v6 addrconf ok -- fe80::20c:29ff:fef0:59b5/10

net1 ip ok -- --

net1/test static ok -- 192.168.91.129/24

net2 ip ok -- --

net2/v4 static ok -- 192.168.91.130/24

root@first:~# route -p add default 10.163.91.2



root@first:~#route -p show

Last  but  not  least  important  changes  on Solaris 11  is  SMF.Name service  configuration is stored  on SMF  instead  of  /etc file. This configruation changes make a  big advantages to manage  system changes  on patching and  other  works.

  • svc:/network/dns/client  >> /etc/resolv.conf
  • svc:/system/name-service/switch >>/etc/nsswitch.conf
  • svc:/system/identity:node >>  /etc/nodename

I'm a IT Infrastructure and Operations Architect with extensive experience and administration skills and works for Turk Telekom. I provide hardware and software support for the IT Infrastructure and Operations tasks.

205 Total Posts
Follow Me