Static Route Configuration Examples; Basic Static Route Configuration Example - HP 6125G Configuration Manual

Layer 3 - ip routing
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

Task
Display information of static
routes.
Delete all the static routes.
For more information about the display ip routing-table protocol static [ inactive | verbose ] [ | { begin
| exclude | include } regular-expression ] command, see Layer 3—IP Routing Command Reference.

Static route configuration examples

Basic static route configuration example

Network requirements
Configure static routes in
Figure 1 Network diagram
Configuration procedure
Configure IP addresses for interfaces. (Details not shown.)
1.
Configure static routes:
2.
# 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
Command
display ip routing-table protocol static [ inactive |
verbose ] [ | { begin | exclude | include }
regular-expression ]
delete [ vpn-instance vpn-instance-name ]
static-routes all
Figure 1
for interconnection between any two hosts.
10
Remarks
Available in any
view
Available in
system view

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125 blade switch series

Table of Contents