Escolar Documentos
Profissional Documentos
Cultura Documentos
Table of Contents
i
Chapter 1 Static Routing
Command Manual – Static Routing (IP Routing Volume) Configuration Commands
Note:
The term “router” in this document refers to a firewall in a generic sense.
Syntax
View
System view
Default Level
2: System level
Parameters
Description
Use the delete static-routes all command to delete all static routes.
When you use this command to delete static routes, the system will prompt you to
confirm the operation before deleting all the static routes.
Related commands: display ip routing-table, ip route-static.
Examples
1-1
Chapter 1 Static Routing
Command Manual – Static Routing (IP Routing Volume) Configuration Commands
1.1.2 ip route-static
Syntax
View
System view
Default Level
2: System level
Parameters
1-2
Chapter 1 Static Routing
Command Manual – Static Routing (IP Routing Volume) Configuration Commands
interface-type interface-number: Specifies the output interface by its type and number.
If the output interface is a broadcast interface, such as an Ethernet interface, a virtual
template or a VLAN interface, the next hop address must be specified.
vpn-instance d-vpn-instance-name: Name of the destination VPN instance,
case-sensitive. If a destination VPN instance name is specified, the router will search
the output interface in the destination VPN instance based on the configured
next-hop-address.
next-hop-address public: Indicates that the specified next-hop-address is a public
network address, rather than a VPN instance address.
preference preference-value : Specifies the preference of the static route, which is in
the range of 1 to 255 and defaults to 60.
tag tag-value: Sets a tag value for the static route from 1 to 4294967295. The default is
0. Tags of routes are used in routing policies to control routing.
description description-text: Configures a description for the static route, which
consists of 1 to 60 characters, including special characters like space, but excluding ?.
track track-entry-number: Associates the static route with a track entry. Use the
track-entry-number argument to specify a track entry number, in the range 1 to 1024.
Description
1-3
Chapter 1 Static Routing
Command Manual – Static Routing (IP Routing Volume) Configuration Commands
address through PPP negotiation. In this case, you need only specify the output
interface.
z For NBMA and P2MP interfaces, which support point-to-multipoint networks, the
IP address to link layer address mapping must be established in addition to IP
route configuration. In general, it is recommended to configure the next hop IP
address when you configure the output interface.
z It is not recommended to specify a broadcast interface (such as an Ethernet
interface, virtual template, or VLAN interface) as the output interface for a static
route, because a broadcast interface may have multiple next hops. If you have to
do so, you must specify the corresponding next hop of the interface at the same
time.
Related commands: display ip routing-table, ip route-static default-preference.
Note:
z The static route does not take effect if you specify its next hop address first and then
configure the address as the IP address of a local interface, such as Ethernet
interface and VLAN interface.
z To configure track monitoring for an existing static route, simply associate the static
route with a track entry. For a non-existent static route, configure it and associate it
with a Track entry.
z If the track module uses NQA to detect the reachability of the private network static
route's nexthop, the VPN instance number of the static route's nexthop must be
identical to that configured in the NQA test group.
z If a static route needs route recursion, the associated track entry must monitor the
nexthop of the recursive route instead of that of the static route; otherwise, a valid
route may be mistakenly considered invalid.
Examples
# Configure a static route, whose destination address is 1.1.1.1/24, next hop address is
2.2.2.2, tag value is 45, and description information is for internet & intranet.
<Sysname> system-view
[Sysname] ip route-static 1.1.1.1 24 2.2.2.2 tag 45 description for internet
& intranet
# Configure a static route for a VPN instance named vpn1: the destination address is
1.1.1.1/16 and the next hop address is 1.1.1.2, which is the address of this VPN
instance.
<Sysname> system-view
1-4
Chapter 1 Static Routing
Command Manual – Static Routing (IP Routing Volume) Configuration Commands
Syntax
View
System view
Default Level
2: System level
Parameters
Description
Examples
1-5