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 Tue 21 Oct 2014, 23:30
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 Posts_count_1  
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:   Sort by:   
Page 1 of 1 Posts_count_1  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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