Static Route Configuration Examples; Basic Static Route Configuration Example - HPE FlexNetwork HSR6800 Configuration Manual

Layer 3-ip routing configuration guide
Hide thumbs Also See for FlexNetwork HSR6800:
Table of Contents

Advertisement

Static route configuration examples

Basic static route configuration example

Network requirements
Configure static routes in
Figure 2 Network diagram
Host A
1.1.2.2/24
Configuration procedure
Configure IP addresses for interfaces. (Details not shown.)
1.
Configure static routes:
2.
# 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
Configure the hosts:
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,
respectively. (Details not shown.)
Verify the configuration:
4.
# Display the IP routing table of Router A.
[RouterA] display ip routing-table
Routing Tables: Public
Destination/Mask
0.0.0.0/0
Figure 2
GE2/1/1
1.1.4.2/30
Router B
GE2/1/2
1.1.4.1/30
GE2/1/1
1.1.2.3/24
Router A
Destinations : 7
Proto
Static 60
for interconnections between any two hosts.
Host B
1.1.6.2/24
GE2/1/3
1.1.6.1/24
GE2/1/2
1.1.5.5/30
GE2/1/2
1.1.5.6/30
GE2/1/1
1.1.3.1/24
Router C
Routes : 7
Pre
Cost
0
10
Host C
1.1.3.2/24
NextHop
Interface
1.1.4.2
GE2/1/2

Advertisement

Table of Contents
loading

Table of Contents