< Free Open Study > |
9-4 network ip-address mask network-mask backdoorSyntax Description:
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 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 DistanceIn 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
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. VerificationBy 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
|
< Free Open Study > |