9-4 network ip-address mask network-mask backdoor

 <  Free Open Study  >  

9-4 network ip-address mask network-mask backdoor

Syntax Description:

  • ip-address ” Network to advertise to BGP peers.

  • network-mask ” Optional parameter used to advertise nonclassful network prefixes.

Defaults: None

Limitations: Up to 200 instances of the network command may be used in the configuration. For Cisco IOS Software Release 12.0 and later, this restriction has been removed.

Purpose: When a router is running more than one IP routing protocol, the possibility exists that a particular route might be learned by two or more protocols. Because different IP routing protocols calculate the cost to a route using different metrics, the protocol cost cannot be used to select the best path. When a route is known by more than one IP routing protocol, Cisco routers use the administrative distance to select the best path , with the lowest administrative distance being preferred. EBGP routes have an administrative distance of 20, and IGPs have a higher administrative distance:

  • EBGP ” 20

  • EIGRP ” 90

  • IGRP ” 100

  • OSPF ” 110

  • RIP ” 120

  • IBGP ” 200

EBGP routes are preferred over IGP routes. The backdoor option instructs BGP to set the administrative distance for the network specified to 200, allowing the IGP route to be preferred.

Cisco IOS Software Release: 10.0

Configuration Example: Finding the Best Route Through Administrative Distance

In Figure 9-3, Router A is learning about network 172.17.2.0 via EBGP and EIGRP.

Figure 9-3. EBGP Route to 172.17.2.0 Is Preferred Over the EIGRP Route

graphics/09fig03.gif

 Router A  router eigrp 1   network 172.17.0.0   !   router bgp 1   neighbor 10.1.1.2 remote-as 3   ___________________________________________________________________________  Router B  router eigrp 1   network 172.17.0.0   !   router bgp 2   network 172.17.2.0 mask 255.255.255.0   neighbor 10.1.2.1 remote-as 3   ___________________________________________________________________________  Router C  router bgp 3   network 10.1.1.0 mask 255.255.255.252   network 10.1.2.0 mask 255.255.255.252   neighbor 10.1.1.1 remote-as 1   neighbor 10.1.2.2 remote-as 2  

Because EBGP has a lower administrative distance than EIGRP, the EBGP route is installed in Router A's IP routing table.

 rtrA#  show ip route  Codes: C - connected, S - static, I - IGRP, 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, E - EGP        i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default        U - per-user static route, o - ODR, P - periodic downloaded static route        T - traffic engineered route Gateway of last resort is not set      172.17.0.0/24 is subnetted, 2 subnets C       172.17.1.0 is directly connected, Ethernet0  B       172.17.2.0 [20/0] via 10.1.1.2  10.0.0.0/30 is subnetted, 2 subnets B       10.1.2.0 [20/0] via 10.1.1.2 C       10.1.1.0 is directly connected, Serial0 

The preferred path from Router A to network 172.17.2.0 is through Router C. The shortest path to network 172.17.2.0 is through the direct connection to Router B. A number of methods can be used to modify routing table entries so that Router A prefers the direct path to network 172.17.2.0. Using the backdoor option is relatively easy, as shown in the following modified listing for Router A:

 Router A  router bgp 1    network 172.17.2.0 mask 255.255.255.0 backdoor    neighbor 10.1.1.2 remote-as 3  

The backdoor option causes the network learned via EBGP to have an administrative distance of 200. The EIGRP route for network 172.17.2.0 has an administrative distance of 90, causing it to be installed in the IP routing table.

Verification

By inspecting the IP routing table on Router A, we can see that the route to 172.17.2.0 learned via EIGRP has been installed in the IP routing table, replacing the EBGP route:

 rtrA#  show ip route  Codes: C - connected, S - static, I - IGRP, 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, E - EGP        i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default        U - per-user static route, o - ODR, P - periodic downloaded static route        T - traffic engineered route Gateway of last resort is not set      172.17.0.0/24 is subnetted, 2 subnets C       172.17.1.0 is directly connected, Ethernet0  D       172.17.2.0 [90/409600] via 172.17.1.2, Ethernet0  10.0.0.0/30 is subnetted, 2 subnets B       10.1.2.0 [20/0] via 10.1.1.2 C       10.1.1.0 is directly connected, Serial0 
Troubleshooting
Step 1. Verify that the BGP neighbors are in the Established state using the show ip bgp neighbors command.

If the neighbor relationship is not in the Established state, see section 8-23.

Step 2. Before using the backdoor option, use the show ip bgp command to ensure that the route you intend to modify is in the BGP table. For example, on Router A, verify a BGP entry for network 172.17.2.0:

 rtrA#  show ip bgp  BGP table version is 43, local router ID is 192.16.1.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete    Network          Next Hop            Metric LocPrf Weight Path *> 10.1.1.0/30      10.1.1.2                 0             0 3 i *> 10.1.2.0/30      10.1.1.2                 0             0 3 i *> 172.17.2.0/24    10.1.1.2                               0 3 2 I 
Step 3. If the network is in the BGP table, the backdoor option will work as described.

 <  Free Open Study  >  


Cisco[r] BGP-4 Command and Configuration Handbook
Cisco BGP-4 Command and Configuration Handbook
ISBN: 1587055732
EAN: 2147483647
Year: 2001
Pages: 300

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net