
IP Routing Features
Configuring Static IP Routes
To configure a null static route to drop packets destined for network
209.157.22.x, enter the following commands:
HPswitch(config)# ip route 209.157.22.0 255.255.255.0
reject
HPswitch(config)# write memory
Syntax: ip route <ip-addr> <ip-mask> reject
or
ip route <ip-addr>/<mask-bits> reject
The <ip-addr> parameter specifies the network or host address. The routing
switch 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 sub-net address specified by <ip-addr>. Alter-
natively, you can specify the number of bits in the network mask. For example,
you can enter 209.157.22.0/24 instead of 209.157.22.0 255.255.255.0.
The reject parameter indicates that this is a null route. You must specify this
parameter to make this a null route.
16-19