-
Configuring Network Address Translation(NAT) on a router
Static NAT
R1(config) # interface E0
R1(config-if) # ip address 172.168.30.8 255.255.255.0
R1(config-if) # ip nat inside
R1(config-if) # interface S0
R1(config-if) # ip nat outside
R1(config-if) # ip nat inside source static 172.168.30.5 200.0.0.0
R1# debug ip nat
R1# Show ip nat translation
Maps inside local IP 172.168.30.5 to Global IP 200.0.0.0
Dynamic NAT
R1(config) # interface E0
R1(config-if) # ip nat inside
R1(config-if) # interface S0
R1(config-if) # ip nat outside
R1(config) # access-list 1 permit 172.168.30.0
R1(config) # access-list 1 deny any
R1(config) # ip nat pool prashant 192.168.11.11 192.168.11.20 netmask 255.255.255.0
R1(config) # ip nat inside source list 1 pool prashant
R1# debug ip nat
R1# Show ip nat translation
The IPs from the network 172.168.30.0 will be translated and will be assigned IPS from the prashant pool dynamically.
Regards,
Prashant J .
Last edited by PrashantJ; 04-27-2009 at 12:40 PM.
Reason: To make changes
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks