Displaying and maintaining static routes, Static route configuration example, Network requirements – H3C Technologies H3C SecBlade NetStream Cards User Manual

Page 91: Configuration procedure

Advertising
background image

76

Displaying and maintaining static routes

To do…

Use the command…

Remarks

Display information of static routes

display ip routing-table protocol static [ inactive |
verbose ]

Available in any
view

Delete all the static routes

delete static-routes all

Available in
system view

Static route configuration example

Network requirements

SecBlade is connected remotely to NSC, as shown in

Figure 25

. Assuming that Device A and Device B

can communicate with each other, configure a static route so that SecBlade can communicate with NSC.

Figure 25 Network diagram for static route configuration

Configuration procedure

1.

Configuring IP addresses for interfaces (omitted)

2.

Configuring a static route

# Configure a static route on SecBlade.

<SecBlade> system-view
[SecBlade] ip route-static 1.1.3.0 255.255.255.0 1.1.4.2

3.

Configure the host.

On NSC, configure the default gateway as 1.1.3.1. The configuration procedure is omitted.

4.

Verify the configuration

# Display the IP routing table of SecBlade.

[SecBlade] display ip routing-table
Routing Tables: Public
Destinations : 3 Routes : 3

Destination/Mask Proto Pre Cost NextHop Interface

Advertising