Viewing Static Route Information; Configuring The Default Route - HP 2920 Series Multicast And Routing Manual

For wb.15.16
Hide thumbs Also See for 2920 Series:
Table of Contents

Advertisement

metric
distance
tag
The no form of the command deletes the specified route for the specified destination
next-hop pair.
The following example configures two static routes for traffic delivery and identifies two other null
routes for which traffic should be discarded instead of forwarded.
Example 21 Configuring static routes
HP Switch(config)# ip route 10.10.40.0/24 10.10.10.1
HP Switch(config)# ip route 10.10.50.128/27 10.10.10.1
HP Switch(config)# ip route 10.10.20.177/32 reject
HP Switch(config)# ip route 10.10.30.0/24 blackhole
Configures static routes to
1
two different network
destinations using the same
nexthop router IP address.

Viewing static route information

The show ip route command displays the current static route configuration on the routing
switch.
Figure 4
examples.
Figure 4 Displaying the currently configured static routes

Configuring the default route

You can also assign the default route and enter it in the routing table. The default route is used for
all traffic that has a destination network not reachable through any other IP routing table entry.
For example, if 208.45.228.35 is the IP address of your ISP router, all non-local traffic could be
directed to the ISP by entering this command:
48
IP Routing Features
Configures a null route to
2
drop traffic for the device at
10.50.10.177 and return
an ICMP notification to the
sender.
shows the configuration resulting from the static routes configured in the previous
Specifies an integer value that is associated with the route.
It is used to compare a static route to routes in the IP route
table from other sources to the same destination.
Specifies the administrative distance to associate with a static
route. If not specified, this value is set to a default of 1.
(Range: 1 to 255)
Specifies a unique integer value for a given ECMP set
(destination, metric, distance.)
1
2
3
Configures a null route to
3
drop traffic for the
10.50.10.0 network without
any ICMP notification to the
sender.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

J9726aJ9729aJ9727aJ9728a

Table of Contents