Solaris 9 Configure Network
  1. Assumptions:
    • IP Address: 192.168.1.19
    • Hostname: sunbox.example.org
    • Gateway/Router: 192.168.1.1
    • DNS Servers: 192.168.2.100, 192.168.2.101
    • NIS Server: nis.example.org
      • NIS domain: example.org
  2. Reboot the computer to single user mode if you cannot login. See how to boot single user mode on solaris
  3. edit /etc/inet/hosts, make sure the hostname and IP address of the computer is correctly included.
    • 192.168.1.19 sunbox.example.org sunbox
    • 192.168.
  4. Setup ethernet interface:
    • to check the existing interfaces: **ifconfig -a
    • set ip address: ifconfig eri0 192.168.1.19
    • set broadcast: ifconfig eri0 broadcast 192.168.1.255
  5. edit /etc/netmasks to set netmask
    • 192.168.1.0 255.255.255.0
  6. Now you should be able to ping the router: ping 192.168.1.1
  7. Setup DNS servers:
    • edit /etc/resolv.conf
      • search example.org
      • domain example.org
      • nameserver 192.168.2.100
      • nameserver 192.168.2.101
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License