zrcheng wrote: » Prepend 64512 64512 to all routes received from P1. Ensure that transit providers do not receive these AS numbers.
zoidberg wrote: » "1492 .*" would prolly be better. anything coming from p1 should have 1492 at the start of the as-path anyways. depending on which level you placed your policy, the leading .* could catch 1492 routes coming from other peers or transits and then subsequently prepend them as well.
zoidberg wrote: » "1492 .*" would prolly be better. anything coming from p1 should have 1492 at the start of the as-path anyways. depending on which level you placed your policy, the leading .* could catch 1492 routes coming from other peers or transits and then subsequently prepend them as well. pretty small risk though as most would apply this directly to the neighbor or group and not the protocol... but you never know. technically, seeing you're prepending everything, you should even be able to get away without the from clause, or use something like from bgp neighbor x.x.x.x. of course, that defeats the purpose of the exercise here in making as-path policies. there's gotta be 80 different ways to do just one thing :P i think it's just a typo in the book, ".* 1492" instead of "1492 .*". i saw some threads a few months back about harry compiling a new errata for the book. not sure where that's at though.
kingcobra.guo wrote: » i think “.* 1492” would be best, p1 may prepend as to some routes(who knows? because we can not view P1 config), and "1492 .*" will not match these routes.
Aldur wrote: » The problem with ".* 1492" is it will only accept routes that start on P1 and will reject routes that are passed through P1. ... A quick and dirty way to work around this would be to use the ".* 1492 .*" which would catch the 1492 AS anywhere in the path. ...