IP Routing—Configuring RIP, OSPF, BGP, and PBR
Configuring OSPF
15-66
2.
Define the router ID by configuring a loopback interface:
ProCurve(config)# interface loop 1
ProCurve(config-loopback 1)# ip address 192.168.251.5 /24
3.
Access the OSPF configuration mode context:
ProCurve(config)# router ospf
4.
Define the connected OSPF networks in the area. This step also enables
OSPF on interfaces on those networks:
ProCurve(config-ospf)# network 10.1.5.0 0.0.0.255 area 5
ProCurve(config-ospf)# network 10.1.6.0 0.0.0.255 area 5
5.
Define the area as a stub area:
ProCurve(config-ospf)# area 5 stub no-summary
You would similarly configure the router in area 4 and the internal HQ router.
To configure the ASBR at the HQ, you would complete these steps:
1.
Assign IP addresses to the Ethernet and WAN interfaces:
ProCurve(config-eth 0/1)# ip address 10.1.1.1 /24
ProCurve(config-eth 0/2)# ip address 10.1.2.1 /24
ProCurve(config-ppp 1)# ip address 10.200.1.1 /24
2.
Define the router ID by configuring a loopback interface:
ProCurve(config)# interface loop 1
ProCurve(config-loopback 1)# ip address 192.168.255.1 /24
3.
Configure RIP to run on the network that connects to the external
network. Note that you must redistribute connected routes because the
local networks that you want to advertise are not running RIP.
ProCurve(config)# router rip
ProCurve(config-rip)# version 2
ProCurve(config-rip)# network 10.200.1.0 255.255.255.0
ProCurve(config-rip)# redistribute ospf
ProCurve(config-rip)# redistribute connected
4.
Access the OSPF configuration mode context:
ProCurve(config)# router ospf
5.
Define the connected OSPF networks in each area. This step also enables
OSPF on interfaces on those networks:
ProCurve(config-ospf)# network 10.1.1.0 0.0.0.255 area 0
ProCurve(config-ospf)# network 10.1.3.0 0.0.0.255 area 0