The interface g0/1 of 172.16.1.0/24 of Router is connected to switch with two subnets 172.16.1.0/24 & 172.16.2.0/24. We are running eigrp between them. Currently I'd like to have "ip nat outside" to apply on the outside g0/0 interface in the router and I just want to nat inside 172.16.2.0/24, but I don't want to nat inside 172.16.1.0/24. Where should I apply "ip nat inside" ? in the g0/1 interface?
Here is the following I want to apply in the router:
ip nat outside
ip nat inside
ip nat inside source list 7 interface GigabitEthernet0/0 overload
just want to clarify that my silly concern, under interface g0/1 is 172.16.1.254 255.255.255.0 in the router and this interface g0/1 is directly connected to switch. The 172.16.2.0/24 is running in switch, Between the router and switch is running eigrp. Please help.
Just had another look at the config. I would do it this way
ip nat inside source list 101 interface GigabitEthernet0/0 overload
access-list 101 permit ip 172.16.2.0 0.0.0.255 any
but note that your original way would work as well. I just have the habit of using extended acl's with NAT.
When you add "ip nat inside" to gi0/1 that does not mean everything will be Natted. What define what you want to NAT is the "ip nat inside source ..." configuration and you are only telling it to NAT 172.16.2.0/24.
This will not affect EIGRP between the 2 devices if that is your concern.
This is actually a pretty cool feature, i didn't even know it existed until I was looking for a solution to advertise a subnet (prefix in BGP talk), only if a certain condition existed. This is exactly what conditional advertisements does
j ai une question j ai achete un routeur cisco 887VA-k9 , je le configuré avec la configuration ci- dessous
si je le lier avec mon pc portable sur l un de ses ports directement ça marche toute est bien ( la connexion internet + m...
Attached policy provides CLI access to the Cisco 4G router over text messaging. Two files are in the attached .tar file:
2. PDF with instructions on how to load and use the .tcl file.