* [LARTC] RE: route equivalent in ip
@ 2002-11-17 19:38 Jacob Teplitsky
0 siblings, 0 replies; only message in thread
From: Jacob Teplitsky @ 2002-11-17 19:38 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-17 19:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-17 19:38 [LARTC] RE: route equivalent in ip Jacob Teplitsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox