Static route configuration examples, Basic static route configuration example, Network requirements – H3C Technologies H3C S5560 Series Switches User Manual

Page 30: Configuration procedure

Advertising
background image

14

Task Command

Display static route information.

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

Display static route next hop
information.

display route-static nib [ nib-id ] [ verbose ]

Display static routing table
information.

display route-static routing-table [ vpn-instance vpn-instance-name ]
[ ip-address { mask-length | mask } ]

Static route configuration examples

Basic static route configuration example

Network requirements

As shown in

Figure 2

, configure static routes on the switches 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 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

[SwitchB] ip route-static 1.1.3.0 255.255.255.0 1.1.5.6

# Configure a default route on Switch C.

<SwitchC> system-view

[SwitchC] ip route-static 0.0.0.0 0.0.0.0 1.1.5.5

3.

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.

(Details not shown.)

Advertising
This manual is related to the following products: