Home > Networking Tips > Routing and Switching > Router numbers
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ROUTING AND SWITCHING

Router numbers


Tom Lancaster
11.29.2005
Rating: -3.88- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Many of the routing protocols implemented in Cisco's IOS require a number to follow the command that enables the routing protocol in question. For example: "router eigrp 1," "router bgp 1" or "router ospf 1". If you're new to routing, these numbers can be a little confusing, as they mean something different to each protocol. The quick explanation and general guidelines are as follows:

For EIGRP and BGP, the number is an autonomous system (AS) number. But for OSPF, the number is a process number.

EIGRP, which is an interior gateway protocol, uses this number so that it makes sure it only talks to other EIGRP speakers that are in the same AS. For instance, if you have two routers, one with "router eigrp 1" and one with "router eigrp 2," then they would not form an adjacency. This could be important in the event that your organization merges with another. Hopefully, you aren't both using the same EIGRP AS, otherwise any overlapping IP space (e.g. 192.168.0.0) you have will cause a real problem. Of course, in your network, all the routers need the same AS number, which can generally be anything from 1 to 65535.

BGP, which is an exterior gateway protocol, uses this number extensively. First, if a neighbor has the same AS, then BGP uses the iBGP protocol. If a neighbor has a different AS, then BGP uses the eBGP protocol. BGP also uses the number in all of the route advertisements because the "AS Set" and "AS Path" attributes are critical to the operation of the protocol.

With BGP, the AS number is commonly "registered," where it is unique in the world, or it can be taken from the private pool, which can be repeated within each organization just like the RFC1918 IP addresses (e.g. 10.0.0.0/8). However, with EIGRP the ASN needs to be the same throughout the domain.

And in OSPF, the router number is only used locally on the router to identify an OSPF process to the CPU. Which is to say, you could have Router A be OSPF 1 and Router B configured as OSPF 2, and it won't make any difference whatsoever. They'll communicate with each other just fine.

The reason for the option is to accommodate the situation where you might want to have four different instances of OSPF running on a router, enabled by the following commands:
router ospf 1
router ospf 2
router ospf 3
router ospf 4

You could then put different network statements under each process. These processes would all dump the routes they learn into the same routing table, but routes learned on OSPF 1 wouldn't be advertised to OSPF 2's neighbors automatically. For this to happen, you'd have to redistribute OSPF 1 into OSPF 2, etc.

More on this topic

Crash Course: Routers

More Routing & Switching tips

In reality, multiple OSPF processes are very rare and not generally recommended. (As an example, you might need multiple OSPF processes if you are in a migration, or if you run a multi-tenant office building.) Even so, it helps to understand what that number is all about.

So to summarize, choosing an AS number for BGP is very important. For EIGRP, the number isn't usually important, so long as you use the same number across the domain. For OSPF, it's not important at all, unless you need to run multiple instances of OSPF on a single router. However, for consistency's sake, a best practice would be to number all the processes the same across all your routers.


Tom Lancaster, CCIE# 8829 CNX# 1105, is a consultant with 15 years experience in the networking industry, and co-author of several books on networking, most recently, CCSP: Secure PIX and Secure VPN Study Guide published by Sybex.

Rate this Tip
To rate tips, you must be a member of SearchNetworking.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Routing and Switching
How to test LAN switch energy efficiency
Testing LAN switch power consumption: A best practices guide
Dynamic IP routing and routing protocols
Monitor your network traffic with MRTG
How routers work: An overview for networking pros
Secure Cisco routers against IOS flaw attack
Network summarization -- Supernetting and wildcard masks
Routing: Five common, easily avoided errors
Router Expert: Building a WLAN proxy server, implementing ASR
Router Expert: Building a WLAN proxy server, implementing WPAD

IP Networking
What is the definition of ATM (Asynchronous Transfer Mode)?
Do I have to disable DHCP on my router to create a DHCP server?
Windows Server 2008 IP routing configuration: Static and dynamic RIPv2
What is IP?
Connect your LAN to the Internet using static or dynamic NAT
Using tracert and TTL to troubleshoot network connectivity problems
Test your TCP/IP protocol stack to troubleshoot network connectivity
IP addressing and subnetting explained
Checking IP configuration to troubleshoot Windows network connectivity
Does IPv6 abandon TCP/IP fragmentation?

Network Hardware
Unified wireless network still a work in progress for vendors
3Com acquisition confirms HP-Cisco battle for China
Juniper to CIOs: Invest in internal cloud computing networks
802.11n wireless APs bring IP video to sprawling Illinois high school
802.11n upgrade: College ditches legacy network for new vendor
Network device management overload: Engineers managing too many boxes
What is network infrastructure and what is a hybrid network?
What preventative maintenance procedures for network devices exist?
Can wireless adapters operate as client access points to make SoftAPs?
Is there VLAN software recommend for Realtek NICs?
Network Hardware Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
32-bit IP addressing  (SearchNetworking.com)
fixed-length subnet mask  (SearchNetworking.com)
GARP (Generic Attribute Registration Protocol)  (SearchNetworking.com)
Port Address Translation (PAT)  (SearchNetworking.com)
route aggregation  (SearchNetworking.com)
route summarization  (SearchNetworking.com)
subnet  (SearchNetworking.com)
subnet mask  (SearchNetworking.com)
variable-length subnet mask  (SearchNetworking.com)
wildcard mask  (SearchNetworking.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Networking Solutions for Business

Alcatel-Lucent Network Business Communications Solutions

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts