=^.^=

Solaris 11 Quick-and-Dirty Network Configuration

Identify interfaces by link state:
# dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE net2 Ethernet up 10000 full hxge0 net3 Ethernet up 10000 full hxge1 net4 Ethernet up 10 full usbecm0 net0 Ethernet up 1000 full igb0 net1 Ethernet up 1000 full igb1 net9 Ethernet unknown 0 half e1000g0 net5 Ethernet unknown 0 half e1000g1 net10 Ethernet unknown 0 half e1000g2 net11 Ethernet unknown 0 half e1000g3

Set static IP:
# ipadm create-ip net0 # ipadm create-addr -T static -a local=192.168.0.100/24 net0

Alternately DHCP:
# ipadm create-ip net0 # ipadm create-addr -T dhcp net0

Set the default route:
# route -p add default 192.168.0.1

Set a static route:
# route -p add -net 192.168.1.0/24 -gateway 192.168.0.1

View routing table:
netstat -rn

Official documentation:
Configuring the Network in Oracle Solaris 11

Comments

There are no comments for this item.