<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Erik,<br>
<br>
I was trying single "community set" statement like<br>
<br>
<tt><span style="font-size: 10pt;">community set "3254:65535
3254:9100 3254:9111"</span></tt><br>
<br>
with the same result. Since I want to remove all incoming
communities, I use "set" to rewrite entire information.<br>
<br>
Actually, this works - because you've seen that particular network
prefix has specific communities. The question is why some of them
can't be used with "show bgp route comm" command.<br>
<br>
On 7/18/2011 1:49 PM, Erik Bais wrote:
<blockquote
cite="mid:3D7F7C92CA8EEF458B7AC7BACD7D619102F193C696C1@EXVS002.netsourcing.lan"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
tt
{mso-style-priority:99;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
p.avgcert, li.avgcert, div.avgcert
{mso-style-name:avgcert;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">Hi Doka, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">Is there a specific reason why you are using the
following syntax for the BGP policy to add the communities
? <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><tt><span style="font-size: 10pt;">
community set "3254:65535 3254:9100";</span></tt><span
style="font-size: 10pt; font-family: "Courier
New";"><br>
<tt> community add "3524:9111";</tt></span><span
style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">I’m using the following in my policies : <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">entry entry-5 { <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"> If { <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"> nlri 123.123.128.0/21 exact ;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"> } <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"> then { <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"> med set 0;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"> local-preference 250;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"> community add "51088:6543" ;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"> community add "51088:65001" ;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"> permit ; <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"> } <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">And that works on 12.4.2 , 12.4.3, 12.5.4. (and
is currently broken in the 12.6.x beta but expected to be
fixed before the 12.6 GA version.) <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">I’m also running X480’s . <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">Erik Bais <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<div style="border-width: medium medium medium 1.5pt;
border-style: none none none solid; border-color:
-moz-use-text-color -moz-use-text-color -moz-use-text-color
blue; padding: 0in 0in 0in 4pt;">
<div>
<div style="border-right: medium none; border-width: 1pt
medium medium; border-style: solid none none;
border-color: rgb(181, 196, 223) -moz-use-text-color
-moz-use-text-color; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;
font-family:
"Tahoma","sans-serif"; color:
windowtext;">From:</span></b><span style="font-size:
10pt; font-family:
"Tahoma","sans-serif"; color:
windowtext;"> <a class="moz-txt-link-abbreviated" href="mailto:extreme-nsp-bounces@puck.nether.net">extreme-nsp-bounces@puck.nether.net</a>
[<a class="moz-txt-link-freetext" href="mailto:extreme-nsp-bounces@puck.nether.net">mailto:extreme-nsp-bounces@puck.nether.net</a>] <b>On
Behalf Of </b>Volodymyr Litovka<br>
<b>Sent:</b> Monday, July 18, 2011 12:35 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:extreme-nsp@puck.nether.net">extreme-nsp@puck.nether.net</a><br>
<b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:yokodzun@yokodzun.kiev.ua">yokodzun@yokodzun.kiev.ua</a><br>
<b>Subject:</b> [e-nsp] ExOS: "sh bgp routes
community" bug?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi,<br>
<br>
when looking into detailed network info, it shows right
communities here:<br>
<br>
<tt><u><span style="font-size: 10pt;">eel.35 # sh bgp routes
detail network 31.41.120.0/21</span></u></tt><span
style="font-size: 10pt; font-family: "Courier
New";"><br>
<br>
<tt>Feasible Routes</tt><br>
<tt>---------------</tt><br>
<tt>Route: 31.41.120.0/21, Peer 213.133.164.149, BEST,
Active</tt><br>
<tt>Origin IGP, Next-Hop 213.133.164.149, LPref 95, MED
100</tt><br>
<tt>Weight 1,</tt><br>
<tt>AS-Path: 13249 9002 8744 48485</tt><br>
</span><tt><span style="font-size: 10pt; color: red;">Community:
3254:65535 3254:9100 3524:9111</span></tt><span
style="font-size: 10pt; font-family: "Courier
New";"><br>
</span><br>
but when I'm trying to get all routes with selected
community, I get strange results.<br>
<br>
None for 3254:9111 :<br>
<br>
<tt><u><span style="font-size: 10pt;">eel.36 # show bgp
routes community 3254 : 9111</span></u></tt><u><span
style="font-size: 10pt; font-family: "Courier
New";"><br>
</span></u><span style="font-size: 10pt; font-family:
"Courier New";"><br>
<tt>Feasible Routes</tt><br>
<tt>---------------</tt><br>
<tt>Destination Peer Next-Hop LPref Weight MED AS-Path</tt><br>
<br>
<br>
<tt>Unfeasible Routes</tt><br>
<tt>-----------------</tt><br>
<tt>Destination Peer Next-Hop LPref Weight MED AS-Path</tt><br>
</span><br>
while everything is ok for 3254:9100:<br>
<br>
<tt><u><span style="font-size: 10pt;">eel.60 # show bgp
routes community 3254 : 9100</span></u></tt><span
style="font-size: 10pt; font-family: "Courier
New";"><br>
<br>
<tt>Feasible Routes</tt><br>
<tt>---------------</tt><br>
<tt> Destination Peer Next-Hop
LPref Weight MED AS-Path</tt><br>
<tt>*>i 1.0.4.0/22 194.44.35.213
194.44.35.213 90 1 3255 6939 7545 7545
7545 7545 7545 56203</tt><br>
<tt> i 1.0.4.0/22 213.133.164.149 213.133.164.149
85 1 100 13249 6939 7545 7545 7545 7545 7545
56203</tt><br>
<tt>*>i 1.5.0.0/16 194.44.35.213
194.44.35.213 90 1 3255 6939 4725</tt><br>
<tt> i 1.5.0.0/16 213.133.164.149 213.133.164.149
85 1 100 13249 6939 4725</tt><br>
<tt>*>i 1.8.1.0/24 194.44.35.213
194.44.35.213 90 1 3255 3549 6453 4641
38345</tt><br>
<tt> i 1.8.1.0/24 213.133.164.149 213.133.164.149
85 1 100 13249 6453 4641 38345</tt><br>
<tt>*>i 1.8.8.0/24 194.44.35.213
194.44.35.213 90 1 3255 3549 6453 4641
38345</tt><br>
<tt> i 1.8.8.0/24 213.133.164.149 213.133.164.149
85 1 100 13249 6453 4641 38345</tt></span><br>
<br>
Everything rest besides "show" seems to be working.<br>
<br>
Incoming policy map is:<br>
<br>
<tt><span style="font-size: 10pt;">entry peer-in-50 {</span></tt><span
style="font-size: 10pt; font-family: "Courier
New";"><br>
<tt>if match any {</tt><br>
<tt> as-path "_NNNNN_" ;</tt><br>
<tt> community "XXXX:YYYYY" ;</tt><br>
<tt> }</tt><br>
<tt>then {</tt><br>
<tt> local-preference 95;</tt><br>
<tt> community set "3254:65535 3254:9100";</tt><br>
<tt> community add "3524:9111";</tt><br>
<tt> permit;</tt><br>
<tt> }</tt><br>
<tt>}</tt><br>
</span><br>
Is it bug or feature?<br>
<br>
Summit x480<br>
Image : ExtremeXOS version 12.5.1.6 v1251b6 by
release-manager<br>
on Tue Nov 23 09:49:14 PST 2010<br>
<br>
Thank you<br>
<br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>/doka<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Vision without Execution is Hallucination. -- Thomas Edison.<o:p></o:p></pre>
<div class="MsoNormal" style="text-align: center;"
align="center">
<hr style="color: rgb(160, 160, 160);" noshade="noshade"
size="1" align="center" width="100%"></div>
<p class="avgcert">No virus found in this message.<br>
Checked by AVG - <a moz-do-not-send="true"
href="http://www.avg.com">www.avg.com</a><br>
Version: 10.0.1390 / Virus Database: 1516/3771 - Release
Date: 07/17/11<o:p></o:p></p>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
/doka
Vision without Execution is Hallucination. -- Thomas Edison.</pre>
</body>
</html>