Configuring stub routers

A stub router is used for traffic control. It tells other OSPF routers to not use it to forward data.

The Router LSAs from the stub router may contain different link type values. A value of 3 means a link to a stub network, and the cost of the link will not be changed. A value of 1, 2, or 4 means a point-to-point link, a link to a transit network, or a virtual link. On such links, a maximum cost value of 65535 is used. Thus, neighbors find that the links to the stub router have large costs that they will not send packets to the stub router for forwarding as long as another route with a smaller cost exists.

To configure a router as a stub router:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter OSPF view.

ospf [ process-id | router-id router-id | vpn-instance vpn-instance-name ] *

N/A

3. Configure the router as a stub router.

stub-router

By default, the router is not a stub router in any OSPF process.