LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-22-2004, 07:52 PM   #1
Entropius
LQ Newbie
 
Registered: Apr 2004
Posts: 29

Rep: Reputation: 15
Can't talk to router--broken routing table? (MDK10)


OK, I feel like an idiot.

I'm trying to get internet connection sharing set up using a dialup connection and a wireless router, using a Mandrake 10 box as the machine with the modem.

In trying to get this to work, somehow I've rendered the machine unable to talk to the wireless AP/router... I think I've somehow hosed the routing table.

The router lives at 192.168.0.254. It's alive--my other machines can talk to it.

However, attempting to poke it with this machine gives the following mess:

[root@localhost etc]# ping 192.168.0.254
PING 192.168.0.254 (192.168.0.254) 56(84) bytes of data.
From 192.168.0.100 icmp_seq=1 Destination Host Unreachable
From 192.168.0.100 icmp_seq=1 Destination Host Unreachable
From 192.168.0.100 icmp_seq=1 Destination Host Unreachable
From 192.168.0.100 icmp_seq=1 Destination Host Unreachable
From 192.168.0.100 icmp_seq=1 Destination Host Unreachable
From 192.168.0.100 icmp_seq=1 Destination Host Unreachable
ping: sendmsg: Operation not permitted
From 192.168.0.100 icmp_seq=2 Destination Host Unreachable
ping: sendmsg: Operation not permitted
From 192.168.0.100 icmp_seq=3 Destination Host Unreachable
ping: sendmsg: Operation not permitted

... and so forth.

Route says the following:
Code:
[root@localhost etc]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
168.121.1.1     *               255.255.255.255 UH    0      0        0 ppp0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.168.0.254   0.0.0.0         UG    0      0        0 eth0
default         168.121.1.1     0.0.0.0         UG    0      0        0 ppp0
And, finally:

Code:
[root@localhost etc]# ifconfig eth0

eth0      Link encap:Ethernet  HWaddr 00:10:B5:0E:E2:6C
          inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::210:b5ff:fe0e:e26c/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:68 errors:0 dropped:0 overruns:0 frame:0
          TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11267 (11.0 Kb)  TX bytes:9643 (9.4 Kb)
          Interrupt:11 Base address:0x6000
Any clue what could be the matter, or how I can get my machine to talk to my router again?
 
Old 06-22-2004, 10:33 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i hope i get this somewhat right (please be aware i'm an idiot)
im assuming that these two entries come up when you modem up
168.121.1.1 * 255.255.255.255 UH 0 0 0 ppp0
default 168.121.1.1 0.0.0.0 UG 0 0 0 ppp0

they are correct

however this one
default 192.168.0.254 0.0.0.0 UG 0 0 0 eth0
i think should not be there
i think this is telling that the wireless router is the default gateway to the www (WAN)
when really it is the access to the local LAN
this is correct
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
and should suffice for that
try when the moden is not connected:

route del default
possibly
route del default gw dev eth0
(i'm not so sure about the command but i bet the first one works)

and see if that fixes
if so then just find the file where that GATEWAY is being set at boot and remove that entry
 
Old 06-23-2004, 09:23 AM   #3
Entropius
LQ Newbie
 
Registered: Apr 2004
Posts: 29

Original Poster
Rep: Reputation: 15
I came to the same conclusion, and tried to delete those two lines
Code:
192.168.0.0     192.168.0.100   255.255.255.0   UG    0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
Using route del default removes the entry

Code:
default         168.121.1.1     0.0.0.0         UG    0      0        0 ppp0
which is a bad thing--it's the route to the internet. The other command doesn't work.

I tried doing ...
Code:
[root@localhost ifplugd]# route del 192.168.0.0
SIOCDELRT: No such process
... but it won't let me remove that entry.

What files do I look in (yeah, I'm dumb) to find the startup script that initializes those erroneous routes?
 
Old 06-23-2004, 11:45 AM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
I don't use prepackaged distros anymore
and have never looked at mandrake
so sometimes i'm suprised at where this stuff is
should be somewhere in
/etc/sysconfig/
file should be called ifconfig.eth0 or ifcfg-eth0 or something to that effect
on my system it's in /etc/sysconfig/network-devices
on my fedora c1 installation its in
/etc/sysconfig/networking/profiles/default
should be a line in there
GATEWAY=
 
  


Reply



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
routing table arvind kumar Linux - Networking 2 06-08-2005 11:59 PM
Help with a Routing Table maginotjr Linux - Networking 4 06-06-2005 09:49 AM
Linksys router won't talk to me. Travis86 Linux - Networking 10 12-17-2003 11:23 PM
routing table upr8830 Linux - Networking 6 06-18-2003 03:04 AM
Newbie needs to know how to talk to router logikos Linux - Networking 4 08-25-2002 10:02 AM

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

All times are GMT -5. The time now is 08:36 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
Open Source Consulting | Domain Registration