Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Jul 2014, 12:25
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
DHCP on AtHome network (sending hostname in dhcpcd)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
elmar

Joined: 13 Jun 2006
Posts: 1

PostPosted: Tue 13 Jun 2006, 15:03    Post subject:  DHCP on AtHome network (sending hostname in dhcpcd)  

The AtHome ISP requires the hostname of the computer to be sent to the DHCP server when requesting an IP, otherwise DHCP will fail. This is only an issue if the pc is hooked directly to the cable modem.
Here is how I solved this for Puppy 2.0.0:

change /etc/rc.d/rc.network line 164 from:
Code:
dhcpcd ${INTERFACE}

to:
Code:
HOSTNAME=`cat /etc/hostname`
dhcpcd -h ${HOSTNAME} ${INTERFACE}


change /usr/sbin/net-setup.sh line 590 from:
Code:
if dhcpcd -d "$INTERFACE"

to:
Code:
HOSTNAME=`cat /etc/hostname`
if dhcpcd -d -h ${HOSTNAME} "$INTERFACE"


change /usr/sbin/net-setup.sh line 612 from:
Code:
dhcpcd ${INTERFACE}

to:
Code:
HOSTNAME=\`cat /etc/hostname\`
dhcpcd -h \${HOSTNAME} ${INTERFACE}


Make sure you set /etc/hostname to contain the hostname issued by AtHome.

I'm not even sure if the change to rc.network is required - that part of the change was left over from my solution to the problem in Puppy 1.0.7

This fix does not seem to hurt even when not on the AtHome network.

Elmar
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0380s ][ Queries: 11 (0.0029s) ][ GZIP on ]