Dhcp


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Dhcp
# 1  
Old 09-23-2002
Dhcp

When using DHCP how can I can my hostname. I vi all the hosts file and if still didn't work. So now my hostname is unknown and I want to change it. So if anyone out there can help me. Thank You
# 2  
Old 09-23-2002
It usually the following command:

hostname system.domain.com

Most Unix will also have a boot option which will configure tis for you at boot time!
# 3  
Old 09-23-2002
Please post the OS and version with each question.

If it's Solaris, then this may work (unknown if it works in Solaris X86)

Solaris systems try to set their hostname through the "dhcpinfo" command
when they are booted as DHCP clients. The "dhcpinfo" command tries to
obtain the hostname for the client from a DHCP server by matching the
client's MAC address with a hostname entry in the DHCP server's network
client table. A Windows NT DHCP server usually does not have a network
client table since the hostname of a Windows client is stored locally.
Hence, a Solaris DHCP client will get no reply from the Windows NT DHCP
server to it's "dhcpinfo" command. If the Solaris client is configured
to use DHCP and the DHCP server fails to respond to the "dhcpinfo"
command, the client's hostname is set to "unknown" by the startup scripts.

We may work around this problem by making some modifications in the
system startup scripts as shown below:

1. For Solaris 2.6 and Solaris 7 Systems.

Edit the file /etc/init.d/rootusr and change the line that reads

hostname=`/sbin/dhcpinfo Hostname`

to

# hostname=`/sbin/dhcpinfo Hostname`
hostname=`shcat /etc/nodename`
uname -S $hostname

Save the file and reboot the system. The system's hostname will be the
entry in the file /etc/nodename.

2. For Solaris 8 systems.

Edit the file /etc/init.d/network and change the line that reads

"dhcp") hostname=`/sbin/dhcpinfo Hostname` ;;

to

# "dhcp") hostname=`/sbin/dhcpinfo Hostname` ;;
"dhcp") hostname=`shcat /etc/nodename` ;;

Then, edit the file /etc/init.d/inetsvc and change the line that reads

hostname=`/sbin/dhcpinfo Hostname`

to

# hostname=`/sbin/dhcpinfo Hostname`
hostname=`/usr/bin/cat /etc/nodename`

Save the files and reboot the system. The system's hostname will be the
entry in the file /etc/nodename.
# 4  
Old 09-23-2002
DHCP

I tried everything that was written down and it still didn't work. Please anymore help, I'm open
# 5  
Old 09-23-2002
What OS and version????
# 6  
Old 09-23-2002
dhcp

SunOS unknown 5.8 Generic_108529-16 i86pc i386 i86pc
# 7  
Old 09-23-2002
As stated earlier, it is unknown if the fix found on SunSolve would work on X86. This is the only fix SunSolve has for this problem but they don't state if it works on X86.

You might try rebooting if you had not done that after the changes.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Dhcp

I have a DHCP thing on my HP printer. How can I find information on numbers for that? (2 Replies)
Discussion started by: teak
2 Replies

2. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | 192.168.99.1 | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies

3. IP Networking

Can't get DHCP IP

Dear Experts, I have a TI DM8148 EVM board REV C, the EZSDK5.05 SW package, and DVRRDK1.09 SW package. EZSDK5.05, DVRRDK1.09 both use Linux2.6.37, however, there are some modifications between these two kernels. When I use uImage of DVRRDK1.09 to boot up EVM board, this board can be given a... (0 Replies)
Discussion started by: oobin168
0 Replies

4. UNIX for Dummies Questions & Answers

Help on DHCP

Hi All, I am trying to configure dhcp server on a linux host with eth0:1 which is using 192.168.1.10 I also want to restrict my DHCP client to just one Host adcnew222. DHCP Server Host name - adcnew111 DHCP client name - adcnew222 My conf file is as follows on dhcp server : ... (2 Replies)
Discussion started by: sriram003
2 Replies

5. IP Networking

dhcp

can I request for an ipaddress through dhcp client by sending ipaddress as input during the invokation of dhcpclient so that it requests the server for the same,instead of depending on the configuration file . (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies

6. Solaris

DHCP help

Can someone help me with this please. I am new to this: I am trying to install Solaris 8 over the network using my DHCP. After I type the comman: ./add_install_client -d -e 8:0:20:7e:97:51 I would get something like this: cleaning up preexisting install client "8:0:20:7e:97:51"... (0 Replies)
Discussion started by: aliban83
0 Replies

7. UNIX for Advanced & Expert Users

Dhcp

Last question for today!! :rolleyes: In what file does the DHCP server keep its list of leases? THANKS!!! :) Maria from Maria (2 Replies)
Discussion started by: marjeg
2 Replies

8. UNIX for Dummies Questions & Answers

Dhcp

HI, New to Unix and I inherited a network that runs DHCP in manual configuration mode. Basically, in order for a machine to get an IP it has to have an entry in dhcpd.conf with its MAC address mapped to a hostname (the hostname then maps to an IP address listed in the DNS db file). If there is... (2 Replies)
Discussion started by: NJay
2 Replies

9. UNIX for Advanced & Expert Users

Dhcp

Hi you all. I'm trying to enable DHCP in a Sun Utra 5 runing Solaris 8 but during the boot process it sends me the message : "Device not in appropiate status" Do anyone have enabled DHCP on solaris 8? Any Procedure? The DHCP server is an NT I guess. (2 Replies)
Discussion started by: alex blanco
2 Replies

10. IP Networking

Dhcp

Hello all, I have this Intel Pentium 233/128 running Solaris 8. I also have a dhcp/router/dns running SuSElinux 7.2.(Sorry if it is out of topic here) My problem is that the Solaris box when it tries to configure the interface (elxl0) via dhcp it fails. It appears, according to the... (1 Reply)
Discussion started by: jdevarie
1 Replies
Login or Register to Ask a Question