LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Why doesnt my Mandrake9.1 box recive an IP adress from my Netgear RP614 router? (https://www.linuxquestions.org/questions/linux-networking-3/why-doesnt-my-mandrake9-1-box-recive-an-ip-adress-from-my-netgear-rp614-router-103123/)

Klas 10-12-2003 02:05 PM

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)

akaBeaVis 10-12-2003 03:28 PM

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.

Klas 10-13-2003 01:36 AM

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

akaBeaVis 10-13-2003 07:29 AM

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.

Klas 10-13-2003 08:39 AM

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.

Klas 10-13-2003 11:25 AM

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?

akaBeaVis 10-13-2003 05:07 PM

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.

Klas 10-14-2003 01:29 AM

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"

Klas 10-14-2003 12:58 PM

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

Klas 10-14-2003 01:51 PM

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

akaBeaVis 10-14-2003 05:24 PM

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

Klas 10-15-2003 12:09 PM

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

dilaudid 08-19-2005 06:44 PM

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


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