0% found this document useful (0 votes)
4 views4 pages

Dynamic NAT Lab

The document outlines the configuration steps for setting up Dynamic NAT on a network involving two PCs, a switch, and a router. It includes initial configuration commands for each device, designates NAT interfaces, creates an access control list (ACL) for the inside local network, and defines a NAT pool. Finally, it verifies connectivity between the PCs and a web server, demonstrating dynamic translations on the router.

Uploaded by

malkeamsalu299
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

Dynamic NAT Lab

The document outlines the configuration steps for setting up Dynamic NAT on a network involving two PCs, a switch, and a router. It includes initial configuration commands for each device, designates NAT interfaces, creates an access control list (ACL) for the inside local network, and defines a NAT pool. Finally, it verifies connectivity between the PCs and a web server, demonstrating dynamic translations on the router.

Uploaded by

malkeamsalu299
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Dynamic NAT

Topology

Initial Configuration Commands

PC1:

sudo ifconfig eth0 [Link] netmask [Link] up


sudo ip route default via [Link]

PC2:

sudo ifconfig eth0 [Link] netmask [Link] up


sudo ip route default via [Link]

SW1:

enable
conf t
no ip domain-lookup
logging console
line con 0
logging synchronous
exec-timeout 0 0
hostname SW1

Dynamic NAT - Copyright 2024, Kevin Wallace Training, LLC


end
copy run star

R1:

enable
conf t
no ip domain-lookup
logging console
line con 0
logging synchronous
exec-timeout 0 0
hostname R1
int gig 0/0
no shutdown
ip address [Link] [Link]
int gig 0/1
no shutdown
ip address [Link] [Link]
router ospf 1
network [Link] [Link] area 0
network [Link] [Link] area 0
end
copy run star

INTERNET:

enable
conf t
no ip domain-lookup
logging console
line con 0
logging synchronous
exec-timeout 0 0
hostname INTERNET
int gig 0/0
no shutdown
ip address [Link] [Link]
int lo 0
ip address [Link] [Link]
router ospf 1
network [Link] [Link] area 0
network [Link] [Link] area 0
end
copy run star

Dynamic NAT - Copyright 2024, Kevin Wallace Training, LLC


Lab Tasks

● On R1, designate which interface will be the inside NAT interface and which will be the
outside NAT interface.
● Identify the inside local network by use of an ACL.
● Define the inside global NAT pool.
● Login to PC1 and PC2 (username= cisco, password= cisco) and verify connectivity
between both PCs and web server, and verify that the dynamic translations take place
on R1.

Solution

Step 1: On R1, designate which interface will be the inside NAT interface and which will be the
outside NAT interface.

R1>en
R1#conf t
R1(config)#int gig 0/0
R1(config-if)#ip nat inside
R1(config-if)#int gig 0/1
R1(config-if)#ip nat outside
R1(config-if)#exit

Step 2: Identify the inside local network by use of an ACL.

R1(config)#access-list 1 permit [Link] [Link]

Step 3: Define the inside global NAT pool.

R1(config)#ip nat pool POOL [Link] [Link] netmask [Link]


R1(config)#ip nat inside source list 1 pool POOL
R1(config)#end

Step 4: Login to PC1 and PC2 (username= cisco, password= cisco) and verify connectivity
between both PCs and web server, and verify that the dynamic translations take place on R1.

PC1
inserthostname-here login: cisco
Password: cisco

Dynamic NAT - Copyright 2024, Kevin Wallace Training, LLC


inserthostname-here:~$ ping [Link]
PING [Link] ([Link]): 56 data bytes
64 bytes from [Link]: seq=1 ttl=42 time=3.747 ms
64 bytes from [Link]: seq=2 ttl=42 time=4.397 ms
64 bytes from [Link]: seq=3 ttl=42 time=3.903 ms
64 bytes from [Link]: seq=4 ttl=42 time=4.209 ms

PC2
inserthostname-here login: cisco
Password: cisco

inserthostname-here:~$ ping [Link]


PING [Link] ([Link]): 56 data bytes
64 bytes from [Link]: seq=1 ttl=42 time=4.105 ms
64 bytes from [Link]: seq=2 ttl=42 time=3.969 ms
64 bytes from [Link]: seq=3 ttl=42 time=4.085 ms
64 bytes from [Link]: seq=4 ttl=42 time=3.814 ms

R1#show ip nat translation


Pro Inside global Inside local Outside local Outside global
icmp [Link]:2 [Link]:2 [Link]:2 [Link]:2
--- [Link] [Link] --- ---
icmp [Link]:2 [Link]:2 [Link]:2 [Link]:2
--- [Link] [Link] --- ---
(##PC1 and PC2 Inside local ip address)
(##PC1 and PC2 Inside global ip address translation)

Dynamic NAT - Copyright 2024, Kevin Wallace Training, LLC

You might also like