Using route tags to control route filtering

Source: Internet
Author: User


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/76/6E/wKioL1ZTHoSTYJNVAACd-hF_Sag358.png "title=" Qq20151123220919.png "alt=" Wkiol1zthostyjnvaacd-hf_sag358.png "/>


Experimental Steps and Requirements:

1. Configure the IP addresses of each router and use the ping command to confirm connectivity

2. Configure R2,R3 routing bidirectional re-release

R2 (config) #router OSPF 10

R2 (config-router) #redistribute EIGRP subnets

R2 (config) #router EIGRP 10

R2 (config-router) #redistribute OSPF metric 10000 100 255 1 1500

R3 (config) #router rip

R3 (config-router) #redistribute OSPF 3 metric

R3 (config) #router OSPF 10

R3 (config-router) #redistribute RIP subnets


3. Check The routing table of the R4 to confirm the routing re-release

R4#sho IP route

Gateway of LastResort is not set

10.0.0.0/30 is subnetted, 2 subnets

R 10.1.1.0 [120/3] via 172.16.1.1,00:00:13, serial1/0 by re-releasing the learned non-

R 10.1.1.4 [120/3] via 172.16.1.1,00:00:13, serial1/0 RIP Zone Routing

172.16.0.0/16 is variably subnetted, 2subnets, 2 masks

C 172.16.1.0/24 is directly connected,serial1/0

L 172.16.1.2/32 is directly connected,serial1/0

R 192.168.0.0/24 [120/3] via 172.16.1.1,00:00:13, serial1/0

R 192.168.1.0/24 [120/3] via 172.16.1.1,00:00:13, serial1/0

R 192.168.2.0/24 [120/3] via 172.16.1.1,00:00:13, serial1/0

R 192.168.3.0/24 [120/3] via 172.16.1.1,00:00:13, serial1/0


4. According to topology configuration, 192.168.0.0/24 and 192.168.2.0/24 or route-map< Span style= "font-size:11px;font-family: ' Microsoft Jacob Black ', Sans-serif;" > configuration can be either real   current route filtering, or route filtering can be implemented by configuring route tags.

5. filtering using route markers is divided into two steps: one . server-side router configuration flags two . client routers are filtered based on tags

6. Configure allocation route flags on R2

R2 (config) #access-list 1 Permit 192.168.0.0 0.0.0.255 use ACLs to Mark

R2 (config) #access-list 1 Permit 192.168.2.0 0.0.0.255 Route

R2 (config) #route-map Settag Permit 10

R2 (config-route-map) #match IP address 1

R2 (config-route-map) #set tag 1 to match ACL 1 The route entry assignment is marked as 1

R2 (Config-route-map) #exit

R2 (config) #route-map Settag Permit 20

R2 (Config-route-map) #exit

R2 (config) #routerospf 10

R2 (config-router) #redistribute EIGRP subnets Route-map Settag

In Route re-release is the call route, which marks the embedding


7. on R3 , configure Route-map to route filtering via tags

R3 (config) #route-map Matchtag deny 10

R3 (config-route-map) #match tag 1 for tags marked as 1 routing, filtering processing

R3 (Config-route-map) #exit

R3 (config) #route-map matchtag Permit unconditional forwarding of other routes

R3 (Config-route-map) #exit

R3 (config) #routerrip

R3 (config-router) #redistribute OSPF metric 3 route-map Matchtag The call route map is filtered when routing is republished.

8. Check The routing table of the R4 to confirm the route filtering

R4#sho IP route

Gateway of LastResort is not set

10.0.0.0/30 is subnetted, 2 subnets

R 10.1.1.0 [120/3] via 172.16.1.1,00:00:16, serial1/0

R 10.1.1.4 [120/3] via 172.16.1.1,00:00:16, serial1/0

172.16.0.0/16 is variably subnetted, 2subnets, 2 masks

C 172.16.1.0/24 is directly connected,serial1/0

L 172.16.1.2/32 is directly connected,serial1/0

R 192.168.1.0/24 [120/3] via 172.16.1.1,00:00:16, serial1/0 R4 The routing table shows the success of routing filtering

R 192.168.3.0/24 [120/3] via 172.16.1.1,00:00:16, serial1/0

9. routing tags can be easily pre-categorized, the client only needs simple matching tags without the need to write a large number of ACLs to identify the route, through this configuration, can effectively maintain network routing updates.


Using route tags to control route filtering

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.