Networking in Solaris 11 (Part – 1)

In Solaris 10, ethernet card name remain same at device layer and data-link layer. But in Solaris 11 we are having flexiblity of giving meaningful names at Datalink layer to interface cards.
By default in Solaris 11, we will be having net0, net1 like names at data-link layer. To see the mapping between data-link and device layer. We can use the dladm commands.

To check the names at data-link layer.

root@solaris11:~# dladm show-link
LINK CLASS MTU STATE OVER
net0 phys 1500 up —
net1 phys 1500 unknown —
net2 phys 1500 unknown —
net3 phys 1500 unknown —
net4 phys 1500 unknown —
net5 phys 1500 unknown —
net6 phys 1500 unknown —

To see the mapping between names of data link and device layer.

root@solaris11:~# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet up 1000 full e1000g0
net1 Ethernet unknown 0 unknown e1000g1
net2 Ethernet unknown 0 unknown e1000g2
net3 Ethernet unknown 0 unknown e1000g3
net4 Ethernet unknown 0 unknown e1000g4
net5 Ethernet unknown 0 unknown e1000g5
net6 Ethernet unknown 0 unknown e1000g6

Now questions is how the system is judging to which ethernet it should give net0 or net1 number ?

1) First it will sort network devices according to media type. Like ethernet, IP over IB, Ethernet over IB, WiFi
2) After doing that sorting, it will ordered the device according to physical location. Note : dladm show-phys -L command can be used to check the physical location of NIC
3) Device with higher priority according to media and location will be assigned lowest number such net0.

Is that possible to stick to old naming convention ? Answer is Yes.

If you want to stick to previous naming convention as Solaris 10. We can modify the System Configuration Manifest that are used by AI. We can remove any value for phys-prefix. Or if you want Linux like names add eth in place on net. Unfotunately I didn’t get the chance to do that.

Determine the current network management mode. It is default fixed. I am using this node for whole network configuration.

root@solaris11:~# netadm list -x
TYPE PROFILE STATE AUXILIARY STATE
ncp Automatic disabled disabled by administrator
ncp DefaultFixed online active
loc Automatic offline conditions for activation are unmet
loc NoNet offline conditions for activation are unmet
loc DefaultFixed online active

As I told you we are having a flexibility of changing name in data link layer. Showing the same by actually doing it.

root@solaris11:~# dladm show-link
LINK CLASS MTU STATE OVER
net0 phys 1500 up —
net1 phys 1500 unknown —
net2 phys 1500 unknown —
net3 phys 1500 unknown —
net4 phys 1500 unknown —
net5 phys 1500 unknown —
net6 phys 1500 unknown —

root@solaris11:~# dladm rename-link net1 newnet1

root@solaris11:~# dladm show-link
LINK CLASS MTU STATE OVER
net0 phys 1500 up —
newnet1 phys 1500 unknown —
net2 phys 1500 unknown —
net3 phys 1500 unknown —
net4 phys 1500 unknown —
net5 phys 1500 unknown —
net6 phys 1500 unknown —

We can revert to original name simple swapping the names in dladm rename-link command.

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