06-25-2018 08:26 AM - edited 03-05-2019 10:39 AM
Are there any issues with NAT and getting an IP address on an outside interface?
Thanks,
Alex
06-25-2018 10:46 AM
Hello,
if you get a dynamic IP address, use the interface for overloading:
interface GigabitEthernet0/0/0
ip address dhcp
ip nat outside
!
ip nat inside source list 1 interface GigabitEthernet0/0/0 overload
06-25-2018 10:51 AM
I was looking more for a caveat or issue with renewing the IP address. An example would be that we have a permit ip any any, do we need to specifically deny the DHCP address from NAT?
Thanks,
Alex
06-25-2018 11:08 AM
Hello,
to 'permit ip any any' is usually not a good idea. Specify the local networks you want to have translated.
With regard to DHCP, for WAN connections this is not a problem, as ISPs usually provide infinite leases.
Make sure your default route specifies 'dhcp':
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0 dhcp
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