Configure PAT

Let us configure PAT through interface Gi0/2.

Router0(config)#ip nat inside source list 5 interface Gi0/2 overload

We then create a standard access list to allow two LAN networks. Any valid standard ACL number can be used.

Router0(config)#access-list 5 permit 192.168.2.0 0.0.0.255

Router0(config)# access-list 5 permit 192.168.3.0 0.0.0.255

For translation, we need to configure inside translation in two LAN interfaces and outside translation in WAN interface.

Router0(config)#interface Gi0/0

Router0(config-if)#ip nat inside

Router0(config-if)#interface Gi0/1

Router0(config-if)#ip nat inside

Router0(config-if)#interface Gi0/2

Router0(config-if)#ip nat outside

Now, PC1 with IP 192.168.2.3 will be able to successfully ping 8.8.8.8 and any Internet host.

Last modified: Tuesday, 28 April 2020, 1:46 PM