Skip to Main Content
Cisco IOS in a Nutshell, 2nd Edition
book

Cisco IOS in a Nutshell, 2nd Edition

by James Boney
August 2005
Intermediate to advanced content levelIntermediate to advanced
798 pages
31h 12m
English
O'Reilly Media, Inc.
Content preview from Cisco IOS in a Nutshell, 2nd Edition

Name

distance bgp — router, BGP

Synopsis

distance bgp external-distance internal-distance local-distance
no distance bgp

Configures

Administrative distance for BGP

Default

External distance, 20; internal distance, 200; local distance, 200

Description

The distance bgp command allows you to change the trustworthiness of a route’s source relative to other routing protocols. The lower the distance, the more the route’s source is trusted. Routes with a distance of 255 are not added to the route table. external-distance applies to external BGP routes (routes learned from a peer outside your AS); internal-distance applies to internal BGP routes (routes learned from a peer within your AS); local-distance applies to routes added with the network command. It’s usually not a good idea to change BGP’s routing distances.

Example

The distance bgp command is often used to change the internal distance so that its value is equal to the external distance, as in the following example:

router bgp 101
  distance bgp 20 20 200
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CISCO IOS in a Nutshell

CISCO IOS in a Nutshell

James Boney
Cisco IOS Cookbook, 2nd Edition

Cisco IOS Cookbook, 2nd Edition

Kevin Dooley, Ian Brown
Cisco Software-Defined Access

Cisco Software-Defined Access

Srilatha Vemula, Jason Gooley, Roddie Hasan

Publisher Resources

ISBN: 0596008694Errata