Route-map analysis

Source: Internet
Author: User

Route-map analysis Route-map can control route entries and control routes that are not learned. As shown in: R1 (config) # int e0/0R1 (config-if) # ip add 12.12.1 255.255.0r1 (config-if) # no sh has four loose 1.1.1.12.2.2.23.3.3.34.4.4.4 R2 (config) # int e0/0R2 (config-if) # ip add 12.12.12.2 255.255.255.0R2 (config-if) # no shR2 (config-if) # int e0/1R2 (config-if) # ip add 23.23.23.1 255.255.255.0R2 (config-if) # no sh R3 (config) # int e0/1R3 (config-if) # ip add 23.23.23.2 255.255.255.0R3 (config-if) # no sh and then run ripR1 (config) on r1 )# Router ripR1 (config-router) # no auR1 (config-router) # ver 2R1 (config-router) # net 12.12.0r1 (config-router) # net 1.1.1.0R1 (config-router) # net 2.2.2.0R1 (config-router) # net 3.3.3.0R1 (config-router) # Run ospfR3 (config) # router ospf 111R3 (config-router) on net 4.4.4.0 R3) # net 23.23.23.0 0.0.0.255 area 0 R2 R2 (config) # router ripR2 (config-router) # no auR2 (config-router) # ver 2R2 (config-router) # net 12.12.12.0 R2 (con Fig) # router ospf 111R2 (config-router) # net 23.23.23.0 0.0.0.255 area 0R2 (config-router) # ex then run redistribution r2 (config) on R2) # router ospf 111R2 (config-router) # redistribute rip subnets R2 (config) # router ripR2 (config-router) # redistribute ospf 111 metric 1 the key to our experiment is the control of route entries implemented by route-map. For example, we only want r3 to learn 1.1.1.1 and 2.2.2.2. The steps are as follows: Write aclR2 (config) first) # access-list 1 permit 1.1.1.0 0.0.255r2 (config) # access-list 1 permit 2.2.2.0 0.0.0.255 only allows 1 and 2 network segments R2 (config) # route-map AAA permit 10/route-map is named AAA permit 10, if the conditions specified after the following match command are true, the action is allowed. R2 (config-route-map) # match ip address 1/1 refers to the acl keyword R2 (config) # router ospf 111R2 (config-router) # redistribute rip metric 10 route-map AAA/When the route is deprecated, use the configured route-map to filter the re-published route. In this case, show r3 # show ip routeCodes: C-connected, S-static, R-RIP, M-mobile, B-BGP D-VPN, EX-VPN 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, su-IS summary, L1-IS level-1, l2-IS level-2 ia-IS inter area, *-candidate default, U-per-user Static route o-ODR, P-periodic downloaded static route Gateway of last resort is not set 1.0.0.0/24 is subnetted, 1 subnetsO E2 1.1.1.0 [110/10] via 23.23.23.1, 00:22:50, ethernet0/1 2.0.0.0/24 is subnetted, 1 subnetsO E2 2.2.2.0 [110/10] via 23.23.23.1, 00:22:50, Ethernet0/1 23.0.0.0/24 is subnetted, 1 subnetsC 23.23.23.23.0 is directly connected, ethernet0/1 only has 1 and 2 network segments.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.