
248
Global Configuration Mode
ipv6 route <ipv6-prefix/prefix-length>
null0
[<precedence>]
no ipv6 route <ipv6-prefix/prefix-length> null0
To configure static IPv6 black hole
routing. The no form of this
command will remove the
specified configuration.
2.4 Black Hole Routing Command
2.4.1 ip route null0
Command:
ip route {<ip-prefix> <mask>|<ip-prefix>|<prefix-length>} null0 [<distance>]
no ip route {<ip-prefix> <mask>|<ip-prefix>|<prefix-length>} null0
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
<prefix-length>
are the IP address of the
destination and the 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
2.4.2 ipv6 route null0
Command:
ipv6 route <ipv6-prefix><prefix-length> null0 [<precedence>]
no ipv6 route <ipv6-prefi><|prefix-length> null0
Function:
To configure routing destined to the specified network to the interface of null0.
Parameters: <ipv6-prefix>
and
<mask>
are the IPv6 address and network address mask of the
destination, in dotted decimal format.
<ipv6-prefix>
and
<prefix-length>
are the IPv6 address
of the destination and the 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:
When configuring IPv6 black hole routing, it is much like configuring normal static