Network requirements, Configuration procedure – H3C Technologies H3C SecPath F1000-E User Manual

Page 365

Advertising
background image

340

Basic static route configuration example at the CLI

Network requirements

The firewalls' interfaces and the hosts' IP addresses and masks are shown in

Figure 237

. Static routes are

required for interconnections between any two hosts.

Figure 237 Network diagram

Configuration procedure

1.

Configure IP addresses for interfaces. (Details not shown)

2.

Configure static routes:
# Configure a default route on SecPath A.

<SecPathA> system-view

[SecPathA] ip route-static 0.0.0.0 0.0.0.0 1.1.4.2

# Configure two static routes on SecPath B.

<SecPathB> system-view

[SecPathB] ip route-static 1.1.2.0 255.255.255.0 1.1.4.1

[SecPathB] ip route-static 1.1.3.0 255.255.255.0 1.1.5.6

# Configure a default route on SecPath C.

<SecPathC> system-view

[SecPathC] ip route-static 0.0.0.0 0.0.0.0 1.1.5.5

3.

Configure the hosts:
The default gateways for Host A, Host B and Host C are 1.1.2.3, 1.1.6.1 and 1.1.3.1,
respectively. (Details not shown)

4.

Verify the configuration:
# Display the IP routing table of SecPath A.

[SecPathA] display ip routing-table

Routing Tables: Public

Destinations : 7 Routes : 7

Destination/Mask Proto Pre Cost NextHop Interface

0.0.0.0/0 Static 60 0 1.1.4.2 GE0/2

Advertising