View previous topic :: View next topic |
Author |
Message |
Icer Guru
Joined: 26 Aug 2003 Posts: 395 Location: @home
|
Posted: Tue Mar 14, 2006 6:07 pm Post subject: dhcp ja adsl toimimaan bootissa?[toimii] |
|
|
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 |
|
|
Flammie Retired Dev
Joined: 02 Jun 2003 Posts: 633 Location: Dublin, Ireland
|
Posted: Fri Mar 17, 2006 4:33 pm Post subject: |
|
|
Tarkoitatko että asetusten pitäisi olla kuten
Code: |
config_eth0=(
"dhcpcd"
"adsl"
)
|
? |
|
Back to top |
|
|
Icer Guru
Joined: 26 Aug 2003 Posts: 395 Location: @home
|
Posted: Fri Mar 17, 2006 8:20 pm Post subject: |
|
|
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 |
|
|
Icer Guru
Joined: 26 Aug 2003 Posts: 395 Location: @home
|
Posted: Tue Mar 28, 2006 8:40 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
|