Default Route

To avoid too large a routing table, you can configure a default route.

When the destination address of a packet fails to match any entry in the routing table,

z

z

If there is default route in the routing table, the default route will be selected to forward the packet. If there is no default route, the packet will be discarded and an ICMP Destination Unreachable or Network Unreachable packet will be returned to the source.

A default route can be manually configured or generated by some dynamic routing protocols, such as OSPF and RIP.

Static Route Configuration

Configuration Prerequisites

Before configuring a static route, perform the following tasks:

z

z

Configuring the physical parameters of related interfaces Configuring IP addresses for related interfaces

Configuring a Static Route

Follow these steps to configure a static route:

 

To do...

Use the command...

Remarks

 

 

Enter system view

system-view

 

 

 

 

 

 

 

 

ip route-static ip-address{ mask

Required

 

 

Configure a static

mask-length } { interface-type

By default, the system

 

 

interface-number next-hop } [ preference

 

 

can obtain the route to the

 

 

route

preference-value ] [ reject blackhole ]

 

 

subnet directly connected

 

 

 

[ detect-group group number ] [ description

 

 

 

to the router.

 

 

 

text ]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

zUse the ip route-staticcommand to configure a default route by setting the destination IP address and the mask to 0.0.0.0.

z

z

z

Avoid configuring the next hop address of a static route to the address of an interface on the local device.

Different preferences can be configured to implement flexible route management policies. For automatic detection information, refer to the part discussing Auto Detect.

2-2

Page 687
Image 687
3Com WX3000 operation manual Static Route Configuration, Default Route, Configuring a Static Route