LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-12-2003, 03:05 PM   #1
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Rep: Reputation: 15
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.

My settings in Netconf are basicly the following:

-Hostname and IP devices
--Hostname: Mandrake
--Adaptor 1: Enabled
---Config mode: Dhcp
---Primary name + domain: Empty
---Aliases: Empty
---IP Aliases: Empty
---Netmask: 255.255.255.0
---Netdevice: eth0
---Kernelmodule: 8139too
---I/O port: Empty
---Irq: Empty

-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....)

Can anyone help me to solve this? Please....

(...the router works well with windo$e)
 
Old 10-12-2003, 04:28 PM   #2
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
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.
 
Old 10-13-2003, 02:36 AM   #3
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
Hello thanks for the quick response!

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....

Regards Klas

Last edited by Klas; 10-13-2003 at 02:57 AM.
 
Old 10-13-2003, 08:29 AM   #4
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
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.
 
Old 10-13-2003, 09:39 AM   #5
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
Hello again
The Ip on the router is 192.168.0.1
I have disabled my firewalls.
I Can ping it from my borrowed windo$e computer

Any other hints?

Thanks for your respone i really appritiate it
Klas

It says something like "Network unreachable" when i try to ping it from my Mandrake box.

Last edited by Klas; 10-13-2003 at 10:48 AM.
 
Old 10-13-2003, 12:25 PM   #6
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
OK preparred for some data

This is the info i get when i type ifconfig -a:

eth0
Link encap: Ethernet HWaddr 00:02:96:01:EB:A1
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets: 0 errors:0 dropped:0 overruns:0 frame:0
TX packets: 38 errors:0 dropped:0 overruns:0 carrier:0
collisions: 0 txqueuelen:100
RX bytes: 0 (0.0 b) TX bytes:5983 (5.8 Kb)
Interrupt: 10 Base address:0xf000

eth0:9
Link encap: Ethernet HWaddr 00:02:96:01:EB:A1
inet addr: 127.0.0.1 Mask: 255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt: 10 Base address:0xf000

lo
Link encap: Local Loopback
inet addr:127.0.01 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets: 162 errors:0 dropped:0 overruns:0 frame:0
TX packets: 162 errors:0 dropped:0 overruns:0 carrier:0
collisions: 0 txqueuelen:100
RX bytes: 9907 (9.6Kb b) TX bytes:9907 (9.6 Kb)

then i type ifconfig eth0 192.168.0.20

and after that route then i get the following:

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 eth0

This confuse me even more ....

Why me

I also have a tv-card in my box who i dont really trust... it workes.. but i dont trust it.. conflicts? (interrupt..)

Help me

hmmm.... some additional thoughts:
when i enter dhcpcd -d eth0 i get the following:
dhcpcd: MAC address = 00:02:96:01:eb:a1

and after a while /etc/dhcpcd/dhcpcd.exe: line 27: .: file argument required .:usage: . filename

if there are two devices with the same HW address how does it know witch on to assign?

Last edited by Klas; 10-13-2003 at 01:48 PM.
 
Old 10-13-2003, 06:07 PM   #7
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
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.

Last edited by akaBeaVis; 10-13-2003 at 06:09 PM.
 
Old 10-14-2003, 02:29 AM   #8
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
Thanks again for your patience with me! I hope i can return your favour some time.

No it doesnt show any RX packets or bytes. Only two more TX packets.

ifcfg-eth0:
DEVICE=eth0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
DHCP_HOSTNAME=192.168.0.1
NEEDHOSTNAME=yes

resolv.conf:
nameserver 127.0.0.1
nameserver 192.168.0.1
nameserver 192.168.0.1
nameserver 192.168.0.1

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.

network:
HOSTNAME=Mandrake
NETWORKING=yes
GATEWAY="192.168.0.1"
GATEWAYDEV=""
FORWARD_IPV4="yes"
 
Old 10-14-2003, 01:58 PM   #9
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
This is how these files look when i got a Working connection to internet via my adsl modem but Without the router:

ifcfg-eth0:
DEVICE=eth0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
DHCP_HOSTNAME=192.168.0.1
NEEDHOSTNAME=yes

resolv.conf:
nameserver 127.0.0.1
nameserver 10.0.0.1
nameserver 10.0.0.2

network:
HOSTNAME=Mandrake
NETWORKING=yes

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???
 
Old 10-14-2003, 02:51 PM   #10
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
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....
 
Old 10-14-2003, 06:24 PM   #11
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
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
 
Old 10-15-2003, 01:09 PM   #12
Klas
Member
 
Registered: Oct 2003
Location: Uppsala, Sweden
Distribution: Mandrake 9.1, Mandrake 10.0
Posts: 77

Original Poster
Rep: Reputation: 15
Ok

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 am not getting anywere...

Please help me guys.....
 
Old 08-19-2005, 07:44 PM   #13
dilaudid
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Network unreachable

Hi,

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.

Cheers,

Andrew
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
noFTP acces via Internet on Debian 3.0 box on a LAN network with Netgear rp614 router ferry Linux - Networking 2 08-16-2004 01:33 AM
netgear router rp614 nforce2 and mandrake 10 C++Boar Mandriva 1 08-07-2004 10:36 AM
Very slow internet with Netgear RP614 Router saxblue Linux - Networking 5 07-30-2003 09:55 AM
ddclient config for netgear rp614 router shin1 Linux - Networking 1 04-07-2003 12:01 AM
router Netgear RP614 webserver 3Dxx Linux - Networking 10 12-06-2002 10:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration