This content is submitted by a BigAdmin user. It has not been reviewed for technical accuracy by Sun Microsystems, though it may have been lightly edited to improve readability. If you find an error or would like to comment on the article, please contact the submitter or use the comment field at the bottom of the article.
Community submissions may not follow Sun trademark guidelines. For information on Sun trademarks, please see http://www.sun.com/suntrademarks/.
Setting Up the Solaris OS to Work with Cable Modems
by Muhammad Talha
Introduction
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
or
> /etc/hostname.hme0
Important note: You need to make sure that this file is empty -- otherwise, the DHCP configuration won't work.
Make sure that /etc/inet/hosts only has one line in it, the one containing
127.0.0.1 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.
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:
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4>
mtu 8232 index 1 inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4>
mtu 1500 index inet 192.168.1.35 netmask ffffff80
broadcast 192.168.1.255 ether 8:0:20:d2:15:2f
Conclusion
If you have followed all my instructions, the Solaris machine is ready to get its networking information by means of DHCP.
The information and links on this page have been provided by a BigAdmin
user. The submitter is solely responsible for such information and
links. Sun is not responsible for the availability of external sites or
resources, and does not endorse and is not responsible or liable for any
content, advertising, products, or other materials on or available from
such sites or resources. Sun will not be responsible or liable, directly
or indirectly, for any actual or alleged damage or loss caused by or in
connection with use of or reliance on the information posted here, or
goods or services available on or through any external site or
resource.