Question Locked

NAT on a Cisco 1841

0 helpful
14 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

My local telco set us up with a T1 the other day, but only gave us one usable IP address. I need to NAT that address to my users, but since that address is assigned to my router interface, I don't think I can.

Am I correct in my understanding that I need one IP for the router and another to overload for NAT?

Thanks!

14 replies

by cg it

try cisco.com and look on their technical site.

by duke maynard

I appreciate the suggestion, but I've wandered around the cisco site without much luck. That's why I'm posting here.

The NAT examples at cisco's site only deal with situations where a pool of public addresses exist. I have a /30 subnet, so only one is usable.

by dumphrey

you will need to go into the router and set your WAN interface as nat outside in the interface config mode, and nat inside on the LAN interface.
Then you need to create an acl to allow access to your lan.
Then add a static translation.

So, lets say eth0 is your wan.
conf t, int eth0, nat outside, ipaddress 192.168.1.1/30.
int eth1 is your lan.
conf t int eth1 nat inside ipaddress 10.10.10.1/24.

Next we create the ACL
access-list 1 allow 10.10.10.0 255.255.255.0
and create our translation
ip nat inside source static list 1 eth0 overload.

the first part says we are making a static trans lation of our source addresses (acl 1). The second part turn on Port Address Translation, it overloads the eth0 address, so each internal connection going out will have that ip, but will be tracked by a dynamic assigned port.

This make any sense?

you can overload based on interface, not just IP address so you only need 1 public IP.

by duke maynard

Hey, thanks for that info! I changed my config from referencing a pooled address to the interface itself and it came right up.

I appreciate your help!

by cg it

isn't any help....

It's all there if one just takes the time to look.

by dumphrey

is the issue. Their sites DOES leave something to be desired in the way of finding info...

by dumphrey

I book marked it for the next NAT question... well written and explains it all. I have no idea how you all find this stuff on cisco's site, I always seem to end up in the command reference section...

by michael kassner

I have probably mentioned too many times now, but I am a network (Cisco) field engineer by day and it can get a bit lonely out there all by yourself. So "me and my data card" are close friends with the Cisco site. Saved my behind on too many times to count.

by duke maynard

Thanks for that link, Michael. I must have spent a half-hour searching the cisco site and never saw that piece. Great article.

by michael kassner

I have one trick that I use, it is not really a trick, but it might be helpful. As I mentioned earlier, I am quite familiar with the Cisco site and have access to privileged areas, but for the most part I just Google using Cisco as the first word. For instance if you Google "Cisco and NAT" the first hit is the article I linked.

by cg it

I always wonder why the heck are they working on Cisco stuff if they don't know how to work on Cisco stuff.

It's not easy equipment to configure without lots of practice on actual equipment. Reading a book won't do it.

Given that, if one has Cisco stuff, they ought to know at the least the basics of configuring interfaces and making connectivity. If they don't, then they don't have any business working on the stuff.

by duke maynard

Hey friend,

I guess someone has burned you in the past to make you so frustrated, but please don't take it out on innocent folks. I left the IT field for ministry and am now responsible for a whole bunch of stuff... AND technology! I thought a simple question posted here would save me some time, especially when it comes to sifting through that Cisco site. Thanks to Dumphrey and Michael it did (kudos guys).

When you haven't worked with Cisco equipment for 9 years, you tend to forget a few things (not to mention some things tend to change during that time). Sorry for that.

If you don't think anyone but Cisco experts should work on the stuff, why are you spending time on this site giving us simpletons such a hard time? That's a bit elitist, don't you think?

No hard feelings, friend, but how about cutting some of us a little slack?

This discussion is closed to new replies.