cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1151
Views
5
Helpful
3
Replies

PAT/NAT Question

myates123
Level 1
Level 1

Is it possible to do PAT/NAT on two laptops that are connected via their own switch onto one router?

 

I would like to do private/public IPs on laptops connected to different switches.

 

Enlcosed is what I am trying to do. 

 

Any help is greatly appreciated!

1 Accepted Solution

Accepted Solutions

Francesco Molino
VIP Alumni
VIP Alumni
Hi

Not sure i understand what you want to achieve. Do you want to do nat to access internet simply or do you want to a static nat?

Anyways, your router interface facing the public side will be the nat outside and both interfaces facing lan will be in nat inside.
Then you'll need to configure the acl to allow internet access and so natting your private IPs to public IPs.(same as a standard nat configuration)

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

View solution in original post

3 Replies 3

Francesco Molino
VIP Alumni
VIP Alumni
Hi

Not sure i understand what you want to achieve. Do you want to do nat to access internet simply or do you want to a static nat?

Anyways, your router interface facing the public side will be the nat outside and both interfaces facing lan will be in nat inside.
Then you'll need to configure the acl to allow internet access and so natting your private IPs to public IPs.(same as a standard nat configuration)

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

Thank you. How do you configure the acl to allow internet access?

Hello,

 

you need to include the IP address (ranges) of both laptops in your ACL. If possible, post the (zipped) Packet Tracer project (.pkt) file. Otherwise, let's assume the below:

 

Laptop_1 has IP address 192.168.10.2/24

Laptop_2 has IP address 192.168.20.2/24

 

The router configuration, NAT, and corresponding access list would look like this:

 

Router

 

interface GigabitEthernet0/0

description Uplink to ISP

ip address 1.1.1.1 255.255.255.252

ip nat outside

!

interface GigabitEthernet0/1

description Link to Laptop_1

ip address 192.168.10.1 255.255.255.0

ip nat inside

!

interface GigabitEthernet0/2

description Link to Laptop_2

ip address 192.168.20.1 255.255.255.0

ip nat inside

!

ip nat inside source list 1 interface GigabitEthernet0/0 overload

!

access-list 1 permit 192.168.10.0 0.0.0.255

access-list 1 permit 192.168.20.0 0.0.0.255