R3303-HP HSR6800 Routers Layer 3 - IP Routing Configuration Guide
11
Figure 2 Network diagram
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Configure static routes:
# Configure a default route on Router A.
<RouterA> system-view
[RouterA] ip route-static 0.0.0.0 0.0.0.0 1.1.4.2
# Configure two static routes on Router B.
<RouterB> system-view
[RouterB] ip route-static 1.1.2.0 255.255.255.0 1.1.4.1
[RouterB] ip route-static 1.1.3.0 255.255.255.0 1.1.5.6
# Configure a default route on Router C.
<RouterC> system-view
[RouterC] ip route-static 0.0.0.0 0.0.0.0 1.1.5.5
3. Configure the hosts:
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,
respectively. (Details not shown.)
4. Verify the configuration:
# Display the IP routing table of Router A.
[RouterA] 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 GE2/1/2
1.1.2.0/24 Direct 0 0 1.1.2.3 GE2/1/1
1.1.2.3/32 Direct 0 0 127.0.0.1 InLoop0
1.1.4.0/30 Direct 0 0 1.1.4.1 GE2/1/2
1.1.4.1/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
GE2/1/3
1.1.6.1/24
Host B
1.1.6.2/24
GE2/1/1
1.1.4.2/30
GE2/1/2
1.1.5.5/30
GE2/1/2
1.1.4.1/30
GE2/1/2
1.1.5.6/30
GE2/1/1
1.1.3.1/24
GE2/1/1
1.1.2.3/24
Host A
1.1.2.2/24
Host C
1.1.3.2/24
Router B
Router A
Router C