Please Refer to lab Configure route-map tag route filtering EIGRP.
routing-concepts.redistribute.tag.static.3rt.static.ospf.b9c9d4d4 - Topology Description: Redistribute static route with tag - Topology ID: ''b9c9d4d4-f4ae-492f-bef9-d1c351fd1faa'' - Design and Technology: - PBR - route-map - Routing Protocol - static - OSPF - 3 routers - 0 servers - Remarks: N/A ### Links tagging to route [PG1X WIKI] https://pg1x.com/tech:network:cisco:routing:tagging:tagging
configure terminal ! ip route 10.2.3.0 255.255.255.0 10.1.2.2 ip route 192.168.1.3 255.255.255.255 10.1.2.2 ! end
configure terminal ! ip route 172.16.1.0 255.255.255.0 10.1.2.1 ip route 172.16.2.0 255.255.255.0 10.1.2.1 ip route 172.16.3.0 255.255.255.0 10.1.2.1 ip route 172.16.4.0 255.255.255.0 10.1.2.1 ip route 172.16.5.0 255.255.255.0 10.1.2.1 ! router ospf 1 redistribute connected subnets redistribute static subnets ! end
configure terminal ! ip route 10.2.3.0 255.255.255.0 10.1.2.2 ip route 192.168.1.3 255.255.255.255 10.1.2.2 ! end
configure terminal ! ip route 172.16.1.0 255.255.255.0 10.1.2.1 tag 1 ip route 172.16.2.0 255.255.255.0 10.1.2.1 ip route 172.16.3.0 255.255.255.0 10.1.2.1 tag 1 ip route 172.16.4.0 255.255.255.0 10.1.2.1 ip route 172.16.5.0 255.255.255.0 10.1.2.1 tag 1 ! route-map RMAP_REDISTRIBUTE_STATIC_TO_OSPF_WITH_TAG permit 10 match tag 1 ! router ospf 1 redistribute static subnets route-map RMAP_REDISTRIBUTE_STATIC_TO_OSPF_WITH_TAG ! end
show ip route static show ip route 172.16.1.0 show ip route 172.16.2.0 show ip route 172.16.3.0 show ip route 172.16.4.0 show ip route 172.16.5.0 ping 172.16.1.1 ping 172.16.2.1 ping 172.16.3.1 ping 172.16.4.1 ping 172.16.5.1
show ip route ospf show ip route 172.16.1.0 show ip route 172.16.2.0 show ip route 172.16.3.0 show ip route 172.16.4.0 show ip route 172.16.5.0 ping 172.16.1.1 ping 172.16.2.1 ping 172.16.3.1 ping 172.16.4.1 ping 172.16.5.1