Setting up networking on OmniOS
10 May 2012

I installed OmniOS in a VirtualBox with a bridged network interface, and when it came up, it hadno networking at all.

I have the hostname lw-01-oo mapped to in my internal DNS. The first part is different from Solaris 10 and earlier.

# dladm show-link -o link

Great, I have a network interface. I need to make an IP interface on top of that link:

# ipadm create-if e1000g0

Then set an IPv4 address for that interface. I’ll use the name v4 in case I ever want to add an IPv6 address. (lol)

# ipadm create-addr -T static -a e1000g0/v4

And my network’s default route is

# route -p add default

Nifty. Unlike Solaris 11, the rest is the same as it’s always been. To get DNS working I just stick

domain localnet

in /etc/resolv.conf and add dns to the end of the hosts line in /etc/nsswitch.conf. My home directories are exported from tap, so I add

*    tap:/export/home/&

to my /etc/auto_home file, add my user, and restart the autofs service. Done!