Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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"
fiand change it to:
if [ -z "$hostname" ]; then
hostname="`shcat /etc/nodename 2>/dev/null`"
fiThis 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
domainnameNow everything should work. :-)
//TechMark

![]() |
Sun Ray prining
|
how to update A1000 firmw...
|

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