5-3. distance bgp external internal local

Syntax Description:

  • external— Routes learned via EBGP.

  • internal— Routes learned via IBGP

  • local— Routes entered into the BGP table via the aggregate-address command.

Defaults: external 20, internal 200, local 200

Purpose: To modify the administrative distance of BGP routes. When a particular route is learned via multiple routing protocols, the administrative distance is used to select the best route. The lower administrative distance is preferred. The administrative distances used for the IP routing protocols are:

  • Connected— 0

  • Static— 1

  • EBGP— 20

  • EIGRP— 90

  • IGRP— 100

  • OSPF— 110

  • IS-IS— 115

  • RIP— 120

  • IBGP— 200

Cisco IOS Software Release: 10.0

Configuration Example: Modifying the Distance for External, Internal, and Local ...

Get Cisco® BGP-4 Command and Configuration Handbook (CCIE Professional Development) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.