Configuring OSPF

OSPF Area 0

HP9308C

Router ID 209.157.22.1

OSPF Area 1

OSPF Area 2

“transit area”

 

HP9308B

HP9308A

Router ID 10.0.0.1

 

Figure 8.6 Defining OSPF virtual links within a network

USING THE CLI

EXAMPLE:

Figure 8.6 shows an OSPF area border router, HP 9308M-A, that is cut off from the backbone area

(area 0). To provide backbone access to HP 9308M-A, you can add a virtual link between HP 9308M-A and HP 9308M-C using area 1 as a transit area. To configure the virtual link, you define the link on the router that is at each end of the link. No configuration for the virtual link is required on the routers in the transit area.

To define the virtual link on HP 9308M-A, enter the following commands:

HP9308A(config-ospf-router)# area 1 virtual-link 209.157.22.1

HP9308A(config-ospf-router)# write memory

Enter the following commands to configure the virtual link on HP 9308M-C:

HP9308C(config-ospf-router)# area 1 virtual-link 10.0.0.1

HP9308C(config-ospf-router)# write memory

Syntax: area <ip-addr> <num> virtual-link <router-id>

[authentication-key dead-interval hello-interval retransmit-interval transmit-delay <value>]

The area <ip-addr> <num> parameter specifies the transit area.

The <router-id> parameter specifies the router ID of the OSPF router at the remote end of the virtual link. To display the router ID on an HP routing switch, enter the show ip command.

See “Modify Virtual Link Parameters” on page 8-23for descriptions of the optional parameters.

8 - 21