05-09-2017 11:14 PM - edited 03-05-2019 08:30 AM
Hi,
I want to perform natting with mpls connection in place. will it be possible ?
Suppose if i have natting in place over my CE router how could we configure the bgp configuration with PE from CE, how does the service provider play a key role in this..
please advise. Connectivity setup image is enclosed.
05-10-2017 02:55 AM
Hi James
For NAT, you need to define ACL to match the traffic which needs to be natted.
As your WAN facing interface to the provider is excluded from NAT ACL, you can run BGP using provider supplied ip subnet.
HTH
Hitesh
05-10-2017 11:00 AM
Hi Hitesh,
Let assume that I have PAT in place and i will be translating the actual ip to a specific pat ip as per the same given below:
ip access-list standard 1
10 permit 10.2.20.0 0.0.0.255
ip nat pool lab 172.16.24.3 172.16.24.3 netmask 255.255.255.252
ip nat inside source list 1 pool lab overload
With above config in place my actual lan pool will get translated to one single ip of 172.16.24.3 for any request that comes from the source lan pool 10.2.20.0/24 and my CE router will have a wan ip which i will configure it as given by the provider.
But as its mpls connection how do i advertise my lan pool and which ip pool or ip do i need to advertise from my CE end so that the PE of the provider will further advertise in their mpls cloud ?
please clarify.
05-10-2017 10:34 PM
Hi there,
There are two ways of doing it.
1. Create a static route for larger subnet towards null0 or with higher AD and redistribute in PE to CE routing protocol
2. Elegant way of doing it is create a new loopback and then advertisement in the routing protocol or redistribute it.
HTH
Hitesh
Please rate useful posts.
05-11-2017 10:42 PM
Hi Hitesh,
I am sorry I could not get to understand, can you help to represent the same with the ip pool and nat configuration that i have provided based on the image that is shared..
Thanks in advance..
James..
05-15-2017 04:38 AM
ip access-list standard 1
10 permit 10.2.20.0 0.0.0.255
ip nat pool lab 172.16.24.0 172.16.24.3 netmask 255.255.255.252
ip nat inside source list 1 pool lab overload
int loopback1001
ip address 172.16.24.1 255.255.255.252
Advertise 172.16.24.0/30 in the PE-CE protocol.
HTH
Hitesh
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