"HOSTNAME=" problem with DSL DHCP

"HOSTNAME=" problem with DSL DHCP

Post by Tom Edelbro » Wed, 21 Feb 2001 15:13:34



I have just gotten set up with TELUS DSL in BC Canada. My W98 and WinNT work
perfect using DHCP, although in the instructions they ask you to remove the
domain name and DNS server and WINS entries from your TCP/IP setup.

But when I boot under Linux it hangs on eth0 every time, then times out.

I discovered what is causing the problem: "/etc/sysconfig/network" contains
the line "HOSTNAME=blade.mville.com", (everything works fine if I just
delete this one line). But if I delete the line then my host name shows up
as a bunch of gibberish at the Linux command line, ie: "allng675yaud#".

So I put in "HOSTNAME=blade", but then it won't bring up eth0!

I've tried both pump and dhcp daemon. Both give the same problem. How can I
keep a host name but also bring up eth0 with the DSL DHCP?

Thanks

 
 
 

"HOSTNAME=" problem with DSL DHCP

Post by E J » Wed, 21 Feb 2001 16:00:35


The only solution I found that work is that you don't bring up the eth0 during
bootup and it will revert to
the hostname that you give it.
After everything is up except for the network then bring up eth0
$ su -
password: <secret>
# dhcpcd

In a new window
 # tail -f /var/log/message # check to see dhcpcd is ok and not timed out.

I have tried to edit /etc/sysconfig/network-scripts/ifup to comment out dhcpcd
from picking up the
hostname from Telus' dhcp server but no luck.


> I have just gotten set up with TELUS DSL in BC Canada. My W98 and WinNT work
> perfect using DHCP, although in the instructions they ask you to remove the
> domain name and DNS server and WINS entries from your TCP/IP setup.

> But when I boot under Linux it hangs on eth0 every time, then times out.

> I discovered what is causing the problem: "/etc/sysconfig/network" contains
> the line "HOSTNAME=blade.mville.com", (everything works fine if I just
> delete this one line). But if I delete the line then my host name shows up
> as a bunch of gibberish at the Linux command line, ie: "allng675yaud#".

> So I put in "HOSTNAME=blade", but then it won't bring up eth0!

> I've tried both pump and dhcp daemon. Both give the same problem. How can I
> keep a host name but also bring up eth0 with the DSL DHCP?

> Thanks


 
 
 

"HOSTNAME=" problem with DSL DHCP

Post by Rod Smi » Thu, 22 Feb 2001 01:02:12


[Posted and mailed]



Quote:> I have just gotten set up with TELUS DSL in BC Canada. My W98 and WinNT work
> perfect using DHCP, although in the instructions they ask you to remove the
> domain name and DNS server and WINS entries from your TCP/IP setup.

> But when I boot under Linux it hangs on eth0 every time, then times out.

> I discovered what is causing the problem: "/etc/sysconfig/network" contains
> the line "HOSTNAME=blade.mville.com", (everything works fine if I just
> delete this one line). But if I delete the line then my host name shows up
> as a bunch of gibberish at the Linux command line, ie: "allng675yaud#".

> So I put in "HOSTNAME=blade", but then it won't bring up eth0!

Try deleting the line and then using a separate hostname command in a
later startup script, like /etc/rc.d/rc.local on many systems. For
instance:

hostname blade.mville.com

--

http://www.rodsbooks.com
Author of books on Linux & multi-OS configuration

 
 
 

"HOSTNAME=" problem with DSL DHCP

Post by Hu » Sat, 03 Mar 2001 11:34:47



>I have just gotten set up with TELUS DSL in BC Canada. My W98 and WinNT work
>perfect using DHCP, although in the instructions they ask you to remove the
>domain name and DNS server and WINS entries from your TCP/IP setup.

>But when I boot under Linux it hangs on eth0 every time, then times out.

>I discovered what is causing the problem: "/etc/sysconfig/network" contains
>the line "HOSTNAME=blade.mville.com", (everything works fine if I just
>delete this one line). But if I delete the line then my host name shows up
>as a bunch of gibberish at the Linux command line, ie: "allng675yaud#".

>So I put in "HOSTNAME=blade", but then it won't bring up eth0!

>I've tried both pump and dhcp daemon. Both give the same problem. How can I
>keep a host name but also bring up eth0 with the DSL DHCP?

>Thanks

Hello,

My one computer (Network server) connects with ISP by DHCP. The ISP gave me
hostname and ip address dynamically but, in my case the IP address is fixed one.
Well, DHCP server can gives static address to its client.

I don't use the hostname which the ISP gives. Instead, I use another hostname for this computer.I put the name in /etc/hosts file. Outside local network, when my other computers go out for Internet then the hostname ,which ISP gives, is work.

The difference is my computer has two network cards.

Did you put your ISP's name server address to /etc/resolv.conf?
Cause in MS Windows, the network program handles DHCP and domain server registration.

Wish it helps you.