<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texto de bal\00E3o Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EstiloDeEmail17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EstiloDeEmail18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.TextodebaloChar
{mso-style-name:"Texto de bal\00E3o Char";
mso-style-priority:99;
mso-style-link:"Texto de bal\00E3o";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Kevin,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">This example:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">*A:T>config>router>policy-options# community "PE1_CE" members "target:65002|65003&."<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">*A:T>config>router>policy-options#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Cheers,<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#1F497D"><img width="276" height="26" id="Picture_x0020_1" src="cid:image001.jpg@01CFEEEA.944FA800"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#1F497D">Hugo Roger Bernaola Pena<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#6639B7">ALCATEL-LUCENT<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#6639B7">CALA RBC – IPCC Consulting Engineer<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#6639B7">AV. MARGINAL DIREITA ANCHIETA 400<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#6639B7">Tel. : 55 11 2947-8956<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#6639B7">Cel. : 55 11 98181-0358<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#6639B7">hugo_roger_bernaola.pena@alcatel-lucent.com<o:p></o:p></span></b></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De:</span></b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> alcatel-nsp [mailto:alcatel-nsp-bounces@puck.nether.net]
<b>Em nome de </b>Kevin Billings<br>
<b>Enviada em:</b> quinta-feira, 23 de outubro de 2014 17:31<br>
<b>Para:</b> alcatel-nsp@puck.nether.net<br>
<b>Assunto:</b> [alcatel-nsp] Filtering BGP routes using Extended communities<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have a community set for a customer that is in the format target:ASN:x x being a range from 1-151. I need to setup a BGP export filter that will match all of the communities and only export these routes. If I use standard communities
ASN:x then I can use this format and it works:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">community "CUST-EXPORT" members "^ASN:(.*)$"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This does not work for extended communities.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Does anyone know how to make this work for extended communities? Reading the ALU docs I should be able to reg-ex for these types of communities, but have not been successful.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have tried these formats but I get invalid format:<o:p></o:p></p>
<p class="MsoNormal">community "CUST-EXPORT" members target:"^ASN:(.*)$"<o:p></o:p></p>
<p class="MsoNormal">community "CUST-EXPORT" members target:"ASN:*"<o:p></o:p></p>
<p class="MsoNormal">community "CUST-EXPORT" members “target:ASN:*"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>