Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Finnish
  • Search

dhcp ja adsl toimimaan bootissa?[toimii]

Keskustelua Gentoo Linuxista suomeksi. Tervetuloa!

Moderator: Chiitoo

Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
Author
Message
Icer
Guru
Guru
User avatar
Posts: 395
Joined: Tue Aug 26, 2003 8:11 pm
Location: @home

dhcp ja adsl toimimaan bootissa?[toimii]

  • Quote

Post by Icer » Tue Mar 14, 2006 6:07 pm

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: 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" )
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.
Top
Flammie
Retired Dev
Retired Dev
User avatar
Posts: 632
Joined: Mon Jun 02, 2003 9:48 pm
Location: Dublin, Ireland
Contact:
Contact Flammie
Website

  • Quote

Post by Flammie » Fri Mar 17, 2006 4:33 pm

Tarkoitatko että asetusten pitäisi olla kuten

Code: Select all

config_eth0=( 
 "dhcpcd"
 "adsl"
) 
?
Top
Icer
Guru
Guru
User avatar
Posts: 395
Joined: Tue Aug 26, 2003 8:11 pm
Location: @home

  • Quote

Post by Icer » Fri Mar 17, 2006 8:20 pm

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

Code: Select all

config_eth0=( 
 "dhcpcd"
 "adsl"
) 
?
Jotain sen tapaista. Täytyypä kokeilla tuota vinkkiä, kitos.
Top
Icer
Guru
Guru
User avatar
Posts: 395
Joined: Tue Aug 26, 2003 8:11 pm
Location: @home

  • Quote

Post by Icer » Tue Mar 28, 2006 8:40 pm

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

Code: Select all

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
Top
Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Finnish”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic