Switching

last person joined: 20 hours ago 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  Purpose of using tag numbers/values in routing table

    Posted 06-14-2016 20:23

    What is the use of using tag values  in routing under EX series switches ?

     How to use tag numbers while implemenation ?

     

    Please provide me any example .

     

    Thanks !!

     

     

     



  • 2.  RE: Purpose of using tag numbers/values in routing table
    Best Answer

     
    Posted 06-15-2016 01:57

    Hi,

     

    Tagging routes can help to ease administration especially if the routes need to be re-exported / re-distributed.

     

    It also comes handy when you want to manipulate dynamic routes [Import / Export] etc.

     

    Example:

    routing-options {
    	static {
    		route 10.10.10.0/24 {
    			next-hop 192.168.1.1;
    			tag 110;
    		}
    		route 10.20.20.0/24 {
    			next-hop 192.168.2.1;
    			tag 90;
    		}
    	}
    }
    policy-options {
    	policy-statement EXPORT-BGP-LOCAL-PREF {
    		term PREF-110 {
    			from {
    				protocol static;
    				tag 110;
    			}
    			then {
    				local-preference 110;
    				accept;
    			}
    		}
    		term PREF-90 {
    			from {
    				protocol static;
    				tag 90;
    			}
    			then {
    				local-preference 90;
    				accept;
    			}
    		}
    	}
    }

    Cheers,

    Ashvin