Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcp ja adsl toimimaan bootissa?[toimii]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Finnish
View previous topic :: View next topic  
Author Message
Icer
Guru
Guru


Joined: 26 Aug 2003
Posts: 395
Location: @home

PostPosted: Tue Mar 14, 2006 6:07 pm    Post subject: dhcp ja adsl toimimaan bootissa?[toimii] Reply with quote

Moi,

Tällähetkellä netti toimii adsl:n ja pppoe:n kautta. Kun kone boottaa niin eth0 ei saa mitään ip osoitetta. ppp0:lla on pppoe:n hakema osoite. Saan dhcp:llä ip:n eth0:lle dhcpcd:llä näin: ¨dhcpcd -N -R -G". Siis tuo hakee ip osoitteen ilman että ntp, DNS, ja GW menee päin metsähallitusta. Miten saan käytettyä dhcpcd:tä bootissa automaattisesti? Koitin lukea /etc/conf.d/net:iä mutta ei onnistunut ainakaan sitä kautta. Näyttää että kaikki minun tekemät dhcp asetukset on ignoroitu ja ainoastaan adsl asetukset otetaan huomioon.

Tässä relevantit osat /etc/conf.d/net:stä:
Code:
# Regardless of which DHCP client you prefer, you configure them the
# same way using one of following depending on which interface modules
# you're using.
config_eth0=( "dhcpcd" )

# For passing custom options to dhcpcd use something like the following.  This
# example reduces the timeout for retrieving an address from 60 seconds (the
# default) to 10 seconds.
dhcpcd_eth0="-t 10 -N -R -G"

# GENERIC DHCP OPTIONS
# Set generic DHCP options like so
dhcp_eth0="release nodns nontp nonis nogateway nosendhost"

# This tells the dhcp client to release it's lease when it stops, not to
# overwrite dns, ntp and nis settings, not to set a default route and not to
# send the current hostname to the dhcp server and when it starts.
# You can use any combination of the above options - the default is not to
# use any of them.

... snip ...


# ADSL
# For ADSL support, emerge net-dialup/rp-pppoe
# You should make the following settings and also put your
# username/password information in /etc/ppp/pap-secrets

# Configure the interface to use ADSL
config_eth0=( "adsl" )


Haluan siis saada tuon dhcp ip:n eth0:lle että kotiverkon windoosa pääsee kiinni tähän purkkiin ilman että tarvii kiertää isp:n kautta.


Last edited by Icer on Tue Mar 28, 2006 8:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
Flammie
Retired Dev
Retired Dev


Joined: 02 Jun 2003
Posts: 633
Location: Dublin, Ireland

PostPosted: Fri Mar 17, 2006 4:33 pm    Post subject: Reply with quote

Tarkoitatko että asetusten pitäisi olla kuten
Code:

config_eth0=(
 "dhcpcd"
 "adsl"
)

?
Back to top
View user's profile Send private message
Icer
Guru
Guru


Joined: 26 Aug 2003
Posts: 395
Location: @home

PostPosted: Fri Mar 17, 2006 8:20 pm    Post subject: Reply with quote

Flammie wrote:
Tarkoitatko että asetusten pitäisi olla kuten
Code:

config_eth0=(
 "dhcpcd"
 "adsl"
)

?


Jotain sen tapaista. Täytyypä kokeilla tuota vinkkiä, kitos.
Back to top
View user's profile Send private message
Icer
Guru
Guru


Joined: 26 Aug 2003
Posts: 395
Location: @home

PostPosted: Tue Mar 28, 2006 8:40 pm    Post subject: Reply with quote

Tässä toimiva versio /etc/conf.d/net filestä:
Code:

modules_eth0=( "dhcpcd" )
modules=( "dhcpcd" )
dhcpcd_eth0="-t 20"
dhcp_eth0="release nodns nontp nonis nogateway nosendhost"
config_eth0=( "adsl" "dhcp" )

Onkohan tuossa eka tai toka rivi turha.

Kuitenkin homma toimii taas. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Finnish 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