At a minimum, perform the following tasks on each PE router to configure them for OSPF. For other OSPF configuration tasks, see OSPF Configuration Tasks in the JUNOSe IP, IPv6, and IGP Configuration Guide.
- host1(config)#ip vrf ospf2
- Proceed with new VRF creation? [confirm]
- host1(config-vrf)#rd 100:85
- host1(config-vrf)#exit
From the parent VR:
- host1(config)#router ospf 5 vrf ospf2
From the VRF:
- host1(config)#virtual-router :ospf2
- host1:default:ospf2(config)#router ospf 5
The command prompts in the remaining steps reflect using the latter method for starting OSPF.
- host1:default:ospf2(config-router)#domain-id
45
- host1:default:ospf2(config-router)#domain-tag
1200
- host1:default:ospf2(config-router)#redistribute
bgp
- host1:default(config)#router bgp 100
- host1:default(config-router)#address-family
ipv4 unicast vrf ospf2
- host1:default(config-router)#redistribute
ospf
domain-id
- host1:default:ospf2(config-router)#domain-id
45
domain-tag
- host1:default:ospf2(config-router)#domain-tag
1200