3Com Switch 8800 Configuration Guide
Chapter 17 Static Route Configuration
17-2
there is no default route and the destination address of the packet fails in matching any
entry in the routing table, this packet will be discarded, and an internet control message
protocol (ICMP) packet will be sent to the originating host to inform that the destination
host or network is unreachable.
17.2 Configuring Static Route
Static Route Configuration includes:
z
Configuring a Static Route
z
Configuring a Default Route
z
Deleting All the Static Routes
17.2.1 Configuring a Static Route
Perform the following configurations in system view.
Table 17-1
Configure a static route
Operation
Command
Add a static route
ip route-static
[
vpn-instance
vpn
-
instance
-
name
]*
ip
-
address
{
mask
|
mask
-
length
} {
interface
-
type
interface
-
number
| [
vpn-instance
vpn
-
instance
-
name
]
gateway
-
address
} [
preference
preference
-
value
] [
reject
|
blackhole
]
Delete a static route
undo ip route-static
[
vpn-instance
vpn
-
instance
-
name
]*
ip
-
address
{
mask
|
mask
-
length
} {
interface
-
type
interface
-
number
| [
vpn-instance
vpn
-
instance
-
name
]
gateway
-
address
} [
preference
preference
-
value
] [
reject
|
blackhole
]
The parameters are explained as follows:
z
IP address and mask
The IP address and mask are in a dotted decimal format. As "1"s in the 32-bit mask is
required to be consecutive, the dotted decimal mask can also be replaced by the
mask
-
length
(which refers to the digits of the consecutive "1"s in the mask).
z
Next hop address and NULL interface
When configuring a static route, you can specify the
gateway
-
address
to decide the
next hop address, depending on the actual conditions.
In fact, for all the routing entries, the next hop address must be specified. When IP layer
transmits an IP packet, it will first search the matching route in the routing table
according to the destination address of the packet. Only when the next hop address of
the route is specified can the link layer find the corresponding link layer address, and
then forward the packet according to this address.