Partial Summary: Changing from static IP to DHCP (Solaris 2.6)

From: Gene Matthews <gene_at_mmc-inc.com>
Date: Fri Apr 26 2002 - 09:28:14 EDT
Most suggestions were to touch /etc/dhcp.hme0.  Some also suggested to run 
sys-unconfig and select DHCP.  

I tried the sys-unconfig, but I guess 2.6 doesn't give you the DHCP option.
I have touched the /etc/dhcp.hme0 file and that seemed to do the trick.  When 
I reboot, it comes up with hme0 getting its IP from DHCP and the default
route is added ok too.  

The problem I'm trying to overcome now is that the hostname is not getting set.
I'm not sure of the config of the DHCP server as I don't control it.  I don't
think it is setting the hostname as I have a linux laptop that i use on this
network that gets its IP via dhcp and i set the hostname and it uses that.

I have /etc/nodename with the hostname in it and as best as I can tell, 
/etc/init.d/rootusr looks like it will attempt to set it using this file,
but it still comes up with hostname as 'unknown'.

Anyone have any thoughts on how to set the hostname?

Thanks,

Gene


============================
Original post below:
============================

I'm having some difficulty changing an Ultra 10 running Solaris 2.6 from
a static IP to DHCP.

I'm sure there is a config file somewhere I'm not changing. 

What I have now is the system coming up with hme0 set to 0.0.0.0

/etc/hostname.hme0 is blank (i used to have the hostname in it)

Once the system is up, i can login in via the console and do:

ifconfig hme0 dhcp

and get an ip and all is well.  What config file (and how) do I modify
so that this occurs automagically upon system startup.

Thanks,

Gene
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Apr 26 09:34:51 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:41 EST