Configuring a “null” route – Brocade Multi-Service IronWare Switching Configuration Guide (Supporting R05.6.00) User Manual
Page 820
790
Multi-Service IronWare Switching Configuration Guide
53-1003036-02
Configuring static routes
19
Brocade(config)# vrf a
Brocade(config-vrf-A)# rd 1:1
Brocade(config-vrf-A)# address-family ipv4
Brocade(config-vrf-A)# ip route 10.0.0.0/24 ethernet 1/2
Syntax: [no] ip route dest-ip-addr/mask-bits [ ethernet slot/port | ve num ]
The dest-ip-addr is the route’s destination. The dest-mask is the network mask for the route’s
destination IP address. Alternatively, you can specify the network mask information by entering a
forward slash followed by the number of bits in the network mask. For example, you can enter
10.0.0.0 255.255.255.0 as 10.0.0.0/.24. To configure a default route, enter 0.0.0.0 for
CIDR format). Specify the IP address of the default gateway using the
parameter.
The slot/port or num is an interface in a different VRF that is directly connected to the device that
you want to reach.
Configuring a “null” route
You can configure the Brocade device to drop IP packets to a specific network or host address by
configuring a “null” (sometimes called “null0”) static route for the address. When the Brocade
device receives a packet destined for the address, the Brocade device drops the packet instead of
forwarding it.
To configure a null static route to drop packets destined for network 10.157.22.x, enter the
following commands.
Brocade(config)# ip route 10.157.22.0 255.255.255.0 null0
Brocade(config)# write memory
Syntax: [no] ip route ip-addr ip-mask | dest-ip-addr/mask-bits null0 [metric] [tag num] [distance
num]
To display the maximum value for your device, enter the show default values command. The
maximum number of static IP routes the system can hold is listed in the ip-static-route row in the
System Parameters section of the display. To change the maximum value, use the system-max
ip-static-route num command at the global CONFIG level.
The ip-addr parameter specifies the network or host address. The Brocade device will drop packets
that contain this address in the destination field instead of forwarding them.
The ip-mask parameter specifies the network mask. Ones are significant bits and zeros allow any
value. For example, the mask 255.255.255.0 matches on all hosts within the Class C subnet
address specified by ip-addr. Alternatively, you can specify the number of bits in the network mask.
For example, you can enter 10.157.22.0/24 instead of 10.157.22.0 255.255.255.0.
The null0 parameter indicates that this is a null route. You must specify this parameter to make this
a null route.
The metric parameter adds a cost to the route. You can specify from 1 – 16. The default is 1.
The tag num parameter specifies the tag value of the route. Possible values: 0 - 4294967295.
Default: 0.
The distance num parameter configures the administrative distance for the route. You can specify
a value from 1 – 255. The default is 1. The value 255 makes the route unusable.