ignore my previous post. been a lab rat for too long.
""Brian Carroll"" wrote in message news:[EMAIL PROTECTED] > S! ALL! > > The desired result is to allow only the default route to be sent to a > neighbor in AS2. > > First way I did it: > > router bgp 1 > nei 192.168.100.10 remote-as 2 > nei 192.168.100.10 default-originate > nei 192.168.100.10 distribute-list 1 out > > access-list 1 permit 0.0.0.0 > access-list 1 deny any > > > Second Way: Note that AS1 is a transit AS that has NO network statements. > Therefore the only update with a path of ^$ would be the path created by the > "nei 192.168.100.2 default-originate" statement. > > router bgp 1 > nei 192.168.100.2 remote-as 2 > nei 192.168.100.2 default-originate > nei 192.168.100.2 route-map default-only out > > ip as-path access-list 1 permit ^$ > > route-map default-only permit 10 > match as-path 1 > > I do see that the first way would be less prone (actaully..fault proof ) to > errors going forward, i.e. were AS1 to originate another network it would > match as-path list 1. Still, for the situation as stated, either of these > ways of doing it meets the desired result, yes? > > Thanks! > > Brian Carroll > CCNP, CCSE, MCSE, CCA > Director of Professional Services > Air Net Link LLC. > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.408 / Virus Database: 233 - Release Date: 11/8/02 Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=71613&t=66462 -------------------------------------------------- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]

