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: Select all
# 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" )
