hasitha257 wrote: » | R1 R2 192.168.1.0/24 | R1 and R2 have EBGP running. R2 has 192.x.x.x attached to its LAN interface. R1 is learning the prefix from R2. will R1 advertise the prefix back to R2 ?
hasitha257 wrote: » thanks guys. I was under impression that R1 will send updates to R2 anyway and R2 will drop the update when it sees its own AS in the AS Path. Makes sense for R1 not to advertise prefix to R2.
Forsaken_GA wrote: » It depends on the implementation of BGP. It makes sense to not send updates that are just going to get dropped, as it's a waste of bandwidth and processing power, but if you decided to peer with someone who's implementation didn't play nice, your side will make sure there's no routing loop.
APA wrote: » +1 But to be honest I'm not aware of many NOS' that walk the BGP table to detect AS LOOPs before forming updates........
APA wrote: » Perfect examples of why they shouldn't is MPLS VPNs for instance that use eBGP peering between CE and PE..... with the same AS used for all CE's in a specific MPLS VPN domain.
networker050184 wrote: » As-override is what would be used to get around that. In the OPs example though, the router isn't going to send the update right back from where it was received.
APA wrote: » Not necessarily... you can use 'as-override' or 'allowas-in' it really depends on what the engineer chooses at that point in time as they achieve the same thing.... there are pro's and con's to both choices..... MPLS and VPN architectures goes through both options in great depth... Yeah I was using an example of why the updates shouldn't be dropped by the announcing router..... there is an interesting document by Geoff Huston somewhere out there which shows the process. I had a dig through RFC1771 - it states that the update error message subcode 7 is used for 'AS Routing Loops' detected. Thus an update error message subcode of 7 would only be sent by the receiving peer, who received the update which contains the AS routing loop. You've got me wondering now networker, going to get some debugs happening with different IOS code and see whether IOS differs from this and performs a walk before announcing updates with loops to a peer.
deth1k wrote: » Normally ISPs would use "as-override" on the PEs to avoid any issues in case of unmanaged CE routers (or managed for that matter). Allowas-in has to be done on CE router since it be the one rejecting the route from PE seeing its own ASN in the path. Therefore "as-override" feature is more preferred and widely used.