[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Route problem



On Wed, 13 Jun 2001, Ian Perry wrote:

> route del ipnumber
> or are you talking about the ipfwadm or ipchains ?

Hmmm didn't work here:
~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.12    *               255.255.255.255 UH    0      0        0 eth0
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         gw              0.0.0.0         UG    0      0        0 eth0
~# route add -host 192.168.0.100 reject  #no machine on this IP.
~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.100   -               255.255.255.255 !H    0      -        0 -
192.168.0.12    *               255.255.255.255 UH    0      0        0 eth0
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         gw              0.0.0.0         UG    0      0        0 eth0
~# route -v del -host 192.168.0.100
SIOCDELRT: No such process
~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.100   -               255.255.255.255 !H    0      -        0 -
192.168.0.12    *               255.255.255.255 UH    0      0        0 eth0
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         gw              0.0.0.0         UG    0      0        0 eth0


I usually use ipchains/iptables because I couldn't workout how to remove the
reject rule.

Yours Tony.

/*
 * "The significant problems we face cannot be solved at the
 * same level of thinking we were at when we created them."
 * --Albert Einstein
 */



Reply to: