304 CHAPTER 28: OSPF CONFIGURATION
Configuring Stub
Routers
A stub router is used for traffic control. It tells other OSPF routers not to use it to
forward data, but they can have a route to it.
The Router LSAs from the stub router may contain different link type values. A
value of 3 means a link to the stub network, so the cost of the link remains
unchanged. A value of 1, 2 or 4 means a point-to-point link, a link to a transit
network or a virtual link. In such cases, a maximum cost value of 65535 is used.
Thus, other neighbors find the links to the stub router have such big costs, they
will not send packets to the stub router for forwarding as long as there is a route
with a smaller cost.
Follow these steps to configure a router as a stub router:
n
A stub router has nothing to do with a stub area.
Configuring OSPF
Authentication
By supporting packet authentication, OSPF receives packets that pass the
authentication only, so failed packets cannot establish neighboring relationships.
Follow these steps to configure OSPF authentication:
n
The authentication mode and password for all interfaces attached to the same
area must be identical.
To do… Use the command… Remarks
Enter system view system-view -
Enter OSPF view ospf [ process-id | router-id router-id ] * -
Configure the router as
a stub router
stub-router Required
Not configured by default
To do… Use the command… Remarks
Enter system view system-view -
Enter OSPF view ospf [ process-id | router-id
router-id ] *
-
Enter area view area area-id -
Configure the authentication
mode
authentication-mode
{ simple | md5 }
Required
Not configured by default
Exit to OSPF view quit -
Exit to system view quit -
Enter interface view interface interface-type
interface-number
-
Configure the authentication
mode (simple authentication)
for the interface
ospf authentication-mode
simple [ plain | cipher ]
password
Optional
Not configured by default
Configure the authentication
mode (MD5 authentication)
for the interface
ospf authentication-mode
{ md5 | hmac-md5 } key-id
[ plain | cipher ] password