Distance command in Cisco IOS

Distance command in Cisco IOS

NewsGroups | Search | Tools
 comp.dcom.sys.cisco  Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Distance command in Cisco IOS charset 05-10-2008
Posted by charset on May 10, 2008, 1:45 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Dear group,

I am an MSc student in Electrotechnical Engineering and I am currently
researching configuration commands in Cisco IOS for my thesis.

In particular, I am interested in setting the administrative distance
of a route according to the route's destination prefix. I am aware of
the "distance" command in the form:

distance {ip-address } [ip-standard-list] [ip-
extended-list]

which allows one to set the administrative distance of a route (within
the configuration of a particular routing protocol) according to what
Cisco's documentation [1] refers to as the "source of a route". The
documentation is not very clear on what this means, but my
interpretation is that it refers to the neighboring router from which
the route in question was received. On the other hand, the book "Cisco
IOS in a nutshell" says it refers to the route's destination address;
confusingly, it also describes the command's syntax as

distance distance [address mask] [access-list]

which is missing one argument relative to the version above.

Since the two sources contradict each other, I wonder if you could
provide me an answer to any of the following questions:

(i) What is the correct syntax of the "distance" command and, in
particular, what do the ip-address and wildcard-mask parameters mean;
(ii) Is there any way, using this command or another one, to set a
route's administrative distance based on the route's destination
prefix/address?

Thanks in advance.

Best regards,
Tiago


[1] Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols,
Release 12.2

Pure Networks
Posted by Merv on May 10, 2008, 3:53 pm
If you were  Registered and logged in, you could reply and use other advanced thread options

The syntax for the distance command is

distance <admin-distance> {ip-address } [ip-standard-
list]| [ip-extended-list]

example: distance 150 10.1.1.0 0.0.0.255

This distance command should not be confused with route metrics that
are used
by the various routing protocols - RIP, EIGRP, OSPF, ISIS, etc


Similar ThreadsPosted
RE: Cisco Router for BGP and DS3, Admin Distance January 13, 2008, 1:52 pm
RJ11 Cable Distance January 5, 2005, 8:09 pm
[Q]Floating static routes, admin. distance and route-map March 10, 2005, 8:59 am
Suggestions for wireless bridge for 100 foot indoor distance April 1, 2006, 7:00 am
command equivalent in PIX version 6.3 for the version 7.x command: same-security-traffic permit inter-interface December 11, 2006, 1:20 pm
Cisco PIX 506 and split-dns command June 8, 2005, 1:43 pm
Cisco Command not recognized July 9, 2006, 5:53 pm
Static command on cisco PIX Firewall August 18, 2004, 7:53 am
Cisco Aironet 350 IOS missing a command September 12, 2008, 3:38 pm
Cisco 5505 show command help needed August 12, 2004, 8:56 pm

other useful resources:
The Federal Communications Commission (FCC)
Telecommunications Industry Association
Electronic and Software Security Products and Services
International Telecommunication Union

Custom CGI Perl and PHP programming by 1-Script.com

Contact Us | Privacy Policy
The site map in XML format XML site map