Re: Default gateway is a Martian

A.N.Kuznetsov (kuznet@ms2.inr.ac.ru)
Sun, 1 Feb 1998 14:04:34 +0300 (MSK)


Hello!

> This condition has existed since routing coded changed around 2.1.70...
> With 2.1.84 get following when directly communicating with gateway
>
> Jan 31 13:28:54 clem kernel: martian source e86845c6 for 49efd7cc, dev ppp0
> Jan 31 13:28:54 clem kernel: ll header: 45 00 02 14
>
> Packets are silently discarded, i.e. cannot ping ... rip packets dropped.
> Only the gateway address is affected.
> Pings to gateway address from internal machines is answered by
> local end of link.
>
> Configuration:
> Have eight address subnet off ISP
> Local end IP 204.215.239.73, ISP end IP 198.69.104.232 via ppp (2.2.0f)
>
> clem# route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 204.215.239.72 0.0.0.0 255.255.255.248 U 0 0 0 eth0
> 198.69.104.232 0.0.0.0 255.255.255.248 U 0 0 0 ppp0
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 0.0.0.0 198.69.104.232 0.0.0.0 UG 0 0 0 ppp0

By default 198.69.104.232 is invalid address wrt netmask 255.255.255.248
because of zero host bits. You have menu of three choices:

1. Remove netmask of pointopoint interface, it is non-sense.
2. Change this address.
3. Make "ip route del broadcast 198.69.104.232 dev ppp0 table local", which
will make it usual unicast address.

Choose one which you like more. I'd prefer the first.

Alexey Kuznetsov