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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Webserver on Windows 2000 : CISCO 675

Status
Not open for further replies.

tlgdwnld

Programmer
Nov 21, 2001
3
US
Hi,

I don't have much networking knowledge. My computer is connected to cisco 675 dsl modem and I am running windows 2000. When I run ipconfig I get

Windows 2000 IP Configuration

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 10.0.0.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.0.1

So no matter what web server software I use, I am unable to access my webpage. To set the domain name I am using name-keeper.com.

How do I assign an internet ip address to my machine or is it possible to set the same ip address my router has for my machine also?

Thanks.
 
Did your ISP provide you with any static IP addresses?
 
That did not look like a public registered IP block. tlgdwnld, it looks like your ADSL router is connected to a residential gateway router which then connected to your computer directly or via a hub.

If that is the case, you should config your gateway first. Please, go easy on me if I am wrong.
 
ShaunG, my main concern is that I need to run a web server even if it is for a short while. So I don't bother about static IP address. I want some sort of public IP address assigned to my PC.

xDaemon, my cisco router is connected to the phone line and my computer is connected to it.

As I mentioned earlier, I don't have any networking knowledge. Reading some manuals, I understood that NAT needs to enabled and I see it is enabled in my cisco router. What else I am missing?

Thanks.
 
You will not get a public address on the webserver. You will get a private IP .. ie.. 192.168.1.? that is NATed to your 1 public DHCP address. You need a static NAT mapping to force the router to take any inbound port 80( or whateverport.. I'd use something like 81) and redirect it to the internal 192.168. IP address. I do this for my TACACS server and my webmail server.

In your example, the 10.x number is private.. since it is private, once it's on the internet, many routers will drop the packet. Hence the need for the real IP address from your ISP.

internet---your *modem*----Win2K server
24.x.x.x NAT: port81 10.0.0.2
(whatever
your real ip is)

You would
NAT sees the inbound http port 81 traffic and sends it to 10.0.0.1 (which needs to know to answer to port 81)

MikeS Find me at
"Diplomacy; the art of saying 'nice doggie' till you can find a rock" Wynn Catlin
 
in order to do what you want to do, you have to configure your router to send all requests for a webpage (port 80) to your win2k machine (10.0.0.2). this is called PAT (port address translation). then when anyone points their web browser to the public ip address of your router (the interface that connects to the phone line, it has its own IP address, you can see it in the router), they will get the webpage off of your win2k server. I know it works cause I am doing it right now. Shnypr.com
Idontthinkmyspacebarisworking.....
 
Shnypr,

I don't know how to set PAT on cisco router, but your explanation gave me some idea. So I went and ran this commmand

set nat entry add 10.0.0.2 80 outside-ip 80 tcp.

I used the global ip shown by the router when I said show NAT for the outside-ip in the above command. Now I am able to browse the site through the server running on my pc. Thanks. But it looks like my global ip is changing occasionally. Is there a way to use dynamic ip instead of static ip and still able to run the server without having to enter the entry in NAT every time the ip changes?

As I said in the first post, I am using name-keeper.com service for the DNS entry and I don't mind logging there to update my ip, but I don't want to set nat entry every time the global ip changes.
 
What you are doing is in fact PAT, but it looks like in the newer IOS you use a NAT command to set the PAT config.

Instead of outside-ip, you could possibly put the outside-interface?

I am not sure. Give it a try and let me know if it works. ~~~~~~~~~~
shnypr-small.gif

tech@shnypr.com
~~~~~~~~~~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top