beautypg.com

H3C Technologies H3C S12500-X Series Switches User Manual

Page 27

background image

13

Figure 2 Network diagram

446B

Configuration procedure

1.

Configure IP addresses for interfaces. (Details not shown.)

2.

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

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.

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.

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.)

447B

Verifying the configuration

# Display static routes on Switch A.

[SwitchA] display ip routing-table protocol static

Summary Count : 1

Static Routing table Status :

Summary Count : 1

Destination/Mask Proto Pre Cost NextHop Interface

0.0.0.0/0 Static 60 0 1.1.4.2 Vlan500

Static Routing table Status :

Summary Count : 0

# Display static routes on Switch B.

[SwitchB] display ip routing-table protocol static

This manual is related to the following products: