We're Sorry, Full Content Access is for Members Only...

If you like to keep on reading, Become a Member Now! Here is Why:

  • Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
  • Try for Just $1. The Best Dollar You've Ever Spent on Your Cisco Career!
  • Full Access to our 606 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)


363 New Members signed up the last 30 days!


100% Satisfaction Guaranteed!
You may cancel your monthly membership at any time.
No Questions Asked!

Tags: ,

Forum Replies

  1. Can you confirm if this is my correct reading of this route-map
    Networks from Protocol B ‘Jack’ are untagged until they enter Protocol A where they are Tagged - (The first statement is ignored because they are not Tagged)

    Jack(config)#route-map TAG permit 20
    Jack(config-route-map)#set tag 1 

    When these now Tagged routes hit ‘John’ Still in Protocol A they are denied from re-entering Protocol B via the First statement.

     route-map TAG deny 10
        John(config-route-map)#match tag 1

    But as you say the route-map has to deny the Tagged routes first or it will allow all routes that is why the deny comes before the permit?

  2. Hello Rene,

    I have intlo0 with ip address of

    I have access-list 1 permit and route map route-map TST permit
    route-map TST
    set tag 222

    match ip address 1
    set tag 111

    and redistribute into ospf from eigrp

    redistribute eigrp 100 subnets route-map TST

    but at the destination router I only see tag 222 for the prefix instead of 111

    as son as I change the access list wild card mask to the destination router sees the correct tag of 111

    Could you please explain this why with wilcard the correct tag is not shown but with the correct tag is shown?

    Best Regards,

  3. Rouzbeh,
    It looks to me that although your interface address for the loopback is, the actual route corresponding to that interface is /24 not /32. It is the route, not the host address that has tags applied to it. Since the route is not matched by your access-list 1 statement of, your tag is not getting applied.

    Here is another way to test this theory. Change your access-list back to what you had originally (, but change your loopback address to (, and see whether you now have the tag 111 for

  4. andrew says:

    Yes, you can do this, but you need to be aware of how the difference in writing a route-map determines whether your conditions are logical ANDs or ORs.

    The following route-map would only act on a route that has all of the tags 10, 20, and 30

    route-map TAG deny 10
     match tag 10
     match tag 20
     match tag 30

    Whereas, the following route-map would act on a route that has any of the tags 10, 20 or 30

    route-map TAG deny 10
     match tag 10 20 30
  5. Hi Rene,
    Please please help me out regarding redistribution. when redistributing mutually between ospf and bgp by tagging and i m getting an error

    % “TAG1” used as redistribute ospf into bgp route-map, set tag not supported"

    route-map TAG1 deny 10
    match tag 1
    route-map TAG1 permit 20
    set tag 1

    according to the topology, I have to redistribute mutually bet OSPF and BGP at R3 and R4. I have to advertise from R3 and R4 towards R1 and R2. simple redistribution shows as “OE2” route in OSPF domain. but it should be “O” route for OSPF domain.
    Also, need to redistribute mutually at R5 (Betw OSPF and BGP) and R6 (Betw EIGRP and BGP). Kindly give an idea how to do the redistribution so that no loop occurs.
    Not clear how to prevent the redistributed route from bgp to ospf back to bgp again by ospf redistribution in bgp.
    Your prompt reply highly appreciated regarding this issue.

21 more replies! Ask a question or join the discussion by visiting our Community Forum