Quantcast
Channel: All Ethernet Switching posts
Viewing all articles
Browse latest Browse all 10307

Re: Purpose of using tag numbers/values in routing table

$
0
0

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

 


Viewing all articles
Browse latest Browse all 10307

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>