Displaying And Maintaining Static Routes; Static Route Configuration Examples; Basic Static Route Configuration Example - H3C S5120-HI Series Configuration Manual

Layer 3, ip routing configuration
Hide thumbs Also See for S5120-HI Series:
Table of Contents

Advertisement

Displaying and maintaining static routes

To do...
Display information of static routes
Delete all the static routes
NOTE:
For more information about the display ip routing-table protocol static [ inactive | verbose ] [ | { begin
| exclude | include }

Static route configuration examples

Basic static route configuration example

Network requirements
The IP addresses and masks of the switches and hosts are shown in
interconnection between any two hosts.
Figure 1 Network diagram
Configuration procedure
Configure IP addresses for interfaces. (Details not shown)
1.
Configure static routes.
2.
# Configure a default route on Switch A.
<SwitchA> system-view
[SwitchA] ip route-static 0.0.0.0 0.0.0.0 1.1.4.2
# Configure two static routes on Switch B.
<SwitchB> system-view
[SwitchB] ip route-static 1.1.2.0 255.255.255.0 1.1.4.1
Use the command...
display ip routing-table protocol static [ inactive |
verbose ] [ | { begin | exclude | include }
regular-expression ]
delete static-routes all
regular-expression
] command, see
Layer 3—IP Routing Command Reference
Figure
6
Remarks
Available in any
view
Available in
system view
1. Static routes are required for
.

Advertisement

Table of Contents
loading

Table of Contents