PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:cisco:routing:tagging:tagging

Cisco: tagging to route

distribute-list route-map tagging foundation

Topology Redistribute static route with tag b9c9d4d4-f4ae-492f-bef9-d1c351fd1faa

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

Base Configuration

Common Configuration Snippet

R1

R2

R3

Redistribute static route with tag

without tag

  • R1
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
  • R2
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

with tag

  • R1
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
  • R2
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

Verification

  • R2
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
  • R3
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

R1 Console Log

R2 Console Log

R3 Console Log

References

tech/network/cisco/routing/tagging/tagging.txt · Last modified: 2020/08/24 15:19 by wnoguchi