Solaris 9 Configure Network
- 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
- Reboot the computer to single user mode if you cannot login. See how to boot single user mode on solaris
- 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.
- 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
- edit /etc/netmasks to set netmask
- 192.168.1.0 255.255.255.0
- Now you should be able to ping the router: ping 192.168.1.1
- Setup DNS servers:
- edit /etc/resolv.conf
- search example.org
- domain example.org
- nameserver 192.168.2.100
- nameserver 192.168.2.101
- edit /etc/resolv.conf
page revision: 2, last edited: 27 Jun 2008 02:41