Hot Downloads

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: static natting configure with example

static natting configure with example 5 years 5 months ago #37062

  • sais
  • sais's Avatar
  • Offline
  • Frequent Member
  • Posts: 59
  • Karma: 0
can anyone give me configuration regarding static nat configuration.

in my dynamic nat . i create pool. i apply interface also.?
but in static am bit confused . so any one give me example with static nat config. for ex 2 public ip . ?
The administrator has disabled public write access.

Re: static natting configure with example 5 years 5 months ago #37063

  • S0lo
  • S0lo's Avatar
  • Offline
  • Moderator
  • Posts: 1577
  • Thank you received: 7
  • Karma: 3
Assuming here that your using a Cisco router. After defining the inside and outside interfaces offcourse. All you have to do is use the ip nat. somthing like this:

ip nat inside source static tcp 192.168.1.100 80 20.1.1.100 80

This is a static nat for a web server. 192.168.1.100 is the web server's inside private IP. 80 is the http port. 20.1.1.100 is the web server's public IP (the one people will type in the browser). 80 again is http port.

In English, the line above tells the router: "When ever a packet comes from the outside, requesting a connection to 20.1.1.100 with port 80. Then replace the IP whith 192.168.1.100, keep the 80 port the same, and send the packet inside to 192.168.1.100"
Studying CCNP...

Ammar Muqaddas
Forum Moderator
www.firewall.cx
The administrator has disabled public write access.

Re: static natting configure with example 5 years 5 months ago #37064

  • sais
  • sais's Avatar
  • Offline
  • Frequent Member
  • Posts: 59
  • Karma: 0
thank u ....... if have 5 public ip. then i have repeat above command 5 time is it.....
The administrator has disabled public write access.

Re: static natting configure with example 5 years 5 months ago #37066

  • S0lo
  • S0lo's Avatar
  • Offline
  • Moderator
  • Posts: 1577
  • Thank you received: 7
  • Karma: 3
No, one IP and port per server. For example, you can use one IP to route traffic to web,FTP and Telnet servers all at the same time using only one IP.

Another way, you can map an IP without using a port, to a server. So each server will have separate public IP.
Studying CCNP...

Ammar Muqaddas
Forum Moderator
www.firewall.cx
The administrator has disabled public write access.

Re: static natting configure with example 5 years 5 months ago #37067

  • sais
  • sais's Avatar
  • Offline
  • Frequent Member
  • Posts: 59
  • Karma: 0
No, one IP and port per server. For example, you can use one IP to route traffic to web,FTP and Telnet servers all at the same time using only one IP.

Another way, you can map an IP without using a port, to a server. So each server will have separate public IP.
ip nat inside source static tcp 192.168.1.100 80 20.1.1.100 80
ip nat inside source static tcp 192.168.1.100 23 20.1.1.100 23--telnet
ip nat inside source static tcp 192.168.1.100 21 20.1.1.100 21
ftp


ip nat inside source static tcp 192.168.1.100 20.1.1.100
ip nat inside source static tcp 192.168.1.101 20.1.1.101

no need to create pool: like we create in dynamic nat

ip nat pool name 1.1.1.1 1.1.1.4 netmask 248 for static or we should create................
The administrator has disabled public write access.

Re: static natting configure with example 5 years 5 months ago #37069

  • S0lo
  • S0lo's Avatar
  • Offline
  • Moderator
  • Posts: 1577
  • Thank you received: 7
  • Karma: 3
ip nat inside source static tcp 192.168.1.100 80 20.1.1.100 80
ip nat inside source static tcp 192.168.1.100 23 20.1.1.100 23--telnet
ip nat inside source static tcp 192.168.1.100 21 20.1.1.100 21
ftp

The above is correct.
ip nat inside source static tcp 192.168.1.100 20.1.1.100
ip nat inside source static tcp 192.168.1.101 20.1.1.101

loose the tcp in this case, like this:


ip nat inside source static 192.168.1.100 20.1.1.100
ip nat inside source static 192.168.1.101 20.1.1.101


And yes, you don't need to create a pool like in dynamic nat.
Studying CCNP...

Ammar Muqaddas
Forum Moderator
www.firewall.cx
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.089 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup