Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Cant solve my dhcp problem whatever I do.

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
30 posts
  • 1
  • 2
  • Next
Author
Message
fishtail
n00b
n00b
Posts: 64
Joined: Mon Sep 20, 2004 5:24 pm

Cant solve my dhcp problem whatever I do.

  • Quote

Post by fishtail » Thu Sep 23, 2004 11:05 am

I'm of course new in Gentoo and while gentoo works I love it, though it hasn't worked for a while now.

I have installed the genkernel and is 100% aware at which module I should use to get my PCI-netcard working, though it doesn't work when I boot the system.
On liveCD it works fine.

I know this is a problem many folks had, and I have read plenty forums, but I can't get it work anyway so I'm doing my own thread.

The error message I get while booting is:

Code: Select all

* Bringing eth0 up via DHCP....           [!!]

* ERROR: Problem starting needed services.
               "netmount" was not started.
I have compiled the kernel with the network-driver as a module and then both tried to launch it manually and after that tried launch it in /etc/modules.aotoload.d/kernel-2.6, also I have tried to compile the kernel with the driver not as a module, it didn't work either.

I have tried changing some options in /etc/conf.d/net.
I have tried "dhcpcd eth0", and nearly all related commands.
I have done much thing ;)

My driver is via-rhine and it works on liveCD thats important information I believe.

Does it have anything to do with firewire-network to do? Though I have tried changing it and it doesn't work anyway.

Well simply: help me get this through step my step, even if I have done it before, please.
Top
adaptr
Watchman
Watchman
User avatar
Posts: 6730
Joined: Sun Oct 06, 2002 1:28 pm
Location: Rotterdam, Netherlands

  • Quote

Post by adaptr » Thu Sep 23, 2004 11:37 am

What do you have in /etc/conf.d/net ?
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Top
fishtail
n00b
n00b
Posts: 64
Joined: Mon Sep 20, 2004 5:24 pm

  • Quote

Post by fishtail » Thu Sep 23, 2004 11:55 am

Code: Select all

iface_eth0="dhcp"
nothing else.
Top
cooljoe2003
n00b
n00b
User avatar
Posts: 46
Joined: Fri Apr 02, 2004 6:13 pm
Location: Jamestown, NC
Contact:
Contact cooljoe2003
Website

  • Quote

Post by cooljoe2003 » Thu Sep 23, 2004 12:09 pm

i had the exact same problem, i tried and tried it just would not work. I found a spare nic i had laying around, a linksys lne100tx, popped it in (after disabling the on-board lan) and booted it up and it worked perfectly after that. My belief is that gentoo maybe has some incompatibilities with certain motherboard/nic combos perhaps, i dont really know, just that putting in another nic worked.
Top
fishtail
n00b
n00b
Posts: 64
Joined: Mon Sep 20, 2004 5:24 pm

  • Quote

Post by fishtail » Thu Sep 23, 2004 12:19 pm

Maybe I can change nic with some friend or something. But I think it's wierd that it wont work on the system but it work well when I use the liveCD.
Top
adaptr
Watchman
Watchman
User avatar
Posts: 6730
Joined: Sun Oct 06, 2002 1:28 pm
Location: Rotterdam, Netherlands

  • Quote

Post by adaptr » Thu Sep 23, 2004 12:22 pm

How did you boot the LiveCD? Any kernel options ?
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Top
troworld
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 95
Joined: Sat Dec 20, 2003 12:05 am
Location: ON, CA

  • Quote

Post by troworld » Thu Sep 23, 2004 12:40 pm

I have the exact same problem. I'm using VIA Rhine II. I've been using genkernel to compile my kernel for about a year and never had a problem connecting. It would just work. DHCPCD detected everything OK all the time.

My machine's been working some time without reboots, though, and I've run emerge -u world quite a few times, so I might have emerged something that broke DHCPCD.

Netmount can't start:

Code: Select all

Bringing eth0 up...
eth0 dhcp

ERROR:  Problem starting needed services.
        "netmount" was not started.
My /etc/conf.d/net had just one line:

Code: Select all

ifconfig_eth0=( "dhcp" )
It's a new value, but I tried the old type of config and it didn't make a difference.

Running "dhcpcd" as root doesn't start the daemon and results in the following output to /var/log/messages:

Code: Select all

Sep 22 22:29:17 oasis dhcpcd[8641]: dhcpStart: ioctl SIOCGIFHWADDR: No such device
Running "dhcpcd -HD eth0" does nothing. "ifconfig" doesn't see eth0.

Windows and LiveCD use my network device properly. I'm sure it was some recent change, because I've never had this problem.

[edit]LiveCD was booted (for me) without any kernel options.[/edit]
Top
fishtail
n00b
n00b
Posts: 64
Joined: Mon Sep 20, 2004 5:24 pm

  • Quote

Post by fishtail » Thu Sep 23, 2004 12:44 pm

adaptr wrote:How did you boot the LiveCD? Any kernel options ?
No, not any kernel options, just hitting enter. Well, I needed to do this:

Code: Select all

# modprobe via-rhine
# net-setup eth0
To get the net working, but nothing more.

troworld:
What about the hardware, I'm using K8N NEO FSR - then gentoo is 64bit-based of course.
Top
fishtail
n00b
n00b
Posts: 64
Joined: Mon Sep 20, 2004 5:24 pm

  • Quote

Post by fishtail » Thu Sep 23, 2004 1:29 pm

Is there any log file I can read that will give me a better description of what went wrong?
I would really be glad to know what happened when the sign [!!] comes.
Top
gnuageux
Veteran
Veteran
User avatar
Posts: 1201
Joined: Sat Apr 17, 2004 2:05 pm

  • Quote

Post by gnuageux » Thu Sep 23, 2004 1:32 pm

Why not just statically assign an address in the dhcp servers range, gw, netmask and call it a day? - Sounds easier than swapping nics with buddies, etc.
The realOTW: http://forums.realotw.org/index.php

Registered Linux user#364538
Top
fishtail
n00b
n00b
Posts: 64
Joined: Mon Sep 20, 2004 5:24 pm

  • Quote

Post by fishtail » Thu Sep 23, 2004 1:36 pm

gnuageux wrote:Why not just statically assign an address in the dhcp servers range, gw, netmask and call it a day? - Sounds easier than swapping nics with buddies, etc.
In the router or what? What to do?
Top
gnuageux
Veteran
Veteran
User avatar
Posts: 1201
Joined: Sat Apr 17, 2004 2:05 pm

  • Quote

Post by gnuageux » Thu Sep 23, 2004 1:37 pm

Not on the router, for your local interface. You can edit /etc/conf.d/net, comment out the eth0 dhcp line, adjust the ip address, nm, and gw, then /etc/init.d/net.eth0 restart. Alternatively you can assign those values using ifconfig, except the gw, you can do that using route.

(if your router assigns ips in the 10.0.0.0/24 network then something like
ip: 10.0.0.253, 255.255.255.0, and gw would work)
The realOTW: http://forums.realotw.org/index.php

Registered Linux user#364538
Top
fishtail
n00b
n00b
Posts: 64
Joined: Mon Sep 20, 2004 5:24 pm

  • Quote

Post by fishtail » Thu Sep 23, 2004 1:49 pm

I assigned a static ip and rebooted. Nothing happened.

I did some rutin work - like:

Code: Select all

# ping www.google.com
ping: unknown host
# dhcpcd eth1 // Well just tested this some times before, you never know
# ping www.google.com
PING www.google.akadns.net (66.102.9.99) 56(84) bytes of data.
64 bytes from 66.102.9.99 icmp_seq=1 ttl=237 time=57.2 ms
- || -
- || -

Well, I am new as I said, but everyone knows what this mean. Internet is up running!!
My problem know comes to this:
Did it even matter that I changed to static ip, when I did dhcpcd eth1, can it matter then?
How do I do to not have to print dhcpcd eth1 everytime I shall connect?
Top
gnuageux
Veteran
Veteran
User avatar
Posts: 1201
Joined: Sat Apr 17, 2004 2:05 pm

  • Quote

Post by gnuageux » Thu Sep 23, 2004 1:53 pm

I dont think that i understand what youre asking. Are you asking if statically assigning an ip will hurt anything? If so, then no. When a client logs onto the network its the clients job to request an ip address if its been configured to use dhcp, the server simply responds. If you have a static ip assigned then the request will not be made and there shouldnt be a conflict is all.
The realOTW: http://forums.realotw.org/index.php

Registered Linux user#364538
Top
fishtail
n00b
n00b
Posts: 64
Joined: Mon Sep 20, 2004 5:24 pm

  • Quote

Post by fishtail » Thu Sep 23, 2004 1:57 pm

gnuageux wrote:I dont think that i understand what youre asking. Are you asking if statically assigning an ip will hurt anything? If so, then no. When a client logs onto the network its the clients job to request an ip address if its been configured to use dhcp, the server simply responds. If you have a static ip assigned then the request will not be made and there shouldnt be a conflict is all.
Is that the answer to my last questions? I am really confused then. Sorry.
eth0 maybe now have his static ip. But if it was eth1 that made me up running that has nothing to do witk eth0.

How to make eth1.... "default runlevel" is it?
Last edited by fishtail on Thu Sep 23, 2004 1:59 pm, edited 1 time in total.
Top
gnuageux
Veteran
Veteran
User avatar
Posts: 1201
Joined: Sat Apr 17, 2004 2:05 pm

  • Quote

Post by gnuageux » Thu Sep 23, 2004 1:58 pm

Heh, if I read them right - then yeah. What are you asking again?
The realOTW: http://forums.realotw.org/index.php

Registered Linux user#364538
Top
fishtail
n00b
n00b
Posts: 64
Joined: Mon Sep 20, 2004 5:24 pm

  • Quote

Post by fishtail » Thu Sep 23, 2004 2:00 pm

Up.
Top
gnuageux
Veteran
Veteran
User avatar
Posts: 1201
Joined: Sat Apr 17, 2004 2:05 pm

  • Quote

Post by gnuageux » Thu Sep 23, 2004 2:04 pm

Oh, gotcha. rc-update add net.eth1 default should do it.
You can remove eth0 (if you want) by: rc-update del net.eth0 default
The realOTW: http://forums.realotw.org/index.php

Registered Linux user#364538
Top
fishtail
n00b
n00b
Posts: 64
Joined: Mon Sep 20, 2004 5:24 pm

  • Quote

Post by fishtail » Thu Sep 23, 2004 2:08 pm

Thanks alot!
Top
fishtail
n00b
n00b
Posts: 64
Joined: Mon Sep 20, 2004 5:24 pm

  • Quote

Post by fishtail » Thu Sep 23, 2004 2:12 pm

Shit.

Code: Select all

# rc-update add net.eth1 default
* /sbin/rc-update: /etc/init.d/net.eth1 not found; aborting
Top
gnuageux
Veteran
Veteran
User avatar
Posts: 1201
Joined: Sat Apr 17, 2004 2:05 pm

  • Quote

Post by gnuageux » Thu Sep 23, 2004 2:12 pm

Sorry 'bout the confusion there mate
The realOTW: http://forums.realotw.org/index.php

Registered Linux user#364538
Top
fishtail
n00b
n00b
Posts: 64
Joined: Mon Sep 20, 2004 5:24 pm

  • Quote

Post by fishtail » Thu Sep 23, 2004 2:14 pm

No prob. Though we arent finished it seems.
Top
fishtail
n00b
n00b
Posts: 64
Joined: Mon Sep 20, 2004 5:24 pm

  • Quote

Post by fishtail » Thu Sep 23, 2004 2:18 pm

Maybe I can type som file that run the "dhcpcd"-command during boot?
Top
troworld
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 95
Joined: Sat Dec 20, 2003 12:05 am
Location: ON, CA

  • Quote

Post by troworld » Thu Sep 23, 2004 6:00 pm

My problem was fixed by running

Code: Select all

modprobe via-rhine
and restarting the interface. I've never had to do that before, so I assume this is a hotplug problem.

Hotplug is being started on boot, but it doesn't seem to detect via-rhine. Can I force hotplug to check for it?

fishtail: My motherboard is MSI KT4V, which is based on the VIA KT400 chipset.

[edit] Emerging coldplug solved the problem. [/edit]
Last edited by troworld on Thu Sep 23, 2004 6:39 pm, edited 2 times in total.
Top
cooljoe2003
n00b
n00b
User avatar
Posts: 46
Joined: Fri Apr 02, 2004 6:13 pm
Location: Jamestown, NC
Contact:
Contact cooljoe2003
Website

  • Quote

Post by cooljoe2003 » Thu Sep 23, 2004 6:15 pm

i believe your problem is that you have an integrated nic on the motherboard and an add on nic, the mobo nic is eth0 and the addon is eth1, if this is the case, then all you should have to do is disable the mobo nic in bios, and the addon will assume eth0, then you shouldnt have any problems.
Top
Post Reply

30 posts
  • 1
  • 2
  • Next

Return to “Networking & Security”

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