cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
743
Views
0
Helpful
6
Replies

Configuring a router to use NAT

revcoyote
Level 1
Level 1

I am configuring my router to use NAT my ISP provides me with a DHCP address. I am also needing outside users to access to some servers on my network. This is what I have so far. Am I missing. Any recommendations would also be appreciated. I am learning that as I go along.

6 Replies 6

ip nat inside list 101 interface gi0/1

Only correct interface number 

Note :- some sw add by default overload keyword

ammahend
VIP
VIP

to access inside device using outside IP, you will need additional command for e.g.

ip nat inside source static tcp 10.1.1.1 23 5.5.5.1 23

here 10.1.1.1 is your internal server which you want to access from outside on port 23, 5.5.5.1 is your public IP facing internet, for stability it would be better to have this IP static rather than DHCP.

 

-hope this helps-

Hello,

 If your ISP is providing you DHCP, probably they are doing NAT for you on their end. For exit traffic, you just need to create a static route from your router pointing to the ISP gateway.

 Now, NAT from outside to inside does not make sense as you are using DHCP.  How can you possibly know which IP address to call?

 Does your ISP assign to you a public or private IP address? If public, there´s some hope but if private, you will not reach it from the internet. And you can not put NAT on ISP device either.

NAT is being done by my router. All residential routers can do this. The ISP assigns me a public address from their DHCP pool. IP address call is managed by the router software. Any change in the public address is handled through Dynamic DNS (DDNS) hosted by a friend of my wife. What is frustrating is I know other people have successful done this and made a commercial router into a home router.  

As I said, if you receive a public IP address from ISP, there is some hope. 

 What you need to do is on this link

https://www.networkstraining.com/cisco-router-port-forwarding-configuration/ 

 

There are 2 parts to the issue that you describe. One is nat for devices in your network to access the Internet. The other is for devices in Internet to access servers in your network.

The nat config in the original post would accomplish the first part if some issues are addressed:

- most important the nat statement points to g0/0 and should point to g0/1.

- almost as important the acl permits a single host address. It should permit the subnet.

- the config uses an extended acl with permit any for destination. There is no need for an extended acl here and I have seen situations where it causes issues. I suggest changing it to a standard acl permitting the inside network.

The second part is more of a challenge. For Internet hosts to access servers in your network the more typical solution is to have additional Public IP assigned to you from ISP and to do static nat with those addresses. If you do not have additional Public IP then it might be possible to do some port forwarding to forward particular protocol ports to specified addresses inside. 

HTH

Rick
Review Cisco Networking for a $25 gift card