Friday, September 16, 2005

Setting Up the Solaris OS to Work with Cable Modems

Setting Up the Solaris OS to Work with Cable Modems


This tip is written to help you configure a machine running the
Solaris OS as DHCP client to work with DSL cable modem Dynamic Host
Configuration Protocol (DHCP). DHCP provides the IP address, default
route, and name servers. You need Solaris 2.6 or higher for DHCP.
Setup Procedure

The following steps are required as root:


touch /etc/dhcp.hme0

Replace the .hme0 with whatever the Ethernet interface for your
system might be, as shown by ifconfig -a.

cp /dev/null /etc/hostname.hme0


> /etc/hostname.hme0

Important note: You need to make sure that this file is empty --
otherwise, the DHCP configuration won't work.
3. Make sure that /etc/inet/hosts only has one line in it, the one
containing localhost. Any other lines will be ignored, and
any additional necessary lines will be added by the DHCP client at
boot time.

touch /etc/notrouter

This creates a file to tell the Solaris OS that your system will
not be performing routing or packet-forwarding duties. If this file is
already there, leave it the way it is.

cp /dev/null /etc/defaultrouter

Since the DHCP client software will automatically put the needed
entries in this file, we just need to make sure that it exists as an
empty file. If it already exists, rename it and create the empty file
in its place.

cp /dev/null /etc/resolv.conf

The DHCP client will add the necessary entries. If you already
have this file, rename it and create an empty file in its place.
7. Check the file /etc/nsswitch.conf and look at the hosts: line.
Make sure that it reads hosts: files dns.

This will enable your machine to resolve addresses using DNS, the
Domain Name System. Reboot your machine. While booting, you will see
status messages about the DHCP client; this is normal. Once the
machine is booted, type the ifconfig -a command. You will see output
similar to this:

mtu 8232 index 1 inet netmask ff000000
mtu 1500 index inet netmask ffffff80
broadcast ether 8:0:20:d2:15:2f


If you have followed all my instructions, the Solaris machine is ready
to get its networking information by means of DHCP.


Post a Comment

<< Home