Adjust Administrative Distance for Route Selection in Cisco IOS Routers Configuration Example

Similar documents
Initial Configurations for OSPF over a Point to Point Link

LAB11: EIGRP IPv4. EIGRP: Stub. Disclaimer

LAB8: Named EIGRP IPv4

LAB1: BGP IPv4. BGP: Initial Config. Disclaimer

CCNA Exploration: Routing Protocols and Concepts Chapter 8 Case Study

How to Configure a Cisco Router Behind a Non-Cisco Cable Modem

Network Layer Week 5. Module : Computer Networks Lecturer: Lucy White Office : 324

GRE Tunnel with VRF Configuration Example

Configuring Redundant Routing on the VPN 3000 Concentrator

DMVPN Topology. Page1

Implement Static Routes for IPv6 Configuration Example

RR> RR> RR>en RR# RR# RR# RR# *Oct 2 04:57:03.684: %AMDP2_FE-6-EXCESSCOLL: Ethernet0/2 TDR=0, TRC=0 RR#

CCNA Exploration: Routing Protocols and Concepts Chapter 10 Case Study

Failover with EIGRP Using VRF Configuration Example

LAB5: OSPF IPv4. OSPF: Stub. Disclaimer

LAB15: EIGRP IPv4. LAB 15: Diagram. Disclaimer

OSPF Routers Connected by a Point to Multipoint Link

CCNA Exploration: Routing Protocols and Concepts Chapter 11 Case Study

Chapter 6 Lab 6-4, BGP Route Reflectors and Route Filters

Configure the IPv6 BGP Local Preference Feature

LAB16: Named EIGRP IPv4

Layer3 VPN with OSPF Protocol between CE-PE

Lab Configuring Static NAT

LAB8: OSPF IPv4. OSPF: Virtual Link. Disclaimer

Routing Information Protocol Version 2.0

ASA Has High CPU Usage Due to a Traffic Loop When VPN Clients Disconnect

How BGP Routers Use the Multi Exit Discriminator for Best Path Selection

BGP Best External. Finding Feature Information

Configuration and Management of Networks

Lab- Configuring Basic Single-Area OSPFv2

OSPF Support for Multi-VRF on CE Routers

RIP. Table of Contents. General Information. Summary. Specifications

Adapted from the Synchronization example in g/case/studies/icsbgp4.html

LAB20: EIGRP IPv6. EIGRP: Summarization. Disclaimer

Lab Configuring IPv4 Static and Default Routes (Solution)

Shortcut Switching Enhancements for NHRP in DMVPN Networks

FlexVPN HA Dual Hub Configuration Example

Chapter 7 Lab 7-2, Using the AS_PATH Attribute

TELECOMMUNICATION MANAGEMENT AND NETWORKS

MPLS Troubleshooting. Contents. Prerequisites. Document ID: Requirements. Components Used

KIM DONNERBORG / RTS. Cisco Lab Øvelse Af Kim Donnerborg / RTS. Side 0 af 8

OSPF Not So Stubby Area (NSSA)

Route Redistribution 2005 Cisco Systems, Inc. All rights reserved. 1of 38

Troubleshooting Cisco Express Forwarding Routing Loops

MPLS VPN Half-Duplex VRF

Configuring Easy Virtual Network Shared Services

LAB12: OSPF IPv6. OSPF: Redistribution. Disclaimer

INTERNET TEACHING LAB: Interior Gateway Protocol (IGP) LAB

Lab 8a. OSPF. Set up OSPF in a single area so that all subnets are visible from all routers.

Lab- Troubleshooting Basic EIGRP for 1Pv4

CIS 83 LAB 3 - EIGRP Rich Simms September 23, Objective. Scenario. Topology

Use NAT to Hide the Real IP Address of CTC to Establish a Session with ONS 15454

Access Server Dial In IP/PPP Configuration With Dedicated V.120 PPP

RealCiscoLAB.com. Chapter 6 Lab 6-2, Using the AS_PATH Attribute. Topology. Objectives. Background. CCNPv6 ROUTE

Configuring Scalable Hub-and-Spoke MPLS VPNs

LAB1: EIGRP IPv4. EIGRP: Initial Config. Disclaimer

Contents. Introduction. Prerequisites. Requirements. Components Used

Chapter 7 Lab 7-1, Configuring BGP with Default Routing

ASA 9.x EIGRP Configuration Example

Distance vector Routing protocols. 2000, Cisco Systems, Inc. 9-1

MPLS VPN C H A P T E R S U P P L E M E N T. BGP Advertising IPv4 Prefixes with a Label

LAB2: Named EIGRP IPv4

Chapter 3 Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area

OSPF Demand Circuit Feature

Lab VTY Restriction Instructor Version 2500

Chapter 4 Lab 4-2, Controlling Routing Updates. Topology. Objectives. CCNPv7 ROUTE

CIS 83 LAB 2 - Single Area OSPF Rich Simms September 12, Objective. Scenario. Topology

Configuring the Cisco IOS MGCP Gateway

Sample Configuration for OSPFv3

Lab Configuring OSPF Timers 2500 Series

Layer3 VPN with RIP protocol between CE-PE

Chapter 6 Lab 6-3, Configuring IBGP and EBGP Sessions, Local Preference, and MED

Introduction to Dynamic Routing Protocols

Route Leaking in MPLS/VPN Networks

Troubleshooting LSP Failure in MPLS VPN

Basic Router Configuration

Lab Configuring OSPF Authentication 2500 Series

Lab Configuring Per-Interface Inter-VLAN Routing (Solution)

OSPF Virtual Link. Contents. Prerequisites. Document ID: Requirements. Components Used

MPLS VPN: VRF Selection Based on Source IP Address

Config. Router# show ip ospf

Lab Configuring Per-Interface Inter-VLAN Routing (Instructor Version)

Configuration and Management of Networks

STUDENT LAB GUIDE CCNA ( )

Inverse MUX Application using Multilink PPP

Lab Configuring 802.1Q Trunk-Based Inter-VLAN Routing (Instructor Version Optional Lab)

Static VLAN Pools that will be used for the encapsulation VLAN between the external devices

Lab 4: Routing using OSPF

Configuring IS IS over IPv6

CertifyMe. CertifyMe

EIGRP Lab / lo1. .1 lo / /30

Reverse Route Injection

Understanding Cisco Express Forwarding

Configuring Commonly Used IP ACLs

Lab 8.4.2: Show IP Route Challenge Lab

IPv6 Tunnel through an IPv4 Network

Chapter 3 Lab 3-1, Single-Area OSPF Link Costs and Interface Priorities

Chapter 3 Lab 3-4, OSPF over Frame Relay

Easy Virtual Network Configuration Example

Chapter 8 Lab 8-3, Configuring 6to4 Tunnels

Transcription:

Adjust Administrative Distance for Route Selection in Cisco IOS Routers Configuration Example Document ID: 113153 Contents Introduction Prerequisites Requirements Components Used Conventions Configure Network Diagram Configurations Verify On Router R2 Related Information Introduction This document describes how to change the administrative distance value of the routing protocol in order to influence the route selection in Cisco routers. Administrative distance is the feature that routers use in order to select the best path when there are two or more different routes to the same destination from two different routing protocols. Administrative distance defines the reliability of a routing protocol. The smaller the administrative distance value, the more reliable the protocol. Note: When you change the default distances, it can lead to routing loops in the network. Change the administrative distance with caution and only after you have thought through what you want to achieve. Prerequisites Requirements There are no specific prerequisites for this document. Components Used The configurations in this document is based on the Cisco 3700 series router on Cisco IOS Software Release 12.4 (15)T 13. Conventions Refer to Cisco Technical Tips Conventions for more information on document conventions. Configure In this section, you are presented with the information to configure the features described in this document.

Note: Use the Command Lookup Tool (registered customers only) to find more information on the commands used in this document. Network Diagram Here the router R1 and R2 are connected via parallel serial lines. The routers R1 and R2 are configured with BGP and OSPF. The default administrative distance of OSPF is 110 while that of the ebgp is 20. With the command distance, we changed the AD value of BGP to 190. Prior to this command, the router R2 preferred the BGP routes over OSPF since they had the default AD values configured. After the AD value of the BGP changed, the OSPF routes takes the precedence. Configurations This document uses these configuration Router R1 Configuration Router R2 Configuration R1 Configuration interface Loopback0 ip address 1.1.1.1 255.255.255.255 interface Loopback10 ip address 10.10.10.10 255.255.255.255 interface Loopback20 ip address 20.20.20.20 255.255.255.255 interface Loopback30 ip address 30.30.30.30 255.255.255.255 interface Serial1/0 ip address 100.100.100.1 255.255.255.0 interface Serial1/1 ip address 192.168.12.1 255.255.255.0 router ospf 10 router id 1.1.1.1 log adjacency changes network 1.1.1.1 0.0.0.0 area 0

network 10.10.10.10 0.0.0.0 area 0 network 20.20.20.20 0.0.0.0 area 0 network 100.100.100.1 0.0.0.0 area 0 router bgp 123 no synchronization bgp router id 1.1.1.1 bgp log neighbor changes network 10.10.10.10 mask 255.255.255.255 network 20.20.20.20 mask 255.255.255.255 network 30.30.30.30 mask 255.255.255.255 neighbor 2.2.2.2 remote as 100 neighbor 2.2.2.2 ebgp multihop 5 neighbor 2.2.2.2 update source Loopback0 no auto summary R2 Configuration interface Loopback0 ip address 2.2.2.2 255.255.255.255 interface Serial1/0 ip address 100.100.100.2 255.255.255.0 interface Serial1/1 ip address 192.168.12.2 255.255.255.0 router ospf 10 router id 2.2.2.2 log adjacency changes network 2.2.2.2 0.0.0.0 area 0 network 100.100.100.2 0.0.0.0 area 0 router bgp 100 no synchronization bgp router id 2.2.2.2 bgp log neighbor changes neighbor 1.1.1.1 remote as 123 neighbor 1.1.1.1 ebgp multihop 5 neighbor 1.1.1.1 update source Loopback0 distance 190 1.1.1.1 0.0.0.0 Changed the AD value of BGP as 190 no auto summary Verify Use the commands described in this section in order to verify the configuration. The Output Interpreter Tool (registered customers only) (OIT) supports certain show commands. Use the OIT to view an analysis of show command output.

On Router R2 When the distance command is not applied on Router R2 Show ip route Codes: L local, C connected, S static, R RIP, M mobile, B BGP D EIGRP, EX EIGRP external, O OSPF, IA OSPF inter area N1 OSPF NSSA external type 1, N2 OSPF NSSA external type 2 E1 OSPF external type 1, E2 OSPF external type 2 I IS IS, su IS IS summary, L1 IS IS level 1, L2 IS IS level 2 ia IS IS inter area, * candidate default, U per user static route o ODR, P periodic downloaded static route, + replicated route Gateway of last resort is not set 1.0.0.0/32 is subnetted, 1 subnets O 1.1.1.1 [110/65] via 100.100.100.1, 00:00:03, Serial1/0 2.0.0.0/32 is subnetted, 1 subnets C 2.2.2.2 is directly connected, Loopback0 10.0.0.0/32 is subnetted, 1 subnets B 10.10.10.10 [20/0] via 1.1.1.1, 00:00:03 BGP Router Preffered Over OSPF 20.0.0.0/32 is subnetted, 1 subnets B 20.20.20.20 [20/0] via 1.1.1.1, 00:00:03 BGP Router Preffered Over OSPF 30.0.0.0/32 is subnetted, 1 subnets B 30.30.30.30 [20/0] via 1.1.1.1, 00:00:03 100.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 100.100.100.0/24 is directly connected, Serial1/0 L 100.100.100.2/32 is directly connected, Serial1/0 192.168.12.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.12.0/24 is directly connected, Serial1/1 L 192.168.12.2/32 is directly connected, Serial1/1 When the distance command is applied on Router R2 Show ip route R2#sh ip route Codes: L local, C connected, S static, R RIP, M mobile, B BGP D EIGRP, EX EIGRP external, O OSPF, IA OSPF inter area N1 OSPF NSSA external type 1, N2 OSPF NSSA external type 2 E1 OSPF external type 1, E2 OSPF external type 2 I IS IS, su IS IS summary, L1 IS IS level 1, L2 IS IS level 2 ia IS IS inter area, * candidate default, U per user static route o ODR, P periodic downloaded static route, + replicated route Gateway of last resort is not set O C O 1.0.0.0/32 is subnetted, 1 subnets 1.1.1.1 [110/65] via 100.100.100.1, 00:00:03, Serial1/0 2.0.0.0/32 is subnetted, 1 subnets 2.2.2.2 is directly connected, Loopback0 10.0.0.0/32 is subnetted, 1 subnets 10.10.10.10 [110/65] via 100.100.100.1, 00:00:03, Serial1/0 By increasing the AD of External BGP, OSPF takes precedence 20.0.0.0/32 is subnetted, 1 subnets

O 20.20.20.20 [110/65] via 100.100.100.1, 00:00:03, Serial1/0 By increasing the AD of External BGP, OSPF takes precedence 30.0.0.0/32 is subnetted, 1 subnets B 30.30.30.30 [190/0] via 1.1.1.1, 00:00:03 100.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 100.100.100.0/24 is directly connected, Serial1/0 L 100.100.100.2/32 is directly connected, Serial1/0 192.168.12.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.12.0/24 is directly connected, Serial1/1 L 192.168.12.2/32 is directly connected, Serial1/1 Related Information Route Selection in Cisco Routers OSPF Support Page BGP Support Page Technical Support & Documentation Cisco Systems Contacts & Feedback Help Site Map 2013 2014 Cisco Systems, Inc. All rights reserved. Terms & Conditions Privacy Statement Cookie Policy Trademarks of Cisco Systems, Inc. Updated: Jul 26, 2011 Document ID: 113153