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

9 Comments

  1. Hi, here on the forum guys advised a cool Dating site, be sure to register - you will not REGRET it https://bit.ly/39Zx5oK

  2. Really Great work Man, Thanks for your long list, this saved me a lot of time to find those Blog Commenting submission sites. At the same time I’ve been making some of them in the hope to get high quality backlinks to my site. All of the posts on your blog are having informative and valuable content. Appreciate your efforts.

  3. Great post! Blog commenting is an acquired skill which depends on a couple of factors which are very well explained and articulated especially favourable circumstances to comment on blogs. Thanks and cheers!

  4. It’s really amazing to have many lists of blogs commenting, will help to make backlinks.thanks a lot for sharing it.

  5. However, its not a matter of commenting on blogs, whats most important is the type of comments you’re leaving on those blogs, if they’re engaging and interesting enough then, they will likely come with so many benefits.Really Nice List Impressive collection of some great blog sites.Blog commenting is really one of the easiest way to build up a following around your blog. I am sure that every bloggers should have known this fact by now. Some Links are not work properly but overall a nice lists.

  6. Thank you so much for the article. I have been looking for such an article on how to perform SEO in 2019. Also, kindly help me with the topic that Google is counting directories as spam these days.

  7. Opieraj swoje działania o wiarygodne źródła wiedzy.

  8. Bottom-of-the-funnel content material drives conversions and ought to gently encourage a sale or lead.

Leave a Reply