IP Routing question

Answered Question
Mar 13th, 2006
User Badges:

I think this is a pretty straight-forward question... I'm by no means a cisco guru and I can't seem to figure this one out - whatever help that could be provided would be appreciated. Here goes.


I have a cisco 1721 router. I have an internal IP network with a class C subnet of 192.168.2.0. I've set up an address pool of IP address for devices to access the internet. What I need to set up is to have a specific internal address (ie 192.168.2.4) always report the same external address (65.137.32.69 for example) rather than using one of the pooled IP addresses. The static address is outside the range of the pooled addresses if that helps any.


again, thanks for any suggestions.

Correct Answer by hardik_tankaria about 11 years 5 months ago

Hi,


I understand this is only a static NAT case,

following is the command line for that :

ip nat inside source list static 192.168.2.4 65.137.32.69

I hope u hv given the ip nat outside as well as ip nat inside to respective interfaces.


Hope this can help u out.


rgds,

Hardik..

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
hardik_tankaria Mon, 03/13/2006 - 05:56
User Badges:

Hi,


I understand this is only a static NAT case,

following is the command line for that :

ip nat inside source list static 192.168.2.4 65.137.32.69

I hope u hv given the ip nat outside as well as ip nat inside to respective interfaces.


Hope this can help u out.


rgds,

Hardik..

leonvd79 Mon, 03/13/2006 - 06:02
User Badges:
  • Silver, 250 points or more

What you require is Network Address Translation (NAT).


You need to configure your router to access the Internet with one public IP address.



interface Serial0/0

ip nat outside

ip address 65.137.32.69 255.255.255.252

!

interface Ethernet0/0

ip nat inside

ip address 192.168.1.1 255.255.255.0

!

ip nat pool lan 192.168.1.2 192.168.1.254 netmask 255.255.255.0

!

!

ip nat inside source list 1 interface Serial0/0 overload

!

ip access-list 1 permit 192.168.1.0 0.0.0.255


Refer to the documentation and configuration examples at the following location:

http://www.cisco.com/en/US/tech/tk648/tk361/tk438/tsd_technology_support_sub-protocol_home.html


HTH


Leon


* Please rate useful posts.

Actions

This Discussion