H3C S5120-EI Series Operation Manual page 436

Hide thumbs Also See for S5120-EI Series:
Table of Contents

Advertisement

Configuration procedure
1)
Configuring IP addresses for interfaces (omitted)
2)
Configuring static routes
# Configure a default route on Switch A.
<SwitchA> 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.
<SwitchB> 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
<SwitchC> system-view
[SwitchC] ip route-static 0.0.0.0 0.0.0.0 1.1.5.5
3)
Configure the hosts.
The default gateways for the three hosts A, B and C are 1.1.2.3, 1.1.6.1 and 1.1.3.1 respectively. The
configuration procedure is omitted.
4)
Display the configuration.
# Display the IP routing table of Switch A.
[SwitchA] display ip routing-table
Routing Tables: Public
Destinations : 7
Destination/Mask
0.0.0.0/0
1.1.2.0/24
1.1.2.3/32
1.1.4.0/30
1.1.4.1/32
127.0.0.0/8
127.0.0.1/32
# Display the IP routing table of Switch B.
[SwitchB] display ip routing-table
Routing Tables: Public
Destinations : 10
Destination/Mask
1.1.2.0/24
1.1.3.0/24
1.1.4.0/30
1.1.4.2/32
1.1.5.4/30
1.1.5.5/32
Routes : 7
Proto
Pre
Cost
Static 60
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Routes : 10
Proto
Pre
Cost
Static 60
0
Static 60
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
1-5
NextHop
Interface
1.1.4.2
Vlan500
1.1.2.3
Vlan300
127.0.0.1
InLoop0
1.1.4.1
Vlan500
127.0.0.1
InLoop0
127.0.0.1
InLoop0
127.0.0.1
InLoop0
NextHop
Interface
1.1.4.1
Vlan500
1.1.5.6
Vlan600
1.1.4.2
Vlan500
127.0.0.1
InLoop0
1.1.5.5
Vlan600
127.0.0.1
InLoop0

Advertisement

Chapters

Table of Contents
loading

Table of Contents