Lab 3: Configuring Complex Route Maps and Using TagsPart II
Lab Walkthrough
Configure the Frame Relay switch and attach the three routers in a back-to-back fashion to the frame switch. Use V.35 cables to connect the routers. Create the four Ethernet LANs by the use of switches or hubs, as illustrated in Figure 2-11.
After the physical connections are complete, assign IP addresses to all LAN and WAN interfaces as depicted in Figure 2-11. Configure a Frame Relay point-to-point network between the gamenet and wisconsin_x routers and between the gamenet and california_x routers. Use the data-link connection identifiers (DLCIs) from the diagram. Example 2-36 lists the Frame Relay configuration of the gamenet, wisonsin_x, and california_x routers.
Example 2-36 Frame Relay Configurations for gamenet, wisonsin_x and california_x
hostname gamenet ! interface Serial0 no ip address no ip directed-broadcast encapsulation frame-relay no ip mroute-cache frame-relay lmi-type cisco ! interface Serial0.1 point-to-point ip address 192.168.1.5 255.255.255.252 no ip directed-broadcast frame-relay interface-dlci 102 ! interface Serial0.2 point-to-point ip address 192.168.1.9 255.255.255.252 no ip directed-broadcast frame-relay interface-dlci 302 hostname wisconsin_x ! interface Serial1/0 no ip address encapsulation frame-relay frame-relay lmi-type cisco ! interface Serial1/0.1 point-to-point ip address 192.168.1.6 255.255.255.252 frame-relay interface-dlci 101 --------------------------------------------------- hostname california_x ! interface Serial0/0 no ip address no ip directed-broadcast encapsulation frame-relay ! interface Serial0/0.1 point-to-point ip address 192.168.1.10 255.255.255.252 frame-relay interface-dlci 206
After configuring all the LAN and WAN interfaces, assign IP addresses and verify local connectivity. All routers should be able to ping their adjacent routers. For instance, unreal, wisconsin_x, and halo should all be able to ping the others' Ethernet address. When local connectivity is verified, you can begin to configure routing protocols.
Before attempting to control routing updates and writing route maps, confirm that you have IP connectivity across the network, redistributing all routes freely without filters. By so confirming, you can avoid troubleshooting route maps when the problem may be related to route redistribution or other problems with the routing protocols.
Begin by configuring the EIGRP domain between the wisconsin_x, unreal, and halo routers. The configuration of EIGRP on these three routers is rather straightforward. On the wisconsin_x router, you need a network statement and a default-metric because you need to redistribute OSPF into EIGRP. Example 2-37 lists the EIGRP configuration of the wisconsin_x router.
Example 2-37 EIGRP Configuration for wisonsin_x
hostname wisconsin_x ! router eigrp 2002 redistribute ospf 2002 network 192.168.64.0 default-metric 1000 100 254 1 1500 no auto-summary
The EIGRP configuration on the unreal and halo routers will be identical. In Example 2-38, the EIGRP configuration demonstrates the two ways to configure the network for EIGRP. In Cisco IOS Software Release 12.1, EIGRP supports a wildcard mask with the network statement. Network 172.16.11.0 is using this method of configuration, and this example is following the standard way to configure EIGRP for the 192 networks. This is done purely for educational proposes.
Example 2-38 EIGRP Configuration of the unreal and halo Routers
! hostname unreal ! router eigrp 2002 network 172.16.11.0 0.0.0.255 network 192.168.64.0 no auto-summary eigrp log-neighbor-changes !
hostname halo ! router eigrp 2002 network 172.16.6.0 0.0.0.255 network 192.168.64.0 no auto-summary eigrp log-neighbor-changes
Then you configure OSPF and EIGRP on the gamenet router. The autonomous system ID used for EIGRP is 65001. The only interface sending EIGRP updates is interface s0.2, 192.168.1.9. The interface S0.1 is in OSPF area 2, and interface E0 is in OSPF area 0. Example 2-39 lists the OSPF and EIGRP configuration on the gamenet router. At this time, no route maps have been configured on any routers.
Example 2-39 EIGRP and OSPF Configuration of gamenet
hostname gamenet ! router eigrp 65001 redistribute ospf 2002 passive-interface Ethernet0 passive-interface Serial0.1 network 192.168.1.0 default-metric 1000 100 254 1 1500 no auto-summary ! router ospf 2002 redistribute eigrp 65001 subnets network 192.168.1.5 0.0.0.0 area 2 network 192.168.5.0 0.0.0.255 area 0 default-metric 100 !
The california_x router will be configured for EIGRP with an autonomous system ID of 65001. Example 2-40 lists the EIGRP configuration of the california_x router.
Example 2-40 EIGRP Configuration of the california_x Router
hostname california_x ! router eigrp 65001 network 10.0.0.0 network 192.168.1.0 no auto-summary !
After configuring routing protocols on all the routers, verify IP connectivity with standard ping tests. Be sure the california_x router can ping the gamenet LAN and the halo and unreal routers. Ensure that the loopback networks are advertised and reachable by the unreal and halo routers. Do not attempt to write route maps for filters and such without first verifying IP reachability.
The lab instructions call for you to write a route map to tag the routes from the halo router with a tag of 100, and to tag the routes from the unreal router with a tag of 10. You will also tag route 192.168.64.0/24 with a tag of 100. Therefore, on the wisconsin_x router, you will write a route map to accomplish this during redistribution.
Following the five-step process for configuring route maps, you will begin by first configuring the route map with its associated match and set commands. The route map, called set_tag, will match routes using the match ip route-source command. Routes from the source IP address of 192.168.64.11, the unreal router, will have the tag set to 10. Routes from the source IP address of 192.168.64.6, the halo router, will have the tag set to 100. Routes from this source will also have the metric set to be an OSPF type 1 metric. Example 2-41 lists the syntax for the route map on the wisconsin_x router.
Example 2-41 Route-map set_tag Configuration on the wisconsin_x Router
hostname wisconsin_x ! route-map set_tag permit 10 _First route-map instance match ip route-source 1 _Match ACL 1, 192.168.64.11 set tag 10 _Set tag to 10 ! route-map set_tag permit 20 _Second route-map instance match ip route-source 2 _Match ACL 2, 192.168.64.6 set metric-type type-1 _Set route type to Ext OSPF type-1 set tag 100 _Set tag to 100 ! route-map set_tag permit 30 _Third route-map instance match ip address 10 _Match ACL 10, all other routes set tag 100 _Set tag to 100 !
This now completes Steps 1 through 3 required to configure route maps. Now you apply the route maps. In this model, you apply the route map during redistribution of EIGRP into OSPF on the wisconsin_x router. Example 2-42 lists the complete configuration of the wisconsin_x router, including the ACLs.
Example 2-42 Configuration of the wisconsin_x Router
hostname wisconsin_x ! <<<text omitted>>> ! interface Serial0 no ip address no ip directed-broadcast encapsulation frame-relay no ip mroute-cache frame-relay lmi-type cisco ! interface Serial1/0.1 point-to-point ip address 192.168.1.6 255.255.255.252 frame-relay interface-dlci 101 ! <<<text omitted>>> ! interface Ethernet2/0 ip address 192.168.64.3 255.255.255.0 ! router eigrp 2002 redistribute ospf 2002 _redistribute OSPF network 192.168.64.0 default-metric 1000 100 254 1 1500 _default metric no auto-summary ! router ospf 2002 redistribute eigrp 2002 subnets route-map set_tag _Redistribute and call route-map network 192.168.1.6 0.0.0.0 area 2 default-metric 10 _default metric ! access-list 1 permit 192.168.64.11 _match routes from 192.168.64.11 access-list 2 permit 192.168.64.6 _match routes from 192.168.64.6 access-list 10 permit any _match all other routes/192.168.64.0 ! route-map set_tag permit 10 _route-map "set_tag" begins match ip route-source 1 set tag 10 ! route-map set_tag permit 20 match ip route-source 2 set metric-type type-1 set tag 100 ! route-map set_tag permit 30 match ip address 10 set tag 100
Another requirement of this model is to only redistribute routes, on the gamenet router, into EGIRP 65001 from OSPF with a tag value of 100, and to preserve this tag. You can do this by creating and applying a route map to the redistribution process that matches only routes with a tag of 100. You can use the match tag command for this purpose. Example 2-43 lists the required route map.
Example 2-43 Route Map match_tag100 on the gamenet Router
hostname gamenet ! route-map match_tag100 permit 10 _begin route-map "match_tag100" match tag 100 _match the tag value of 100 set tag 100 _set the tag for EIGRP. !
The route map will be applied during redistribution from OSPF into EIGRP. Before you apply this route map, however, configure the last route map needed in the model.
The last requirement is to also prevent the private LAN, 10.0.101.0/24, from the california_x router, to be redistributed into OSPF from EIGRP on the gamenet router. You can prevent this with a route map applied during redistribution. The route map used to filter this subnet will call an ACL that matches only network 10.0.101.0/24. Example 2-44 lists the route map, called filter_net, used to filter network 10.0.101.0/24 and the associated ACL.
Example 2-44 Route Map filter_net on the gamenet Router
hostname gamenet ! access-list 10 deny 10.0.101.0 0.0.0.255 _deny network 10.0.101.0/24 access-list 10 permit any _Allow other networks to be redistributed route-map filter_net permit 10 _begin route-map "filter_net" match ip address 10 _Match ACL 10
At this time, you can apply both route maps during the redistribution process. Example 2-45 lists the final configuration of the gamenet router.
Example 2-45 Final Configuration of the gamenet Router
hostname gamenet ! interface Ethernet0 ip address 192.168.5.7 255.255.255.0 no ip directed-broadcast media-type 10BaseT ! <<<text omitted>>> ! interface Serial0 no ip address no ip directed-broadcast encapsulation frame-relay no ip mroute-cache frame-relay lmi-type cisco ! interface Serial0.1 point-to-point ip address 192.168.1.5 255.255.255.252 no ip directed-broadcast frame-relay interface-dlci 102 ! interface Serial0.2 point-to-point ip address 192.168.1.9 255.255.255.252 no ip directed-broadcast frame-relay interface-dlci 302 ! router eigrp 65001 redistribute ospf 2002 route-map match_tag100 _call route-map "match_tag100" passive-interface Ethernet0 passive-interface Serial0.1 network 192.168.1.0 default-metric 1000 100 254 1 1500 _set default metric no auto-summary ! router ospf 2002 redistribute eigrp 65001 subnets route-map filter_net _call route-map "filter_net" network 192.168.1.5 0.0.0.0 area 2 network 192.168.5.0 0.0.0.255 area 0 default-metric 100 _set default metric ! access-list 10 deny 10.0.101.0 0.0.0.255 access-list 10 permit any route-map filter_net permit 10 match ip address 10 ! route-map match_tag100 permit 10 match tag 100 set tag 100
To verify the configuration, ensure that the california_x router sees only the routes with a tag of 100, and that it can ping the 172.16.6.0/24 subnet but not the 172.16.11.0/24 subnet. Example 2-46 demonstrates the route table and the ping test on the california_x router.
Example 2-46 Verifying the Configuration on california_x
california_x# 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 Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnets D EX 172.16.6.0 [170/3097600] via 192.168.1.9, 02:47:46, Serial0/0.1 D EX 192.168.64.0/24 [170/3097600] via 192.168.1.9, 02:48:50, Serial0/0.1 10.0.0.0/24 is subnetted, 2 subnets C 10.0.100.0 is directly connected, Ethernet0/0 C 10.0.101.0 is directly connected, Ethernet0/1 192.168.1.0/30 is subnetted, 2 subnets C 192.168.1.8 is directly connected, Serial0/0.1 D 192.168.1.4 [90/2681856] via 192.168.1.9, 02:58:26, Serial0/0.1 california_x# california_x# show ip route 172.16.6.0 Routing entry for 172.16.6.0/24 Known via "eigrp 65001", distance 170, metric 3097600 Tag 100, type external Redistributing via eigrp 65001 Last update from 192.168.1.9 on Serial0/0.1, 02:48:18 ago Routing Descriptor Blocks: * 192.168.1.9, from 192.168.1.9, 02:48:18 ago, via Serial0/0.1 Route metric is 3097600, traffic share count is 1 Total delay is 21000 microseconds, minimum bandwidth is 1000 Kbit Reliability 254/255, minimum MTU 1500 bytes Loading 1/255, Hops 1 california_x# california_x# ping 172.16.6.6 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.6.6, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 32/34/36 ms california_x# ping 172.16.11.11 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.11.11, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) california_x#
To verify that the private subnet, 10.0.101.0/24, is filtered from OSPF, you can view the route table of the wisconsin_x router, as demonstrated in Example 2-47.
Example 2-47 Final Route Table of the wisconsin_x Router
wisconsin_x# 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, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 2 subnets D 172.16.11.0 [90/409600] via 192.168.64.11, 03:00:27, Ethernet2/0 D 172.16.6.0 [90/409600] via 192.168.64.6, 03:00:27, Ethernet2/0 C 192.168.64.0/24 is directly connected, Ethernet2/0 O IA 192.168.5.0/24 [110/58] via 192.168.1.5, 03:01:39, Serial1/0.1 10.0.0.0/24 is subnetted, 1 subnets O E2 10.0.100.0 [110/100] via 192.168.1.5, 03:01:03, Serial1/0.1 192.168.1.0/30 is subnetted, 2 subnets O E2 192.168.1.8 [110/100] via 192.168.1.5, 03:01:44, Serial1/0.1 C 192.168.1.4 is directly connected, Serial1/0.1 wisconsin_x#