Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Frequently Asked Questions
  • Search

KC3: Networking

Some of the most commonly heard questions in the Gentoo Community, along with answers.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
TheCoop
Veteran
Veteran
User avatar
Posts: 1814
Joined: Sat Jun 15, 2002 5:20 pm
Location: Where you least expect it
Contact:
Contact TheCoop
Website

KC3: Networking

  • Quote

Post by TheCoop » Fri Nov 22, 2002 7:33 am

Navigation: [Kernel Compilation] [Table of Contents]


KC3: Networking worked during installation, but now that I compiled my own kernel, it doesn't work anymore. What's wrong?

Firstly, you need to make sure you have the correct kernel modules compiled into the kernel (found in Device Drivers -> Network Device Support -> Ethernet xxxMbit). You can choose which one you have using the output of lspci and the kernel help with each network driver. For instance, my lspci output is:

Code: Select all

...
00:10.0 PCI bridge: nVidia Corporation MCP51 PCI Bridge (rev a2)
00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2)
00:14.0 Bridge: nVidia Corporation MCP51 Ethernet Controller (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
...
This shows I have the nvidia network controller (00:14.0), so I need to select the nForce network driver in the 10/100Mbit menu. It is usually a good idea to compile network devices into the kernel, rather than as a module. This stops you messing around with hotplug & modules.autoload. If you don't know which network driver out of several yours might apply to, compile all the possibilities as modules, then load them one by one (you dont need to reboot for this, if the kernel version you are running is the same as you are compiling the modules for), having a look at the output of 'dmesg|tail' to see which one finds the network controller. That is then the one you need to select to be compiled into the kernel (you can deselect all the others that didn't work). You can also check to see if a new network device appears in the output of 'ifconfig -a'

If you know you have the correct driver compiled in, and your network uses dhcp you don't need to do any extra configuration - you should already have a dhcp client installed (dhcpcd), so simply run '/etc/init.d/net.eth0 start'. If your network card is a different number (eg eth1) create the net.eth1 script as follows:

Code: Select all

cd /etc/init.d
ln -s net.eth0 net.eth1
If dhcpcd doesnt work, you can run it directly in debug mode to see where it is going wrong with the following:

Code: Select all

dhcpcd -d ethx
If your network uses static addressing, you need to create the /etc/conf.d/net file with something like the following in it:

Code: Select all

config_eth0=( "192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255" )
or

Code: Select all

config_eth0=( "192.168.0.2 netmask 255.255.255.0" )
depending on your network setup. Then bring it up with '/etc/init.d/net.eth0 start'

Hopefully this should get you a working network connection, so you can then add net.eth0 to the startup script to have networking brought up on boot: rc-update add net.eth0 boot (or net.eth1 as needed)
Last edited by TheCoop on Sun Jan 14, 2007 2:30 pm, edited 1 time in total.
Top
rac
Bodhisattva
Bodhisattva
User avatar
Posts: 6553
Joined: Thu May 30, 2002 6:19 am
Location: Japanifornia
Contact:
Contact rac
Website

  • Quote

Post by rac » Sat Nov 30, 2002 9:13 pm

Post comments on this FAQ to [FAQF] KC3: Networking.
For every higher wall, there is a taller ladder
Top
pjp
Administrator
Administrator
User avatar
Posts: 20668
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Wed May 14, 2003 2:16 am

From the old FAQ:

It is generally easier in the long run to compile drivers for network cards directly into the kernel, rather than as modules. Make sure the driver for your network card is selected as [*] when you configured the kernel. Also make sure you mounted the partition containing the /boot directory when you copied your kernel to it; otherwise your changes will not take effect.
Quis separabit? Quo animo?
Top
Post Reply

3 posts • Page 1 of 1

Return to “Frequently Asked Questions”

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