Configure Static IP for OpenSolaris

Follow step below:

  1. svcadm disable network/physical:nwam (Execute in terminal)
  2. svcadm enable network/physical:default (Execute in terminal)
  3. cp /etc/nsswitch.dns /etc/nsswitch.conf
  4. Put DNS in /etc/resolv.conf ( eg: nameserver 192.168.0.9)
  5. Put the default router(gateway) ip into /etc/defaultrouter (eg:192.168.0.1)
  6. If your Ethernet interface name is rtls0, create /etc/hostname.rtls0, and put two lines as below:
    eg: line 1: 192.168.0.199 (the static IP you want)
    line 2: netmask 255.255.255.0 broadcast + up
  7. Restart Machine
 

dicksonkho

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.