Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
noob question on dhcpcd eth0
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
mirage
n00b
n00b


Joined: 02 Jun 2003
Posts: 7

PostPosted: Mon Jun 02, 2003 11:41 pm    Post subject: noob question on dhcpcd eth0 Reply with quote

just installed gentoo without problem, but i cannot connect online unless i type when i first boot:

Code:
dhcpcd eth0


any idea on how to get connected without having to type that in everytime?

thanks,
Alex
Back to top
View user's profile Send private message
greml!n
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 159

PostPosted: Tue Jun 03, 2003 1:04 am    Post subject: Reply with quote

Not sure, but I'll tell you how I'd find out. Obviously gentoo forum search for things like "dhcpd startup" and "dhcpd boot" would be first. Google and google's usenet archive are also wonderful resources.

Lastly, most things boot related are handled via runlevels, specifically in the /etc/init.d directory. If I look in there I see a script called net.eth0 and I recognize that eth0 is my network adapter. Paging through this script (using the programm "less") I see a comment that says:
#NB: Config is in /etc/conf.d/net

If I examine /etc/conf.d/net I see this little snippet:
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

I have no idea if that's right but it should be enough to get you started.
Back to top
View user's profile Send private message
reaz82
Apprentice
Apprentice


Joined: 14 Mar 2003
Posts: 203
Location: Austin, Texas

PostPosted: Tue Jun 03, 2003 4:17 am    Post subject: Reply with quote

greml!n wrote:
Not sure, but I'll tell you how I'd find out. Obviously gentoo forum search for things like "dhcpd startup" and "dhcpd boot" would be first. Google and google's usenet archive are also wonderful resources.

Lastly, most things boot related are handled via runlevels, specifically in the /etc/init.d directory. If I look in there I see a script called net.eth0 and I recognize that eth0 is my network adapter. Paging through this script (using the programm "less") I see a comment that says:
#NB: Config is in /etc/conf.d/net

If I examine /etc/conf.d/net I see this little snippet:
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

I have no idea if that's right but it should be enough to get you started.


you see that second to last line? remove the #(comment symbol) and then add net.eth0 to ur boot run level by using 'rc-update add net.eth0 default'

that should get ur card up and running..

take care
Back to top
View user's profile Send private message
mirage
n00b
n00b


Joined: 02 Jun 2003
Posts: 7

PostPosted: Tue Jun 03, 2003 10:22 pm    Post subject: Reply with quote

great! thanks for the fast response
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