03-10-2014 11:48 AM
Hi everyone,
In a MPLS VPN with a PE and a CE in a site A,
How can I allow the access of only certain PCs in the site, which can access at the CE,to send traffic to the PE ?
Example, Here we have the prefixes p2 p4 and p5 at site2. p2 is both in VPN v1 and v2. p4 is only in VPN v1. p5 is not part of anything.
How can I configure a cisco CE (in this case the CE2) to discipline the access to the PE ? How can I say "p2 can talk with p1 and p3" and " p4 can talk only with p1 at site 1" and " p5 cannot communicate with anyone ?" How can CE2 discriminate the access at PE just looking at the prefix who made the request ? I need the esact Cisco configuration for This Network !!! thank you !!
03-10-2014 02:10 PM
Hello,
Okey not sure I totally understand the question but from what I read you could be asking 2 things regarding Filtering prefixes reaching the CE:
1)Filtering prefixes at the PE:
This can easily be done with Import-Maps
2) Filtering at the CE:
Does not have knowledge about the MPLS network so nothing related with MPLS will be done here, instead you will rely on the Routing-Protocol used in order to filter prefixes.
Makes sense?
Regards,
Jcarvaja
03-10-2014 03:46 PM
Dear Julio,
so at the CE nothing can be done to deny the access from prefix p5 to talk in any vpns, and from p4 to say that it should only talk in the VPN v1 and NOT in the vpn v2 ?
Could you write me the esact configuration of CE( which should run OSPF only ? or BGP?) and of the PE looking at this picture ?? how can I Write this configuration esactly step by step in Cisco language??
Thank you very much,
Sincerely
lele
03-10-2014 03:57 PM
Hello,
Well I mean if you are talking about Prefix Filtering then the way to go would be that one at the IGP or BGP level.
So let's say for OSPF
You want only to install and advertise to your internal routers the prefix 10.0.0.0/24
Config should be something like
access-list 10 permit 10.0.0.0 0.0.0.255
route-map BGP_To_OSPF
match ip address 10
router ospf # (Process-ID)
redistribute bgp # (Process-ID) subnets route-map BGP_To_OSPF
That's it, Whatever does not is included in the route-map will not be send to the OSPF database.
Regards,
Jcarvaja
03-10-2014 04:09 PM
dear julio,
thank you for your answer.
But I need :
the ESACT configuration on that Lab shown, on both CE and PE to say:
1)p5(site s2) cannot talk in any VPNs
2)p4(site s2) can talk ONLY inin VPN v1
3) p2(site s2) can talk both in VPN v1 and v2.
thank you very much,
Sincerely
03-10-2014 08:25 PM
03-11-2014 04:19 AM
Hello Jcarvaja,
No, you said how to not annouce the prefix in BGP annouce(using route-map) that is different from what I asked...
I mean, I need to say :
HOW to AVOID that p5(site s2) could talk in any VPNs. and to say that p4(site s2) can talk ONLY inin VPN v1.
This is what I asked!
Route maps are used only to filter some prefixes in the BGP advertisment which is completly different, can you see ?
03-11-2014 08:44 AM
Hello,
Where did I talk about touching the BGP configuration??
access-list 10 permit 10.0.0.0 0.0.0.255
route-map BGP_To_OSPF
match ip address 10
router ospf # (Process-ID)
redistribute bgp # (Process-ID) subnets route-map BGP_To_OSPF
All the configuration is done on the IGP, no need to play with BGP.
The whole point is to filter what the IGP routers will learn.
And of course if you want it to do it at the PE level you can use the VRF Import-Map Feature.
Makes sense?
Regards,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide