cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
385
Views
0
Helpful
2
Replies

creating NAT fot static and dynamic - beginner

NandaK
Level 1
Level 1

VLAN 60: 10.20.213.64/28    excluded address : 10.20.213.65 - .69

VLAN 80: 10.20.210.0/23      excluded address : 10.20.210.1 - .15

VLAN 60 (HOST PC) : 10.20.213.66

VLAN 80 (HOST PC) : 10.20.210.2

 

Backbone network LAN C : 10.20.208.0/23

 

For static : 

i am supposed to map the assigned private address of VM2 to 10.20.208.50 

Configure the NAT inside network on G0/0 on R2

Configure the NAT outside network on interface G0/1 on R2

 

This is my command:  

en
config t
ip nat inside source static 10.20.213.66 10.20.208.50
end

config t
int g0/0
ip nat inside
int g0/1
ip nat outside
end

 

 

For Dynamic :

i am supposed to create standard acl 2 to allow ip address of pc 2 to do NAT translation.

Create a a public pool of ip address from <lan c network address> .80 to .90 

Name it as Earpool and map acl 2 to it for NAT translation

Configure NAT inside network on the appropriate sub-interface on g0/0 on R2

Configure NAT outside network on interface g0/1 on R2

 

This is my command : en
config t
access-list 2 permit 10.20.213.64 0.0.0.15
ip nat pool Earpool 10.20.208.80 10.20.208.90 netmask 255.255.254.0
ip nat inside source list 2 pool Earpool 
int g0/0.50
ip nat inside
int g0/0.60
ip nat inside
int g0/1
ip nat outside
end

 

 

What i am supposed to achieve FOR STATIC is : A host in public (VLAN 80) is able to access the web server VM2 using public static ip 10.20.208.50 

 

What i am supposed to achieve FOR DYNAMIC is : Open a browser in PC2, enter pc 1 or vm1 ip address in the URL. 

 

FYI: My pc is in DHCP so the ip address is 10.20.213.70

My vm2 is in static so the ip address is 10.20.213.66

Please advice if my command is wrong OR my settings is wrong. 

1 Accepted Solution

Accepted Solutions

Both not working and yes i have it all configured.

View solution in original post

2 Replies 2

Hello,

 

what exactly is not working ? Post the full configurations of your routers. I don't see any routes, do you have these configured ?

Both not working and yes i have it all configured.
Review Cisco Networking for a $25 gift card