Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

DHCP

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
IBS
n00b
n00b
Posts: 9
Joined: Tue May 27, 2003 11:41 am

DHCP

  • Quote

Post by IBS » Wed May 28, 2003 11:35 am

I am trying to get DHCP to work.

When i type:

Code: Select all

$ dhcpcd eth0
nothing happens. Then i tried to run lynx and that didn't work either.

How can i fix this, i have to have internet access to continue the installation.
Top
seaweed
n00b
n00b
Posts: 53
Joined: Mon Apr 22, 2002 5:04 am
Location: NJ, USA
Contact:
Contact seaweed
Website

  • Quote

Post by seaweed » Wed May 28, 2003 11:53 am

The option to use either static IP or DHCP is set in the file "net". The "net" file is located in the "/etc/conf.d/" directory.

This should have been setup during the installation unless you missed a step.

I recommend you take a look at the install docs they are very descriptive.
Top
Shamus McFatty
n00b
n00b
User avatar
Posts: 25
Joined: Wed May 21, 2003 7:39 pm
Location: Ann Arbor, Michigan

  • Quote

Post by Shamus McFatty » Wed May 28, 2003 12:40 pm

Is this in the initial install when you are booted from the Install CD?

1. If so, try the following commands

Code: Select all

lsmod
If this shows your ethernet module loaded, try running

Code: Select all

net-setup eth0
2. If the module isn't loaded, and you know what kind of card it is, look through the

Code: Select all

/lib/modules/*/kernel/drivers/net
directory for your module, and then

Code: Select all

modprobe "module"
without the quotes. If this works, do step 1.

3. If the module isn't loaded and you don't know what kind of card it is run this command

Code: Select all

cat /proc/pci | grep net
Using that infformation, go back to step 2.

Hope this helps,
Shamus McFatty
Top
3vilinside
n00b
n00b
User avatar
Posts: 56
Joined: Fri Apr 11, 2003 9:32 am
Location: Graz, Austria

  • Quote

Post by 3vilinside » Wed May 28, 2003 1:49 pm

Be sure to enable "dhcp" in your net file found in the /etc/conf.d/ directory. If it's not enabled in there you won't be able to start the DHCP service, and you will not receive a valid IP from your DHCP server.
To enable DHCP support in the just named file open it and scroll down to this:

Code: Select all

iface_eth0="dhcp"
Comment out everything else then this line since otherwise things will mess up.

After doing so check if your ethx got a valid IP by typing the following:

Code: Select all

ifconfig -a
(this will give you a list of all network adapters including your loopback device)

Also keep in mind that you may need PROXY support to connect to the internet. See the installation guide for more info!

HTH
"To err lies in the nature of humans, but to really fool things up you need a computer"
Top
taz
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Wed May 21, 2003 3:55 am

ok...

  • Quote

Post by taz » Wed May 28, 2003 7:22 pm

I am having the same issue with my sis900 nic. I have tried all of the suggestions so far that I have found and none have worked.

3vilinside: will the "iface_eth0="dhcp"" code work in the boot line of the livecd?

Like IBS, I have to have my network connection up and running in order to finish my installation of Gentoo.

Thanks
Top
3vilinside
n00b
n00b
User avatar
Posts: 56
Joined: Fri Apr 11, 2003 9:32 am
Location: Graz, Austria

  • Quote

Post by 3vilinside » Thu May 29, 2003 2:56 pm

Do you have an entry of your sis900 nic in the output of

Code: Select all

ifconfig -a
?

will the "iface_eth0="dhcp"" code work in the boot line of the livecd?
Why do you want this to be in the boot line? If you put in the livecd it loads a kernel with all options turned on, which means that it should detect your system components. If you enter the above line in the boot line nothing will happen, since no modules were loaded so far that could refer to a device called eth0. Boot with livecd as described in the guide till you reach the shell.

The guide says:
Note: Some ISPs require you to provide a hostname. To do that, add a -h myhostname flag to the dhcpcd command line above.
Maybe you should try this one out. BTW what livecd are you using? r2/r3/r4?
"To err lies in the nature of humans, but to really fool things up you need a computer"
Top
taz
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Wed May 21, 2003 3:55 am

eth0

  • Quote

Post by taz » Thu May 29, 2003 7:36 pm

Yes, eth0 is shown in ifconfig -a, but nothing happens when I try dhcpcd eth0 or net-setup eth0.

I didn't think that ifaceeht0="dhcpcd" would work in the boot line, but I'm to the point that I'm looking for anything that may make my nic work. I'm new to linux and Gentoo and can't get it to install without a net connection, so this is frustrating.

Thanks

BTW: I am currently trying rc2, but I have also tried 3 and 4, so whichever one you are familiar with I can use.
Top
3vilinside
n00b
n00b
User avatar
Posts: 56
Joined: Fri Apr 11, 2003 9:32 am
Location: Graz, Austria

Re: eth0

  • Quote

Post by 3vilinside » Fri May 30, 2003 6:36 am

Please post your dhcpd.conf found in /etc/conf.d/dhcp and your ifconfig output. I think your problem lies somewhere in the dhcp.conf file. You might have a restriction on your card, so be sure to check out that file!
"To err lies in the nature of humans, but to really fool things up you need a computer"
Top
3vilinside
n00b
n00b
User avatar
Posts: 56
Joined: Fri Apr 11, 2003 9:32 am
Location: Graz, Austria

Re: eth0

  • Quote

Post by 3vilinside » Fri May 30, 2003 6:36 am

Please post your dhcpd.conf found in /etc/conf.d/dhcp and your ifconfig output. I think your problem lies somewhere in the dhcp.conf file. You might have a restriction on your card, so be sure to check out that file!
"To err lies in the nature of humans, but to really fool things up you need a computer"
Top
Post Reply

9 posts • Page 1 of 1

Return to “Installing Gentoo”

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