Re: Routing Table (Feature)

Richard B. Johnson (root@chaos.analogic.com)
Tue, 16 Feb 1999 15:59:22 -0500 (EST)


On Tue, 16 Feb 1999, David Miller wrote:

> Date: Tue, 16 Feb 1999 14:05:37 -0500 (EST)
> From: "Richard B. Johnson" <root@chaos.analogic.com>
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 204.178.40.0 * 255.255.248.0 U 0 0 0 eth0
> 204.178.40.0 * 255.255.248.0 U 0 0 0 eth0
> 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
> default cisco.analogic. 0.0.0.0 UG 1 0 0 eth0a
>
> The `ifconfig` command only deletes one.
>
I ment The `route` command only deletes one.

> Nonsense I think, ifconfig removes both network routes for me...
>
> ? route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 168.121.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 10.9.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
> 10.9.0.0 0.0.0.0 255.255.0.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 168.121.1.1 0.0.0.0 UG 0 0 0 ppp0
> ? ifconfig eth0 down
> ? route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 168.121.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 168.121.1.1 0.0.0.0 UG 0 0 0 ppp0
>
> Later,
> David S. Miller
> davem@redhat.com
>
Well maybe nonsense on your machine, not so on mine...
Script started on Tue Feb 16 15:53:35 1999

# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
204.178.40.0 * 255.255.248.0 U 0 0 0 eth0
204.178.40.0 * 255.255.248.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default cisco.analogic. 0.0.0.0 UG 1 0 0 eth0
# route del -net 204.178.40.0 netmask 255.255.248.0
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
204.178.40.0 * 255.255.248.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default cisco.analogic. 0.0.0.0 UG 1 0 0 eth0
# ping hal
PING hal.analogic.com (204.178.40.143): 56 data bytes
64 bytes from 204.178.40.143: icmp_seq=0 ttl=255 time=6.3 ms

--- hal.analogic.com ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 6.3/6.3/6.3 ms
# exit
exit

Script done on Tue Feb 16 15:54:26 1999

As you can see, only the first one is gone... and I still have a route
to the network.

Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.2.1 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.
Wisdom : It's not a Y2K problem. It's a Y2Day problem.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/