Computing.Net > Forums > Solaris > setting up dhcp for solaris

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.

setting up dhcp for solaris

Reply to Message Icon

Name: solaris newb
Date: July 29, 2002 at 18:38:15 Pacific
Comment:

Hi. I recently installed Solaris 8x86 so I am pretty new to the entire Solaris thing. I'm trying to setup my Solaris box so that it will be the host for my two other window machines. But currently, I can't seem to even get the Solaris box on the net.
I bought two smc 1255TX network cards (its not on the Solaris HCL, but I found a site that had its drivers for Solaris). Both of these are installed. When I boot up, the ethernet interface for these two cards is afe0 and afe1. Currently I'm only using the afe0 network card (the one that is hooked up to the cable modem) to test if I can even access the net with the Solaris machine. I log in as root and do the following to set up dhcp:

1) touch /etc/dhcp.afe0 2) cp /dev/null /etc/hostname.afe0 3) touch /etc/notrouter 4) cp /dev/null /etc/defaultrouter 5) cp /dev/null /etc/resolv.conf 6) edit /etc/nsswitch.conf and change the line that says "hosts: blah blah blah" to "hosts: files dns"

after I do these things, I reboot the machine. While it is booting, I see a message about afe0 is primary dhcp server (or something like that). I login as root and do a "ifconfig -a" and i see two ips: one is the loopback ip and the other is the ip I got via dhcp. However, I still can't access any webpages. Netscape tells me to check my name servers. I thought that the dhcp client was suppose to add some entries into the /etc/resolv.conf and /etc/defaultrouter files after i rebooted...but they are both empty when I check them.

I know my cable service provider (Optimum Online) uses dhcp because my windows machine access the net via dhcp settings. I don''t know I'm doing wrong or missing. Any help is much appreciated. Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Simply Grateful
Date: July 30, 2002 at 03:22:40 Pacific
Reply:

You're doing everything right as far as i know...

I wasn't able to get the solaris box to populate the /etc/resolv.conf or /etc/defaultrouter entries...

I'd suggest manually entering those items...

I was only able to get dhcp to give an ip address and not even a hostname...

it always came back with unknown as the hostname...

-simplygrateful


0

Response Number 2
Name: Michael Woodmansee
Date: August 7, 2002 at 13:01:25 Pacific
Reply:

I solved the hostname problem thanks to this website:

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

You basically write a script to re-assign the hostname you want.

But *I* have a problem I'm hoping you can help me with. I'm trying to connect to my ComCast cable providor via my Sun Ultra 5 running Solaris 8 2/02. I have everything set up as "solaris newb" suggests (and what is suggested on the above webpage) but I get a interface configuration error from OpenBoot telling me that ifconfig has a bad address for my interface, hme0. I had done a sys-unconfig prior to all of this (blindly thinking that the default configuration scripts would carry me through).

What do I need to do to fix this?

Thanks in advance,
Mike


0

Response Number 3
Name: Michael Woodmansee
Date: August 7, 2002 at 14:15:11 Pacific
Reply:

I'm going to answer my own question here... courtesy of a previous post to this newsgroup:

Unplug the cable modem, then plug it in and reboot...

It's the stupidest things that make the biggest difference.

Mike


0

Response Number 4
Name: vandy
Date: August 20, 2002 at 19:17:04 Pacific
Reply:

Could you let everyone know which the site where one can find solaris driver for smc 1255TX network cards
thnx


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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: setting up dhcp for solaris

Setting up DHCP client on Solaris 8 www.computing.net/answers/solaris/setting-up-dhcp-client-on-solaris-8/468.html

solaris dns www.computing.net/answers/solaris/solaris-dns/3576.html

dhcp with Solaris 2.x www.computing.net/answers/solaris/dhcp-with-solaris-2x/2942.html