beautypg.com

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

Page 14: Configuration procedure, Configuration verification

background image

3-2

Displaying and Maintaining Static Routes

To do…

Use the command…

Remarks

Display static route information

display ip route-static

Available in system view

Static Route Configuration Example

Network requirements

As shown in

Figure 3-1

, IPS is connected to two NMSs (Host A and Host B) through Router A and

Router B, respectively. Configure static routes on IPS so that it can communicate with Host A and Host
B.

Figure 3-1

Network diagram for static route configuration

Configuration procedure

# Configure a static route to Host A.

system-view

[Sysname] ip route-static 10.1.3.1 255.255.255.0 10.1.1.1

# Configure a static route to Host B.

[Sysname] ip route-static 10.1.4.1 255.255.255.0 10.1.2.1

Configuration verification

# Use the ping command on Device to check reachability to Host A.

[Sysname] ping 10.1.3.1

PING 10.1.3.1 (10.1.3.1) 56(84) bytes of data.

64 bytes from 10.1.3.1: icmp_seq=1 ttl=128 time=0.864 ms

64 bytes from 10.1.3.1: icmp_seq=2 ttl=128 time=0.183 ms

64 bytes from 10.1.3.1: icmp_seq=3 ttl=128 time=0.851 ms

64 bytes from 10.1.3.1: icmp_seq=4 ttl=128 time=0.180 ms

--- 10.1.3.1 ping statistics ---

4 packets transmitted, 4 received, 0% packet loss, time 3001ms

rtt min/avg/max/mdev = 0.180/0.519/0.864/0.338 ms, pipe 2

# Use the ping command on Device to check reachability to Host B.

[Sysname] ping 10.1.4.1

PING 10.1.4.1 (10.1.4.1) 56(84) bytes of data.

64 bytes from 10.1.4.1: icmp_seq=1 ttl=128 time=0.949 ms

64 bytes from 10.1.4.1: icmp_seq=2 ttl=128 time=0.169 ms

64 bytes from 10.1.4.1: icmp_seq=3 ttl=128 time=0.840 ms