Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with DHCP and net.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
breiko
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2006
Posts: 106
Location: Italy

PostPosted: Fri Jul 21, 2006 9:30 am    Post subject: Problem with DHCP and net.eth0 Reply with quote

Hi! I have a problem! Yeah..

This is my /etc/init.d/net
Code:
config_eth0=("192.168.0.5 netmask 255.255.255.0")
routes_eth0=( "default gw 192.168.0.1" )


This is the result of etc/init.d/net.eth0 start
Code:
localhost init.d # /etc/init.d/net.eth0 start
 * Starting eth0
 *   Bringing up eth0
 *     dhcp
 *       Running dhcpcd ...


Why dhcpd starts? I put a static ip in /etc/init.d/net ..
So I have to start my network manually:
Code:

localhost init.d # ifconfig eth0 192.168.0.5 up
localhost init.d # route add default gw 192.168.0.1
Back to top
View user's profile Send private message
Tin
Guru
Guru


Joined: 22 Dec 2005
Posts: 305
Location: Namur, Belgium

PostPosted: Fri Jul 21, 2006 10:15 am    Post subject: Reply with quote

I think that you should define your network configuration in
/etc/conf.d/net
and not in
/etc/init.d/net
:wink:
_________________
Tin, the gentoobie
Back to top
View user's profile Send private message
breiko
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2006
Posts: 106
Location: Italy

PostPosted: Fri Jul 21, 2006 11:23 am    Post subject: Reply with quote

Thanks I'm an idiot.. or just a newbie.
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