R2511-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V5)

10
Displaying and maintaining static routes
Task Command
Remarks
Display information of static
routes.
display ip routing-table protocol static [ inactive |
verbose ] [ | { begin | exclude | include }
regular-expression ]
Available in any
view.
Static route configuration examples
Basic static route configuration example
Network requirements
Configure static routes in Figure 2 for interconnections between any two hosts.
Figure 2 Network diagram
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Configure static routes:
# Configure a default route on Router A.
<RouterA> system-view
[RouterA] ip route-static 0.0.0.0 0.0.0.0 1.1.4.2
# Configure two static routes on Router B.
<RouterB> system-view
[RouterB] ip route-static 1.1.2.0 255.255.255.0 1.1.4.1
[RouterB] ip route-static 1.1.3.0 255.255.255.0 1.1.5.6
# Configure a default route on Router C.
<RouterC> system-view
[RouterC] ip route-static 0.0.0.0 0.0.0.0 1.1.5.5
3. Configure the hosts:
Configure the default gateways of Host A, Host B, and Host C as 1.1.2.3, 1.1.6.1, and 1.1.3.1,
respectively. (Details not shown.)