How do i config using the ios,a cisco router NAT when my isp uses dhcp.?

Question by sprelligosi: How do i config using the ios,a cisco router NAT when my isp uses dhcp.?
i dont have a static ip but instead my isp uses dhcp. so how do i configure nat on cisco routers using the ios cli.

Best answer:

Answer by Lanwanprofessional.com
Hello,

This is no problem at all for cisco. You can instead of specifiyng IP, specify the interface name (or subinterface).

We have recently posted about it. Please check this post:

http://cs-ms.blogspot.com/2009/06/configuring-nat-dynamic-translation.html

The only thing you need to change is this line:

GatewayRouter(config)#ip nat inside source list 1 pool OUTSIDE

to

GatewayRouter(config)#ip nat inside source list 1 interface fastEthernet 0/0

This is assuming that your public IP is assigned to F0/0 (via DHCP).

In the furute you may find usefull also services like no-ip.com, dyndns.com, dnsalias.net in order to have dns hostname assigned. So you will have a chance to connect for example from work/school to your router using for example: youhome.dyndns.com

Add your own answer in the comments!

Related items:

  1. Basic Cisco Router Config Study 1 of 10
    Cisco IOS Modes of Operation: User EXEC, Privileged EXEC mode, and Global Config Video Rating: 5 / 5...
  2. Cisco configuration of DHCP service on a Router or L3 Switch
    How to configure basic DHCP services on a Cisco IOS router or layer 3 switch. Additional tutorials and white papers are available at www.westgatenetworks.com Video Rating: 4 / 5...
  3. Configuring a DHCP Server on a Cisco Router
    This video demonstrates how to set up a DHCP server on a Cisco router running IOS....
  4. Pt. 1 Connecting Cisco Router to the internet
    Part 1 of 4. Connecting your Cisco network to a non cisco network. For example, connecting your PC to a switch to a router to another router to a non cisco router provided to you by your ISP like FiOS...
  5. cisco IOS, is there a manual that is easy to understand?
    Question by Goblin517: cisco IOS, is there a manual that is easy to understand? I would like to learn Cisco IOS. I need to know where to find a manual that is accessible to a person that doesn’t have all...
  6. Config / Setup PPPoE on Cisco Router
    Config / Setup PPPoE (broadband) connection on Cisco Router...
  7. How to COMPLETELY delete vlans in cisco router(s)?
    Question by bollman_l: How to COMPLETELY delete vlans in cisco router(s)? I’m working on a cisco 3825 router and deleted a vlan using the “no” command. After saving the config and typing “sh startup” the vlan is gone, but when...
  8. which model of cisco router can i buy to practice at home?
    Question by Ask: which model of cisco router can i buy to practice at home? which model of cisco router can i buy to practice at home? Best answer: Answer by Excessive MHzProbably the cheapest ones which support IOS and...
  9. Cisco Router – Back up Your Startup Config to TFTP
    How to back your startup config to a tftp server. Video Rating: 4 / 5...
  10. What’s the best Cisco IOS Simulator for CCNA Training?
    Question by F4RR4R: What’s the best Cisco IOS Simulator for CCNA Training? I checked google quickly and found quite a few, but it’s hard to tell what’s decent based on a companies description. Any suggestions? Best answer: Answer by Cisco_curious28I’d...

Leave a Reply


Powered by Yahoo! Answers