Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

NAT question

Can anyone please twll me when natting, say if I have a machine internally on the local lan on a say 10.1.1.13 address and I want the outside to see this say as a 172.19.54.1 address for example, can the gateway on the inside pc be any any on the networks or must it be on the 10 network ?

thanks

Carl

1 REPLY
VIP Purple

Re: NAT question

Hello Carl,

basically, the default gateway of your internal machine must have a gateway on the same subnet as your internal machine´s IP address in order to be routable. The NAT comes after that. So, in your case that would mean:

10.1.1.23 (internal PC IP address

interface FastEthernet0/0

ip address 10.1.1.1 255.255.255.0

ip nat inside

So, the answer to your question is: yes, both the machine´s IP address and the default gateway need to be on the same common network...

Does that make sense ?

Regards,

GP

113
Views
0
Helpful
1
Replies
CreatePlease to create content