Resend route-map

Source: Internet
Author: User

Resend route-map

Tutorial steps and requirements: 1. Configure the IP addresses of each vro and run the ping command to check the connectivity of the direct ports of each vro. 2. Configure the OSPF and r12002 routing protocols according to the topology, and disable the automatic summary of r12002. 3. Configure route republishing on R2. 4. view the route tables of R1 and R3. R1 # sho ip routeGateway of last resort is not set 172.16.0.0/16 is variably subnetted, 6 subnets, 3 masksO 172.16.255.0/30 [110/128] via 172.16.255.2, 00:00:51, serial1/0C 172.16.255.0/24 is directly connected, Serial1/0C 172.16.1.0/24 is directly connected, Loopback1C 172.16.0.1/32 is directly connected, 255.172.16.2.0/24 is directly connected, loopback2C 172.16.3.0/24 is directly connected, Loopback3O E2192.168.255.0/24 [110/20] via 172.16.255.2, 00:00:52, Serial1/0O E2192.168.0.0/24 [110/20] via 172.16.255.2, 00:00:52, Serial1/0O E2192.168.1.0/24 [110/20] via 172.16.255.2, 00:00:52, serial1/0O E2192.168.2.0/24 [110/20] via 172.16.255.2, 00:00:52, Serial1/0O E2192.168.3.0/24 [110/20] via 172.16.255.2, 00:00:52, serial1/0R3 # sho ip routeGateway of last resort is not set 172.16.0.0/16 Is variably subnetted, 6 subnets, 3 masksR 172.16.255.0/30 [120/3] via192.168.255.2, 00:00:24, Serial1/0R 172.16.255.0/24 [120/3] via192.168.255.2, 00:00:24, serial1/0R 172.16.1.1/32 [120/3] via 192.168.255.2, 00:00:24, Serial1/0R 172.16.0.1/32 [120/3] via 192.168.255.2, 00:00:24, Serial1/0R 172.16.3.1/32 [120/3] via 192.168.255.2, 00:00:24, Serial1/0R 172.16.2.1/32 [120/3] via 192.168.255.2, 00:00:24, Serial1/0C 192.168.255.0/24 is directly connected, Serial1/0C 192.168.0.0/24 is directly connected, Loopback0C 192.168.1.0/24 is directly connected, Loopback1C 192.168.2.0/24 is directly connected, loopback2C 192.168.3.0/24 is directly connected, Loopback35. Configure route filtering on R2 to filter out ospf routes based on topology requirements. The configuration is as follows: R2 (config) # access-list 1 deny 172.16.0.0 0.0.255r2 (config) # access-list 1 deny 172.16.1.0 0.0.0.255R2 (co Nfig) # access-list 1 permit anyR2 (config) # route-map ospftorip permit 10 create a route-map and name it ospftorip. permit 10 indicates, if the conditions specified after the following match command are true, the action is allowed, and hidden conditions are rejected by default at the end. R2 (config-route-map) # match ip address 1 matches the network R2 (config-route-map) specified by acl 1 # exitR2 (config) # router ripR2 (config-router) # redistribute ospf 1 metric 10 route-map ospftorip when the route is re-published, reference the configured route-map to filter resending routes. 6. Check the route of R3 and confirm the route learning: R3 # sho ip routeGateway of last resort is not set 172.16.0.0/16 is variably subnetted, 6 subnets, 3 masksR 172.16.255.0/30 [120/10] via 192.168.255.2, 00:00:19, Serial1/0 filter R3R 172.16.255.0/24 [120/10] via 192.168.255.2, 00:00:19, serial1/0 cannot learn the filtered Route R 172.16.3.1/32 [120/10] via 192.168.255.2, 00:00:19, Serial1/0R 172.16.2.1/32 [120/10] via 192.168.255.2, 00:00:19, serial1/0C 192.168.255.0/24 is directly connected, Serial1/0C 192.168.0.0/24 is directly connected, Loopback0C 192.168.1.0/24 is directly connected, loopback192.168.1c 2.0/24 is directly connected, loopback27. Configure R2 to filter RIP routes: R2 (config) # access-list 2 permit 192.168.2.0 0.0.255r2 (config) # access-list 2 permit 192.168.3.0 0.0.0.255R2 (config) # route-map riptoospf deny 10 here deny 10 is used as the route-map Action keyword R2 (config-route-map) # match ip address 2 Specify the deny condition R2 (config-route-map) # exitR2 (config) # route-map riptoospf permit 20 re-create the route-map with the keyword permit 20 and match all R2 (config-route-map) # exitR2 (config) # router ospf 1R2 (config-router) # redistribute rip metric 20 subnets route-map riptoospf reference when re-publishing 8. view the R1 route table: r1 # sho ip routeGateway of last resort is not set 172.16.0.0/16 is variably subnetted, 6 subnets, 3 masksO 172.16.255.0/30 [110/128] via 172.16.255.2, 00:26:59, serial1/0C 172.16.255.0/24 is directly connected, Serial1/0C 172.16.1.0/24 is directly connected, Loopback1C 172.16.0.1/32 is directly connected, 255.172.16.2.0/24 is directly connected, loopback2C 172.16.3.0/24 is directly connected, Loopback3O E2192.168.255.0/24 [110/20] via 172.16.255.2, 00:27:00, Serial1/0O E2192.168.0.0/24 [110/20] via 172.16.255.2, 00:27:00, content of the route table after Serial1/0 is filtered: O E2192.168.1.0/24 [110/20] via 172.16.255.2, 00:27:00, Serial1/0

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.