Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCP with -H and login problems..
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
soroh6
Apprentice
Apprentice


Joined: 07 Nov 2002
Posts: 232

PostPosted: Fri Feb 27, 2004 8:32 am    Post subject: DHCP with -H and login problems.. Reply with quote

Not sure if this is the right forum or not, I suppose it is however.
This isn't a problem I can't work around, but I thought I would bring it to light just in case..

I've had this problem once before, but only tonight did I realize what it was. I have dhcpcd_eth0="-H -t 10" in my /etc/conf.d/net so that it sets my hostname to my ISPs hostname. (with the -H flag)

However, tonight my ISP seems to be having a few problems and as such can't fetch a hostname, only an IP tonight. This seems to cause a problem when logging in. I don't get a 'hostname login:' when I bootup if I don't have a hostname. I can unplug my modem and reboot so that eth doesn't come up, and I just get my custom (local) hostname and can then login fine.

Any ideas on say, if it can't get a hostname it should just set the hostname to the IP? Or the local hostname?

-soroh

-edit-
Just wanted to clarify what I mean.. I *cannot login* if -H is present and it doesn't receive a hostname from dhcpcd. After it boots the init scripts you get a blank line where you would normally type your username, but you cannot type your username, since you don't have a login prompt.
_________________
:: soroh -*~
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Feb 27, 2004 10:19 am    Post subject: Reply with quote

One whacky suggestion:
You could run a local dhcpd server and forward the request to your ISP, then test and transform the reply on your end if you don't get a hostname.
I'm fairly sure the forwarding of one dhcpd to another is possible.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum