/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! 
/* ALSO: Don't quote this header. It makes you look lame :-) */


This is what my routing table looks like on my Linux only box with ips
on the internal network only after a fresh boot:

[sd@sparky sd]$ netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
24.163.164.1    192.168.173.1   255.255.255.255 UGH       0 0          0
eth0
192.168.173.6   192.168.173.1   255.255.255.255 UGH       0 0          0
eth0
192.168.173.6   0.0.0.0         255.255.255.255 UH        0 0          0
eth0
192.168.173.0   0.0.0.0         255.255.255.0   U         0 0          0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
lo
0.0.0.0         192.168.173.1   0.0.0.0         UG        0 0          0
eth0

Here's what happens when I try to ping an external address:
[sd@sparky sd]$ ping citilink.com
PING citilink.com (209.98.8.9) from 192.168.173.6 : 56(84) bytes of
data.
>From 192.168.173.1: Redirect Host(New nexthop:
nic-163-c164-001.mn.mediaone.net (24.163.164.1))
64 bytes from foshay.citilink.com (209.98.8.9): icmp_seq=0 ttl=236
time=142.7 ms
>From 192.168.173.1: Redirect Host(New nexthop:
nic-163-c164-001.mn.mediaone.net (24.163.164.1))
64 bytes from foshay.citilink.com (209.98.8.9): icmp_seq=1 ttl=236
time=146.9 ms
>From 192.168.173.1: Redirect Host(New nexthop:
nic-163-c164-001.mn.mediaone.net (24.163.164.1))
64 bytes from foshay.citilink.com (209.98.8.9): icmp_seq=2 ttl=236
time=138.2 ms
>From 192.168.173.1: Redirect Host(New nexthop:
nic-163-c164-001.mn.mediaone.net (24.163.164.1))
64 bytes from foshay.citilink.com (209.98.8.9): icmp_seq=3 ttl=236
time=114.8 ms

--- citilink.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 114.8/135.6/146.9 ms

Neither machine has gated or routed running so I don't know why this
stuff is showing up. Netstat -rn shows the same thing afterwards. The
only reason any packets after the first one got out is because I have
the route saying that the gateway for 24.163.164.1 is 192.168.173.1 (my
masq machine). The one thing that does change from before it's taken
affect to after it's taken affect is the routing cache (route -Cn), I'll
show you:

[root@sparky /root]# /etc/rc.d/init.d/network restart
Shutting down interface eth0 [  OK  ]
Setting network parameters [  OK  ]
Bringing up interface lo [  OK  ]
Bringing up interface eth0 [  OK  ]
[root@sparky /root]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
24.163.164.1    192.168.173.1   255.255.255.255 UGH   0      0        0
eth0
192.168.173.6   192.168.173.1   255.255.255.255 UGH   0      0        0
eth0
192.168.173.6   0.0.0.0         255.255.255.255 UH    0      0        0
eth0
192.168.173.0   0.0.0.0         255.255.255.0   U     0      0        0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0
lo
0.0.0.0         192.168.173.1   0.0.0.0         UG    0      0        0
eth0
[root@sparky /root]# route del 24.163.164.1
[root@sparky /root]# route -n 
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.173.6   192.168.173.1   255.255.255.255 UGH   0      0        0
eth0
192.168.173.6   0.0.0.0         255.255.255.255 UH    0      0        0
eth0
192.168.173.0   0.0.0.0         255.255.255.0   U     0      0        0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0
lo
0.0.0.0         192.168.173.1   0.0.0.0         UG    0      0        0
eth0
[root@sparky /root]# route -Cn
Kernel IP routing cache
Source          Destination     Gateway         Flags Metric Ref    Use
Iface
192.168.173.2   192.168.173.6   192.168.173.6   il    0      0       92
lo
192.168.173.6   192.168.173.2   192.168.173.2         0      1        0
eth0
[root@sparky /root]# ping citilink.com
PING citilink.com (209.98.8.9) from 192.168.173.6 : 56(84) bytes of
data.
>From 192.168.173.1: Redirect Host(New nexthop:
nic-163-c164-001.mn.mediaone.net (24.163.164.1))
64 bytes from foshay.citilink.com (209.98.8.9): icmp_seq=0 ttl=236
time=116.0 ms

--- citilink.com ping statistics ---
8 packets transmitted, 1 packets received, 87% packet loss
round-trip min/avg/max = 116.0/116.0/116.0 ms
[root@sparky /root]# route -Cn
Kernel IP routing cache
Source          Destination     Gateway         Flags Metric Ref    Use
Iface
192.168.173.6   209.98.8.9      24.163.164.1          0      0        1
eth0
192.168.173.6   192.168.173.1   192.168.173.1         0      0       58
eth0
192.168.173.6   192.168.173.1   192.168.173.1         0      0       58
eth0
192.168.173.1   192.168.173.6   192.168.173.6   il    0      0       70
lo
192.168.173.2   192.168.173.6   192.168.173.6   il    0      0      400
lo
192.168.173.6   192.168.173.2   192.168.173.2         0      1        0
eth0
209.98.8.9      192.168.173.6   192.168.173.6   l     0      0       70
lo
192.168.173.6   209.98.8.9      24.163.164.1          0      0        8
eth0

As you can see, a route is added with the gateway listed as
24.163.164.1, which not being reachable from 192.168.173.6 makes all
packets destined for 209.98.8.9 destined for the void.

No I'm not running VMware or anything like that I'm multibooting. The
problem is always there, it's not like I only get the redirect host
packets some of the time, but I get them all the time. Whenever my
multiboot computer is running Linux it will not talk to any outside IP's
unless I have the extra route in addition to the default route saying
that the gateway for 24.163.164.1 is 192.168.173.1. This also happens
with all my Linux boxes and none of my Windows machines (or the
multiboot one when it's in windows). So I figure that the Host redirect
packets are still going out, but windows ignores it.

It confuses the hell out of me why the redirect host packets are getting
sent, but if I could either shut them off or make the system ignore them
(former one being the better solution) it'd be great. Any help is
appreciated.

Robin

David Ranch wrote:
> 
> >I have
> >temporarily fixed this by adding a host entry into the routing table
> >saying that the gateway for my cable modem's gateway is the masq box.
> 
> What does "netstat -rn" show normally and when the problem is
> present?
> 
> >I am not running routed or gated or anything like that on any of the
> >machines. The wierd thing is that this only happens when running Linux,
> >when running windoze on the same machine I have to problems (probably
> >because windows is ignoring those packets and just sending everything to
> >the gateway).
> 
> I don't quite follow.. are you running something like VMWare or
> something?
> 
> --David
> .----------------------------------------------------------------------------.
> |  David A. Ranch - Linux/Networking/PC hardware         [EMAIL PROTECTED]  |
> !----                                                                    ----!
> `----- For more detailed info, see http://www.ecst.csuchico.edu/~dranch -----'

_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- 
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to