IP Routing Features 
Configuring Static IP Routes 
The following command configures a static route to 207.95.7.0, using 
207.95.6.157 as the next-hop gateway. 
HPswitch(config)# ip route 207.95.7.0/24 207.95.6.157 
When you configure a static IP route, you specify the destination address for 
the route and the next-hop gateway or routing switch interface through which 
the routing switch can reach the route. The routing switch adds the route to 
the IP route table. In this case, Router A knows that 207.95.6.157 is reachable 
through port A2, and also assumes that local interfaces within that sub-net are 
on the same port. Router A deduces that IP interface 207.95.7.188 is also on 
port A2. 
The software automatically removes a static IP route from the IP route table 
if the port used by that route becomes unavailable. When the port becomes 
available again, the software automatically re-adds the route to the IP route 
table. 
Configuring a Static IP Route 
To configure an IP static route with a destination address of 192.0.0.0 255.0.0.0 
and a next-hop router IP address of 195.1.1.1, enter the following commands: 
HPswitch(config)# ip route 192.0.0.0 255.0.0.0 195.1.1.1 
Syntax:  ip route < dest-ip-addr >/< mask-bits > < next-hop-ip-addr > 
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 192.0.0.0 
255.255.255.0 as 192.0.0.0/.24. 
Configuring the Default Route 
You can also assign the default router as the destination by entering 0.0.0.0 
0.0.0.0. 
Configuring a “Null” Route 
You can configure the routing switch 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 routing switch receives a packet destined for the 
address, the routing switch drops the packet instead of forwarding it. 
11-19