11-21-2022 03:23 PM - edited 11-21-2022 03:27 PM
Having issues try to NAT over a BGP configuration
BGP is up. Here is my config
ip nat inside source static 192.168.78.17 10.16.2.97
ip nat inside source static 192.168.78.29 10.16.2.98
ip nat inside source static 192.168.78.54 10.16.2.99
ip nat inside source static 192.168.78.59 10.16.2.100
interface Ethernet1/3
no switchport
no ip redirects
ip address 10.16.5.24/31
ip nat inside
interface Ethernet1/4
no switchport
ip address 10.16.5.26/31
ip nat inside
router bgp 65231
router-id 1.1.1.1
timers bgp 3 9
log-neighbor-changes
address-family ipv4 unicast
network 10.16.2.96/27
neighbor 10.16.5.25 remote-as 12340
remote-as 12340
description primary
address-family ipv4 unicast
neighbor 10.16.5.27 remote-as 12340
remote-as 12340
description secondary
address-family ipv4 unicast
SW1(config)# show ip nat trans
Pro Inside global Inside local Outside local Outside global
--- --- --- 192.168.10.17 10.16.2.97
--- --- --- 192.168.10.29 10.16.2.98
--- --- --- 192.168.10.54 10.16.2.99
--- --- --- 192.168.10.59 10.16..100
--- 10.16.2.97 192.168.10.17 --- ---
--- 10.16.2.98 192.168.10.29 --- ---
--- 10.16.2.99 192.168.10.54 --- ---
--- 10.16.2.100 192.168.10.59 --- ---
Translation is there, but traffic is not flowing in or out over the translation
11-21-2022 04:03 PM
I see only ip nat inside
Where ip nat outside?
11-21-2022 04:41 PM
No outside, but I can do E1/4 to be outside. I did that before and it did not work either
11-22-2022 12:32 AM
10.16.2.97 <<- this IP is point to which interface ???
11-22-2022 01:33 AM
10.16.2.97 I have a NULL0 statement on my route (ip route 10.16.2.96/27 NULL0)
11-23-2022 07:37 AM
No takers?
11-23-2022 08:12 AM
I try to have time to run lab but I could not understand the topology nor the config you use,
the issue
you config static route to null0 and I understand you use this to force BGP advertise the prefix
but NAT with this way I could not get!!!
you can instead use LO with IP you use in static route (no need more static route) and then config LO with NAT outside
here you will have
ip nat inside <<-under LAN
ip nat outside <<- under LO
then advertise the LO under BGP
this my view to your problem
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