Solved

Need sample config for a Cisco 1921

Posted on 2010-09-04
5
2,941 Views
Last Modified: 2012-08-13
Several years since I did any Cisco routers.

I am familiar with the mechanics of programming them, but lots has changed.

Can anyone provide a sample config for a basic configuration NAT, with normal port forwards (25, 80, 443, 3389, etc...)

Thanks
0
Comment
Question by:DagwoodBumstead
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 24

Expert Comment

by:rfc1180
ID: 33604872
something like:

int f0/0
ip address 192.168.1.1 255.255.255.0
 ip nat inside
int f0/1
ip address 64.100.90.1 255.255.255.0
 ip nat outside

access-list 1 permit 192.168.1.0 0.0.0.255

ip nat inside source list 1 interface f0/1 overload

!static ip addresses
ip nat inside source static tcp 64.100.90.1 25 192.168.1.20 25
ip nat inside source static tcp 64.100.90.1 80 192.168.1.21 80
ip nat inside source static tcp 64.100.90.1 443 192.168.1.22 443
ip nat inside source static tcp 64.100.90.1 3389 192.168.1.23 3389

Billy


0
 
LVL 6

Accepted Solution

by:
wpharaon earned 125 total points
ID: 33605885
i agree with the beggining of the configurations
int f0/0
ip address 192.168.1.1 255.255.255.0
 ip nat inside
int f0/1
ip address 64.100.90.1 255.255.255.0
 ip nat outside

access-list 1 permit 192.168.1.0 0.0.0.255

ip nat inside source list 1 interface f0/1 overload

However the static mapping works as:
ip nat inside source static tcp (Inside Local IP add) (local_PORT) (Inside Global IP add) (global_PORT)
So it will be
!static ip addresses
ip nat inside source static tcp  192.168.1.20 25 64.100.90.1 25
ip nat inside source static tcp 192.168.1.21 80 64.100.90.1 80
ip nat inside source static tcp 192.168.1.22 443 64.100.90.1 443
ip nat inside source static tcp 192.168.1.23 3389 64.100.90.1 3389
0
 
LVL 24

Expert Comment

by:rfc1180
ID: 33606702
>However the static mapping works as:
ip nat inside source static tcp (Inside Local IP add) (local_PORT) (Inside Global IP add) (global_PORT)


agreed, did not catch that mistake
0
 

Author Comment

by:DagwoodBumstead
ID: 33615051
Thanks for the responses... in the snippet above, is all egress from the network allowed, or do I need to specify to allow some ports to leave the network?
0
 
LVL 6

Expert Comment

by:wpharaon
ID: 33615161
        access-list 1 permit 192.168.1.0 0.0.0.255
Allow traffic from internal LAN pcs to internet

While:!static ip addresses:
         ip nat inside source static tcp  192.168.1.20 25 64.100.90.1 25  
from internet to 64.100.90.1 port 25 to be destined to Server 192.168.1.20 port 25...
etc
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MAC address learning of Riverbed 4 81
Connectivity issues after power outage 5 64
Configure BGP 22 38
HP Storage and Cisco Nexus 4 11
Problem Description:   Couple of months ago we upgraded the ADSL line at our branch office from Home to Business line. The purpose of transforming the service to have static public IP’s. We were in need for public IP’s to publish our web resour…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question