Chapter 36 commands for black hole routing, 1 ip route null0, 2 ipv6 route null0 – PLANET XGS3-24040 User Manual
Page 570: Ip route null, Route null
Commands for Routing Protocol Chapter 8 Commands for Black Hole Routing
36-1
Chapter 36 Commands for Black Hole
Routing
36.1 ip route null0
Command: ip route {<ip-prefix>
no ip route {
Function: To configure routing destined to the specified network to the interface of null0.
Parameters: <ip-prefix> and <mask> are the IP address and network address mask of the destination,
in dotted decimal format: <ip-prefix> and
length of the prefix respectively; null0 is the output interface for the black hole routing; <distance> is the
management distance of the routing entry with limitation between 1 and 255.
Default: None.
Command Mode: Global Configuration Mode.
Usage Guide: Null0 should be used as the output interface for IPv4 Black Hole Routing.
Example: To configure the routing to 192.168.188.0/24 as a Black Hole Routing.
Switch (config)# ip route 192.168.188.0/24 null0 20
36.2 ipv6 route null0
Command: ipv6 route <ipv6-prefix|prefix-length> null0 [<precedence>]
no ipv6 route
Function: To configure routing destined to the specified network to the interface of null0.
Parameters: <ipv6-prefix> is the IPv6 network static route addressof the destination, in dotted decimal
format. <prefix-length> is the IPv6 address of the destination and the length of the prefix. null0 is the
output interface for the black hole routing. <precedence> is the route weight, ranging between 1 to 255
and 1 by default.
Default: None.
Command Mode: Global Configuration Mode.
Usage Guide: When configuring IPv6 Black Hole Routing, it is much like configuring normal static
routing, but using null0 as the output interface.
Example:
To configure a route to 2001:2:3:4::/64 as a Black Hole Routing.