Networking/Computing Tips/Tricks

This is commonly asked question from our routing courses and routing discussions in other courses.  Let's explain this command in this article.

To start, you have to know that OSPF supports different areas.  Different areas can be used to control routing between areas (think of inter area routing and intra area routing).  For example you might have one area that you do not want routed to another area (e.g. Area 3 cannot talk to Area 7).  Further you may want to manage the size of the routing table by summarizing routes in one area.

I have created a sample network using IPv6 as follows:

arearange1

Note that there are three areas, Area 0, Area 1 and Area 2.  Normally Area 0 would be considered the 'backbone area'  but in this case we will keep things simple.  We will start by everyone being able to see everyone:

arearange2

We see all the routes in the R1 IPv6 routing table.

A quick set of pings from PC1 confirms reachability:

arearange3

If you are curious about the IPv6 OSPFv3 configurations, here they are:

R1

config t
ipv6 unicast-routing
ipv6 cef
ipv6 router ospf 1
router-id 0.0.0.1
int loop 0
no ip address
ipv6 enable
ipv6 address 1::1/128
ipv6 ospf 1 area 0
int f0/0
no ip address
ipv6 enable
ipv6 address 1:1::2/64
ipv6 ospf 1 area 0
int f0/1
no ip address
ipv6 enable
ipv6 ospf 1 area 0
end

R2

config t
ipv6 unicast-routing
ipv6 cef
ipv6 router ospf 1
router-id 0.0.0.2
int loop 0
no ip address
ipv6 enable
ipv6 ospf 1 area 0
ipv6 address 2::2/128
int f0/0
no ip address
ipv6 enable
ipv6 ospf 1 area 0
int f0/1
no ip address
ipv6 enable
ipv6 address 2:2::2/64
ipv6 ospf 1 area 2
int f1/0
no ip address
ipv6 enable
ipv6 ospf 1 area 1
end

R3

config t
ipv6 unicast-routing
ipv6 cef
ipv6 router ospf 1
router-id 0.0.0.3
int loop 0
no ip address
ipv6 enable
ipv6 address 3::3/128
ipv6 ospf 1 area 1
int f0/0
no ip address
ipv6 enable
ipv6 ospf 1 area 1
int f0/1
no ip address
ipv6 enable
ipv6 address 3:3::2/64
ipv6 ospf 1 area 1
end

 OK - now let's see what the area range command does.  Note the area range command is not yet implemented in the above configuration.

The area range command format is as follows:

area{ IPv6 address | decimal } range ipv6 address/mask [ advertise | not-advertise ] [ cost cost_value ]

Let's say we want to limit Area 1 from reaching Area 0.  This means that on the R2 - the Area Border Router, I can add the area range command:

area 1 range 3:3::/64 not-advertise

Now let's look at the R1 routing table:

arearange4 

You can see that the 3:3::/64 route is no longer in the table.  Without a route in the table, any destinations in that network will not be reachable while everything else is.  Let's try again from PC1:

arearange5

 We see then that using the command can allow or not allow routes to be propagated from the ABR therefore controlling reachability between areas.

Another thing the area range command can do is essentially summarize routes.  First, I have negated the prior area range command so once again, everyone can see everyone else in the network.  Now, we see in Area 1 two prefixes: 3::3/128 and 3:3::/64 (just look at the first R1 routing table at the beginning of the article).  What is we wanted to summarize this as 3::/16?  We would use the following command on R2 the ABR:

area 1 range 3::/16 advertise

The result is instead of two routes in the routing table representing Area 1, we now have only one:

arearange6

 

All of this works the exact same way in IPv4 networks with OSPFv2.

We hope this explains the command and its function and welcome comments, thoughts, questions.

 

 

 

 

 

 

Subscribe to our Newsletter!

Our Tag Cloud

4G Networks 6LoWLAN 6LoWPAN 802.11 802.11ah 802.11ax 802.11ay 802.11az Addressing Airlines Analysis Ansible Apple Architecture ARP ATM AToM Bandwidth BGP Billing Bloom's Taxonomy Briefings Cable CellStream Cellular Central Office Cheat Sheet Cisco Click Model Cloud Computer Consulting Crowd Funding Data Center Data Networking Decryption DHCPv6 dig DNS Documentation Early Adopter Ethernet Ethics Filter G-MPLS GNS3 Google Hands-On Hiring History Home Network HTTPS ICMP ICMPv6 IEEE 802.11p IEEE 802.15.4 Internet IoT IPv4 IPv6 IS-IS L2VPN L3VPN LDP Linux LLN M-BGP MAC Macro Management mergecap Microsoft mininet Monitoring MPLS Multicast Netcat NetMon netsh Networking News nmap NMS nslookup Online School OpenFlow OSPF OSPFv2 OSPFv3 OSX OTT Personnel Policy POTS POTS to Pipes PPP Privacy Profile Project Management PW3E QoS Remote Desktop Requirements RIP Routig Routing RPL RSVP Rural Scanning SDN Security Sensor Service Provider Small Business SONET Spam Speed SS7 SSL Subnetting T-Shark TCP TCP/IP Technology Telco Telecom 101 Telecommunications Terminal TLS Tools TR-069 Traffic Engineering Training TRANSUM Travel Tunnel Ubuntu Utility Video Virtualization VoIP VRF Wi-Fi Windows Wireless Wireless 5G Wireshark WLAN ZigBee

Our Twitter Feed

SiteLock