Datalinks (dladm)
Layer-2 objects representing NICs and VNICs. Use dladm show-link/show-phys to view physical state, MAC, speed and duplex.
Solaris · Network Configuration
Solaris · Lesson 15
Configure IP and routing in Solaris. netadm and dladm usage. DNS configuration. Network troubleshooting steps.
Solaris network configuration is built in layers. Once you understand the difference between datalinks, IP interfaces, VNICs and IPMP groups, the commands become much easier to remember.
Layer-2 objects representing NICs and VNICs. Use dladm show-link/show-phys to view physical state, MAC, speed and duplex.
Layer-3 logical interfaces over datalinks (net0, vnic0, etc.). ipadm manages IP objects and addresses.
Virtual NICs built on a physical datalink. Useful for virtualisation, isolation, and IPMP in lab or cloud-like setups.
IP Multipathing provides link/IP redundancy and optional load spreading, monitored via ipmpstat.
The following flows take you from reading existing configuration, to adding a static IP, to creating VNICs and finally building an IPMP group with failover testing.
Start by listing physical links, IP interfaces and addresses using ifconfig, dladm and ipadm.
Create an IP interface over a datalink (net1), then assign a static IPv4 address. Later we’ll see how to remove it.
A VNIC is a virtual NIC built on top of a physical datalink. It appears as a separate link to IP.
IPMP (IP Multipathing) provides link/IP failover and load spreading. Here we build an IPMP group out of two VNICs.
Use ipmpstat to see group status and interfaces, and if_mpadm to simulate failure and recovery.
When lab testing is done, remove addresses, detach links from IPMP, then delete the group and VNICs.
ipmpstat and if_mpadm before assuming redundancy is working.Once you’re comfortable with these tools, networking on Solaris (even with zones and virtualisation) becomes much easier to reason about.