Product guide
IP Routing Features
Configuring Static IP Routes
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:
ProCurve(config)# ip route 192.0.0.0 255.0.0.0 195.1.1.1
Syntax: [no] ip route < dest-ip-addr >/< mask-bits > < next-hop-ip-addr | reject |
blackhole> [distance]
dest-ip-addr >/< mask-bits: The route destination and network mask length for
the destination IP address. Alternatively, you can enter the mask itself.
For example, you can enter either 10.0.0.0/24 or 10.0.0.0 255.255.255.0 for a
route destination of 10.0.0.0 255.255.255.0.
next-hop-ip-addr : This IP address is the gateway for reaching the destination.
The next-hop IP address is not required to be directly reachable on a local
subnet. (If the next-hop IP address is not directly reachable, the route
will be added to the routing table as soon as a route to this address is
learned.)
reject: Specifies a null route where IP traffic for the specified destination is
d i s c a r d e d a n d a n I C M P e r r o r n o t i f i c a t i o n i s r e t u r n e d t o t h e s e n d e r .
blackhole: Specifies a null route where IP traffic for the specified destination
is discarded and no ICMP error notification is returned to the sender.
distance: Specifies the administrative distance to associate with a static route.
If not specified, this value is set to a default of 1.
The no form of the command deletes the specified route for the specified
destination next-hop pair.
11-19