- ページ 8
スイッチ HP 3100-24 v2 EIのPDF 設定マニュアルをオンラインで閲覧またはダウンロードできます。HP 3100-24 v2 EI 15 ページ。 Hp 3100 v2 switch series
Configuring a static route
Before you configure a static route, complete the following tasks:
•
Configure the physical parameters for related interfaces.
Configure the link-layer attributes for related interfaces.
•
Configure the IP addresses for related interfaces.
•
Follow these guidelines when you configure a static route:
The next hop address cannot be the IP address of a local interface (such as a VLAN interface).
•
Otherwise, the static route does not take effect.
If you do not specify the preference when you configure a static route, the default preference applies.
•
Reconfiguring the default preference applies only to newly created static routes.
If the destination IP address and mask are both configured as 0.0.0.0 with the ip route-static
•
command, then the route is the default route.
To configure a static route:
Step
1.
Enter system view.
2.
Configure a static
route.
3.
Configure the
default preference
for static routes.
Displaying and maintaining static routes
Task
Display information of static
routes.
Command
system-view
ip route-static dest-address { mask | mask-length }
{ next-hop-address | interface-type
interface-number [ next-hop-address ] }
[ preference preference-value ] [ permanent ]
[ description description-text ]
ip route-static default-preference
default-preference-value
Command
display ip routing-table protocol static [ inactive |
verbose ] [ | { begin | exclude | include }
regular-expression ]
5
Remarks
N/A
Required.
By default, preference for
static routes is 60, and no
description information is
configured.
If the output interface is down,
the permanent static route is
still active.
Optional.
60 by default.
Remarks
Available in any
view