
116
C
HAPTER
6: IP R
OUTING
P
ROTOCOL
O
PERATION
Configuring Static
Routes
Static route configuration tasks are described in the following sections:
■
Configuring a Static Route
■
Configuring a Default Route
■
Deleting All The Static Routes
■
Displaying and Debugging Static Routes
Configuring a Static Route
Perform the following configurations in System View.
The parameters are explained as follows:
■
IP address and mask
The IP address and mask use a decimal format. Because the 1s in the 32-bit
mask must be consecutive, the dotted decimal mask can also be replaced by
the mask-length which refers to the digits of the consecutive 1s in the mask.
■
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.
For all the routing items, the next hop address must be specified. When the IP
layer transmits a packet, it first searches the matching route in the routing
table, depending on 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.
The packets sent to the NULL interface, which is a virtual interface, are
discarded at once. This can decrease system load.
You cannot specify an interface address of the local Switch as the next hop
address of an static route.
■
Preference
For different configurations of
preference_value
, you can flexibly apply the
routing management policy.
■
Other parameters
The attributes
reject
and
blackhole
indicate the unreachable route and the
blackhole route, respectively.
Table 108
Configuring a static route
Operation
Command
Add a static route
ip route-static
ip_address
{
mask
|
mask_length
} {
interface_type interface_number
|
gateway_address
}
[
preference
value
] [
reject
|
blackhole
]
Delete a static
route
undo ip route-static
ip_address
{
mask
|
mask_length
} [
interface_type interface_number
|
gateway_address
] [
preference
value
] [
reject
|
blackhole
]
Содержание SuperStack 4
Страница 6: ...18 ABOUT THIS GUIDE ...
Страница 13: ...Logging in to the Switch 25 Figure 3 Setting up a New Connection Figure 4 Configuring the Port for Connection ...
Страница 34: ...46 CHAPTER 1 GETTING STARTED ...
Страница 62: ...74 CHAPTER 3 VLAN OPERATION ...
Страница 69: ...PoE Configuration 81 ...
Страница 70: ...82 CHAPTER 4 POWER OVER ETHERNET POE CONFIGURATION ...
Страница 98: ...110 CHAPTER 5 NETWORK PROTOCOL OPERATION ...
Страница 220: ...232 CHAPTER 8 ACL CONFIGURATION ...
Страница 408: ...420 CHAPTER B RADIUS SERVER AND RADIUS CLIENT SETUP ...
Страница 432: ...444 APPENDIX D 3COM XRN ...