Why doesnt my Mandrake9.1 box recive an IP adress from my Netgear RP614 router?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why doesnt my Mandrake9.1 box recive an IP adress from my Netgear RP614 router?
Hello all professionals!
A couple of days i bought a "Netgear RP614 cable/dsl" router that i plan to use to share my ADSL connection to a couple of computers.
Until now i have used my Mandrake9.1 box to connect to my ISP via a "Alcatel speed touch home modem" using DHCP and it have worked real fine. The connection got auto configurated when i installed the OS.
So i naively thought that should be a "real walk in the park" to install a router, i even thought that i could use the same settings as i did before, i mean both my router and my ISP use DHCP to assign IP adresses... But NO!
After about a hundred reboots and one total OS reinstall i have no luck. I have tried the wizard in mandrake control center, i think i have tried all possible settings in Netconf.
My main taktik have been to try to set my router (192.168.0.1) as a DHCP ip provider for my Mandrake box.
-Nameserver specification(DNS)
--DNS usage: Enabled
--Default domain: Empty
--IP of name server 1: 192.168.0.1
--IP of name server 2: Empty
-Routing and gateways
--Default gateway: 192.168.0.1
--Routing: enabled
Very often after a restart the "IP of name server 1" gets replaced by 127.0.0.1 for some reason and the IP 192.168.0.1 appears in "IP of name server 2".
Do i have to say i cant connect to my router or anywere else using a webrowser (The connection was refused....)
Well, if you're up for a little bit of typing in order to test things, try these steps:
1. login as root (may have to logout and back in)
2. open a Konsole and type: ifconfig -a, you should see eth0 there, it may not have an address, this is ok
3. type dhcpcd -d eth0, wait for it to come back, then do ifconfig (no params), see if eth0 now has an address via dhcp.
4. if the above fails, but eth0 is there try this: ifconfig eth0 192.168.0.10
5. then this: ping -c 4 192.168.0.1
6. if those work, try dhcpcd -d eth0 again.
1. OK
2. I see eth0 it doesnt have IP adress.
I also see eth0:9 (?) inet addr: 169.254.170.130 Bcast: 169.254.255.255 Mask: 255.255.0.0.
And i also see lo inet addr: 127.0.0.1 Mask: 255.0.0.0
3. When i type dhcpcd -d etho, i after a while get the following message: /etc/dhcpcd/dhcpcd.exe: line 27 .: filename argument required .: usage: . filename.
ifconfig only shows lo
4. OK
5. Ping doesnt work. 4 packets transmitted 0 received destination unreachable
6. Same result as in 3.
Does the above tell you something? I am a bit lost though. eth0:9 confuse me....
So, the device accepts a manually configured ip address, but you still can't ping your router, can you double check the ip on that router and make sure it's what we think it is, while you're there check the various firewalling/filtering stuff and make sure it's not set up to reject your card's mac address and/or to reject pings, sometimes they are set that way.
Not positive what eth0:9 is all about, any other info on that? dhcp is not working but that really isn't going to be a problem until you can at least ping the router. after assigning an ip address to eth0, type route and see what's going where via which device.
Actually all that info is quite helpful. After you've assigned 192.168.0.20 to eth0, does it show any RX packets or bytes? In your ifconfig -a output above, you'll notice eth0 has no RX (received) packets or bytes, but some transmitted (TX), after an address is assigned by you do you see any RX stuff in ifconfig?
The route stuff looks ok, as of now there's no default gateway, but since you can't ping it, it's not a problem yet.
the eth0:9 is most likely a result of the previous setup for this device (the alcatel setup), which is probably also messing things up in other ways, so if you could post your /etc/sysconfig/network-scripts/ifcfg-eth0, /etc/resolv.conf and /etc/sysconfig/network files we'll see what might be wrong.
relsov.conf have changed a little over time. I have tried to edit the file to get rid of the 127.0.0.1 line. But after a restart its normaly there again. No matter what i try.
Not that much diffrent from the non working ones....
I dont get it!! What is the big diffrence between recieving my IP from my router via dhcp or from my ISP via dhcp???
Hmm seems like Mandrake installs Both dhclient and dhcpcd. Arent they supposed to do the same job sort of?
Seems like my box uses dhclient bye default. And as i understand, dhcpcd and dhclient uses diffrent config files.
Dhcpcd and netconfig seems to use the same config files (resolv.conf network and ifcfg-eth0) and these are the files i have edited by messing with netconf.
My next target is to examine the files around dhclient (dhclient-etn0.leases, dhclient.conf, dhclient.script). I bet they are involved....
Let's try changing a couple of things in your ifcfg-eth0 file (the first one you posted):
DEVICE=eth0
BOOTPROTO=dhcp
#NETMASK=255.255.255.0 (add the # sign at the front to comment this line out)
ONBOOT=yes
#DHCP_HOSTNAME=192.168.0.1 (add the # sign at the front to comment this line out)
#NEEDHOSTNAME=yes (add the # sign at the front to comment this line out)
#add these next 2 lines
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
and add this line to your network file:
GATEWAY=192.168.0.1
then restart network with this: /etc/init.d/network restart
now try to ping the router: ping -c 4 192.168.0.1
if that works try to ping the web: ping -c 4 cnet.com
I tried it but it said something like "network not found". Then i assigned my card an ip with ifconfig eth0 192.168.0.3. and tried to ping again. Then i get "destination host unreachable".
I had the same problem as this on gentoo
ping www.google.com gives host not found
ping 192.168.0.1 gives network unreachable
ifconfig eth0 up brings the card up, and then ifconfig shows the card - and a valid MAC address??? ifconfig eth0 192.168.0.4 seemed to allocate an IP address too, but dhcpcd wasn't working.
I fixed it by changing the hardware - I removed the wake on LAN cable, removed the old modem card from the PC and put the Network card in a different slot - this worked fine.
So if anyone else has this problem I'd recommend trying a different card.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.