Is there a way to advertise a PE/CE network link into a VPN only if the CE has established a BGP peering relationship with the PE? I would like the PE to handle this rather than rely on the CEs to originate the route.
Here is what I've found so far:
PE with mulitple BGP Peers and vrf interfaces configured for a specific VPN. Interfaces are either Frame-relay or Ethernet so PE interface is always up/up.
If neither the PE or CE routers originate the PE/CE link then the link is not advertised to any other peers = BAD.
If the PE originates with either network statement or redistribute connected then all PE/CE links are advertised even if there is no CE yet configured on some of the interfaces.
My goal is to only originate the PE/CE network from the PE to other VPN routers if the PE/CE peer is established. Otherwise the network should not appear in the BGP/RT.
Hope that makes sense.
the simplest approach would be to announce networks through the CE. If this is not feasible (why?), then one other feature could help you: "Configuring Reliable Static Routing Backup Using Object Tracking: Static Routing Examples"
Based upon connectivity (f.e. ping) you can insert or remove a static route from the IP routing table. This combined with a BGP network statement or redistributio might help you. Be aware however, that the PE-CE network is directly connected and a static route with exact the same network would not be inserted into the routing table. Instead you could use host routes.
You further need to check, whether object tracking is supported on your PEs.
Hope this helps! Please use the rating system.