Introduction

Consider a Solaris Server that you need as a DHCP and DNS server. The ideal configuration would be a static network config so that the IP address never changes. The best way to go about doing this is to configuring the following files. For the sake of argument let say we want the IP address of the server to be 172.16.0.100 with a Class C network mask. I have a Intel Pro 1000 Gigabit Ethernet card in my Solaris Server so the e1000g driver is used in the examples. Finally the hostname for this Solaris server will be called "solsrv"

Required Files

/etc/defaultrouter
/etc/inet/netmasks
/etc/nodename
/etc/hostname.e1000g0
/etc/resolv.conf
/etc/hosts

/etc/defaultrouter

172.16.0.1

/etc/inet/netmasks

172.16.0.0 255.255.255.0

/etc/nodename

solsrv

/etc/hostname.e1000g0

solsrv

/etc/resolv.conf

For my DNS server I use OpenDNS: http://www.opendns.org

nameserver 208.67.222.222

/etc/hosts

127.0.0.1 localhost
172.16.0.100 solsrv

IMPORTANT - Delete These Files

Finally remove these files using the following commands:

rm /etc/dhcp.e1000g0
rm /etc/dhcp/e1000g0.dhc

Leave a Reply