Greetings, I''m looking for an ip (iproute2) equivalent to these route commands: # route add -net 10.0.0.0 netmask 255.0.0.0 reject and # route add -host 206.65.183.125 reject I failed to find any documentation on that. Cheers, Cristian _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Sun, 17 Nov 2002, David Ford wrote:> ip route add prohibit 10.0.0.0/8 > > Pick your flavor of ''prohibit'', unreachable, blackhole, etc. "ip route > help" for more information.That was what I''ve been looking for. Thanks. Cheers, Cristian _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Cristian,
Try the following:
          unreachable | prohibit | blackhole
- Jacob> 
> Message: 9
> Date: Sun, 17 Nov 2002 19:30:32 +0100 (CET)
> From: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
> Reply-To: Cristian Ionescu-Idbohrn
<cristian.ionescu-idbohrn@axis.com>
> To: lartc@mailman.ds9a.nl
> Subject: [LARTC] route equivalent in ip
> 
> Greetings,
> 
> I''m looking for an ip (iproute2) equivalent to these route
commands:
> 
>   # route add -net 10.0.0.0 netmask 255.0.0.0 reject
> 
> and
> 
>   # route add -host 206.65.183.125 reject
> 
> I failed to find any documentation on that.
> 
ip route help  
Usage: ip route { list | flush } SELECTOR
       ip route get ADDRESS [ from ADDRESS iif STRING ]
                            [ oif STRING ]  [ tos TOS ]
       ip route { add | del | change | append | replace | monitor } ROUTE
SELECTOR := [ root PREFIX ] [ match PREFIX ] [ exact PREFIX ]
            [ table TABLE_ID ] [ proto RTPROTO ]
            [ type TYPE ] [ scope SCOPE ]
ROUTE := NODE_SPEC [ INFO_SPEC ]
NODE_SPEC := [ TYPE ] PREFIX [ tos TOS ]
             [ table TABLE_ID ] [ proto RTPROTO ]
             [ scope SCOPE ] [ metric METRIC ]
INFO_SPEC := NH OPTIONS FLAGS [ nexthop NH ]...
NH := [ via ADDRESS ] [ dev STRING ] [ weight NUMBER ] NHFLAGS
OPTIONS := FLAGS [ mtu NUMBER ] [ advmss NUMBER ]
           [ rtt NUMBER ] [ rttvar NUMBER ]
           [ window NUMBER] [ cwnd NUMBER ] [ ssthresh REALM ]
           [ realms REALM ]
TYPE := [ unicast | local | broadcast | multicast | throw |
          unreachable | prohibit | blackhole | nat ]
TABLE_ID := [ local | main | default | all | NUMBER ]
SCOPE := [ host | link | global | NUMBER ]
FLAGS := [ equalize ]
NHFLAGS := [ onlink | pervasive ]
RTPROTO := [ kernel | boot | static | NUMBER ]
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/