Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Routing/NAT Problem

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi all,

This is definately going to be really simple, but for the life of me I can't get it working.

I run a Cisco 2600 router and have the ethernet interface configured as 192.168.1.0/24
I use this private subnet for all the internal machines, and use ip nat translations so they can see the outside world, and the outside world can see them. No problem so far. However I want to run a web server inside the office, and want it to use an external IP address (ie no NAT for this machine). I have a spare IP address that is visible to the outside world (i.e. it gets stopped at the router), and I have a machine on the inside configured with this IP address also. What command do I need to use to configure the router to allow this IP address 'through'?

Thanks in advance...
Swift
 
ip nat inside source static 192.168.1.x "routable address"

Then create your access list to permit web traffic to the server.
 
xlee, thanks for the response, but the NAT part of the setup I already have working.

However, there is one machine located inside the office that I don't want to use NAT on, but I want to use a world-routable address on it.

So for example, the external IP address might be 203.50.50.50 and the IP address I configure on the actual machine would also be 203.50.50.50, and not 192.168.1.x Does that make sense?

Thanks.
 
do u have the 203.50.50.50 network on any of your router interfaces... ?..

AKNIT
 
StarTAC, no, it's not on any of the interfaces.

Here's the ethernet interface section of my config:
!
interface Ethernet0/0
ip address 192.168.1.1 255.255.255.0
no ip directed-broadcast
ip nat inside
!
and the Serial link section:
!
interface Serial0/0
ip address 210.8.x.x 255.255.255.252
no ip directed-broadcast
ip nat outside
!

Any ideas?

Thanks.
 
No worries guys, I've worked it out.
Just needed to add an 'ip route 203.50.50.50 255.etc Ethernet0/0' to the router.

I knew it was really simple! I'd tried an ip route with the gateway as the ip address of Ethernet0/0 (didn't work), but didn't think to actually set the gateway to Ethernet0/0!

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top