Computing.Net > Forums > Solaris > How to get a dynamic IP ?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to get a dynamic IP ?

Reply to Message Icon

Name: Philip Wing
Date: May 18, 2002 at 15:23:23 Pacific
Comment:

Hi all,
I have this new Solaris 8 box, and my cable modem company provides only dynamic IPs. How to config the box so I can connect to the internet ? Is it that I have to setup DHCP ? Thanks for help!

Philip



Sponsored Link
Ads by Google

Response Number 1
Name: Heru
Date: May 18, 2002 at 17:36:39 Pacific
Reply:

DHCP is the answer.
If you configure DHCP in Solaris it should be able to connect to the net for you. But be warned you may need your domain name(which you can get from your ISP).


0

Response Number 2
Name: Philip Wing
Date: May 18, 2002 at 21:12:34 Pacific
Reply:

Do I need to setup DHCP server and client together ?
On Solaris 8, dhcpconfig is the command to start dhcp configuration. It actually helps you to setup the dhcp server first. I think all I need to setup is the client, right ? Becuase dhcp server is the ISP server, correct ?

Thanks.

Philip


0

Response Number 3
Name: Heru
Date: May 18, 2002 at 23:12:00 Pacific
Reply:

As far as I know you are correct.
The server is at your ISP's local building. All you should need to do is configure the client(your computer).


0

Response Number 4
Name: PaulS
Date: May 19, 2002 at 07:34:53 Pacific
Reply:

This reference may help.

www.rite-group.com
/consulting/solaris_dhcp.html


0

Response Number 5
Name: johnny agarwal
Date: May 24, 2002 at 12:37:37 Pacific
Reply:

a. touch /etc/dhcp.eth0
replace the ".eth0" with whatever the ethernet interface for your system might
be, as shown by
ifconfig -a

b. cp /dev/null /etc/hostname.eth0
You need to make SURE that this file is EMPTY - otherwise, DHCP
configuration won't work.

c. 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.

e. touch /etc/notrouter
this creates a file to tell Solaris that your system will not be performing routing
or
packet-forwarding duties. If the file is there leave it the way it is.

f. 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.

g. 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.

h. Edit the file /etc/nsswitch.conf and look at the hosts: line. By default, it
reads files ; change it to read hosts: files dns. This will enable your
machine to resolve addresses using DNS, the Domain Name System.
Okay if you have followed all my Instructions, Solaris machine is ready to get its
networking information via DHCP.
Reboot your machine. You will see status messages during boot about the DHCP
client, this is normal. Once the machine is booted
type the "ifconfig -a" command. You will see output similar to this:

$ ifconfig -a
le0: flags=849 mtu 8232
inet 127.0.0.1 netmask ff000000
eth0: flags=4843 mtu 1500
inet 66.65.63.238 netmask ffffff00 broadcast 66.65.63.255
ether 8:0:20:9f:37:f1

i. check to make sure that the /etc/resolv.conf and /etc/defaultrouter files
were configured by the DHCP client.
Type "hostname" to see if it says "unknown." If so, DHCP did not provide a
hostname. One workaround is to edit /etc/init.d/ network and replace
all occurences of "unknown" with your real hostname.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: How to get a dynamic IP ?

shell script to check a dynamic ip www.computing.net/answers/solaris/shell-script-to-check-a-dynamic-ip/4287.html

How to get CDE on linux machines www.computing.net/answers/solaris/how-to-get-cde-on-linux-machines/4721.html

How to make a boot disk for solaris www.computing.net/answers/solaris/how-to-make-a-boot-disk-for-solaris/3457.html