Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To disable injecting routes into an area from an ABR manually, the user can apply the prefix lists in inbound  or outbound directions to control the dissemination of routes into and out of OSPF areas. The command used to control router route dissemination is set protocols ospf area in filter-list prefix. The keyword in indicated routes advertised into an area. Whereas out indicates routes going out of the area. Its important to note that the user must configure the prefix list before applying it through the  set protocols ospf area in filter-list prefix command. The command to create the prefix list is set protocols ospf area 0.0.0.1 in in|out filter-list prefix. 



                                                     Figure 5-6. OSPF area range configuration. 


Figure 5-6 shows a sample OSPF topology with three different areas configured. In this example we will focus on the configuration on Router 2 to see how it affects the routing table on Router 1 which is in area 0.0.0.2. First we will see the configuration on Router 2.

Configuring Router 2

Code Block
admin@router2# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 30
admin@router2# set interface gigabit-ethernet ge-1/1/5 family ethernet-switching native-vlan-id 40
admin@router2# set protocols lldp enable true
admin@router2# set protocols ospf router-id 2.2.2.2
admin@router2# set protocols ospf area 0.0.0.2 area-type "stub"
admin@router2# set protocols ospf area 0.0.0.2 no-summary
admin@router2# set protocols ospf area 0.0.0.1 in filter-list
admin@router2# set protocols ospf network 10.10.2.0/24 area 0.0.0.2
admin@router2# set protocols ospf network 10.10.4.0/24 area 0.0.0.0
admin@router2# set system hostname "router2"
admin@router2# set vlan-interface loopback address 2.2.2.2 prefix-length 32
admin@router2# set vlan-interface interface vlan30 vif vlan30 address 10.10.2.2 prefix-length 24
admin@router2# set vlan-interface interface vlan40 vif vlan40 address 10.10.4.1 prefix-length 24
admin@router2# set vlans vlan-id 30 l3-interface "vlan30"
admin@router2# set vlans vlan-id 40 l3-interface "vlan40"

...