274 RackSwitch G8000: Application Guide
5. Define the transit area.
The area that contains the virtual link must be configured as a transit area.
6. Attach the network interface to the backbone.
7. Attach the network interface to the transit area.
8. Configure the virtual link.
The
nbr
router ID configured in this step must be the same as the router ID that
will be configured for Switch #2 in Step 2 on page 275.
Configuring OSPF for a Virtual Link on Switch #2
1. Configure IP interfaces on each network that will be attached to OSPF areas.
In this example, two IP interfaces are needed:
– Interface 1 for the transit area network on 10.10.12.0/24
– Interface 2 for the stub area network on 10.10.24.0/24
RS G8000(config-router-ospf)# area 1 area-id 0.0.0.1
RS G8000(config-router-ospf)# area 1 type transit
RS G8000(config-router-ospf)# area 1 enable
RS G8000(config-router-ospf)# exit
RS G8000(config)# interface ip 1
RS G8000(config-ip-if)# ip ospf area 0
RS G8000(config-ip-if)# ip ospf enable
RS G8000(config-ip-if)# exit
RS G8000(config)# interface ip 2
RS G8000(config-ip-if)# ip ospf area 1
RS G8000(config-ip-if)# ip ospf enable
RS G8000(config-ip-if)# exit
RS G8000(config)# router ospf
RS G8000(config-router-ospf)# area-virtual-link 1 area 1
RS G8000(config-router-ospf)# area-virtual-link 1 neighbor-router
10.10.14.1
RS G8000(config-router-ospf)# area-virtual-link 1 enable
RS G8000(config)# interface ip 1
RS G8000(config-ip-if)# ip address 10.10.12.2
RS G8000(config-ip-if)# ip netmask 255.255.255.0
RS G8000(config-ip-if)# enable
RS G8000(config-ip-if)# exit
RS G8000(config)# interface ip 2
RS G8000(config-ip-if)# ip address 10.10.24.1
RS G8000(config-ip-if)# ip netmask 255.255.255.0
RS G8000(config-ip-if)# enable
RS G8000(config-ip-if)# exit