Computing.Net > Forums > Solaris > Wierd error...unable to solve!!!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Wierd error...unable to solve!!!

Reply to Message Icon

Name: Ranjit
Date: November 1, 2002 at 16:45:41 Pacific
OS: sloaris 8
CPU/Ram: sparc ultra-1
Comment:

Hi,

I have been trying to configure dhcp on my solaris 8 workstation and somehow i finally managed to do so. But i still get the following error when the system is booted:

/sbin/dhcpconfig: Interface not in appropriate state for command

Why am i getting this error? I searched the internet and there is no sloution i could find!!! Trying to find the reason for this error has really driven me crazy!!I would be highly obliged if someone could please help me with a solution!!

thanks,
Ranjit



Sponsored Link
Ads by Google

Response Number 1
Name: TechMark
Date: November 4, 2002 at 03:49:46 Pacific
Reply:

Hi!
It seems to me that you might have "halfconfigured" your system to a dhcp-server in your attempts to get the dhcp to work.
This might solve your problem, type the command "dhcpconfig" and then choose to unconfigure from the menu.

All you need to do to get the system to work as a dhcp-client is to create an empty file named dhcp. in the /etc directory. If you unsure of the name of your network-interface, then search for a file named hostname. in the /etc directory.

You might get some trouble with the hostename being "unknown" though, this is due to some stupid programming in the init-scripts.
Create a backup-copy of the scripts /etc/rcS.d/S30network.sh and
/etc/rc2.d/S72inetsvc
Then open the scripts and search for the word "unknown"
Then find the following code-section:
if [ -z "$hostname" ]; then
hostname="unknown"
fi

and change it to:
if [ -z "$hostname" ]; then
hostname="`shcat /etc/nodename 2>/dev/null`"
fi

This should solve any problems regarding the hostnames.
You might also need to create the /etc/defaultrouter file and enter the ip-adress of your default-gateway. You will proably also need to create a file named /etc/resolv.conf if you want the system to work with internet.
You will need the following entries in /etc/resolv.conf:
nameserver
domainname

Now everything should work. :-)

//TechMark


0
Reply to Message Icon

Related Posts

See More


Sun Ray prining how to update A1000 firmw...



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: Wierd error...unable to solve!!!

Unable to install Oracle 8i client www.computing.net/answers/solaris/unable-to-install-oracle-8i-client-/3269.html

Unable to mount root during installation www.computing.net/answers/solaris/unable-to-mount-root-during-installation/2282.html

unable to get my IP address www.computing.net/answers/solaris/unable-to-get-my-ip-address/3884.html