- Jun 24, 2006
- 3,248
- 1
- 81
I think I have an idea of how it works but have never seen/read an explanation of it, so I'd like to confirm.
I'm wondering how IP mapping works, specifically when multiple IP's are assigned to one machine. Example scenario is a single IIS server running multiple websites, each website mapped to a different IP address. The server has one NIC, which has it's own IP address on the internal network as well (internal to datacenter).
There are several scenarios possible, but for now let's assume those website IP's are all public IP's, and I think this is the most basic scenario.
When an external user requests website1, public DNS points to the public IP, and that IP by internet magic, gets routed to the datacenter's network. How does the datacenter's routers/switches know to send the IP to the server where the website is hosted. I'm assuming that the router or firewall has routing tables that map the public IP for website1 to the internal IP of the IIS server's NIC, is that correct? And then on the IIS server itself, IIS has registered a listener for the IP of website1?
I might have more Q's, but that's all for now.
I'm wondering how IP mapping works, specifically when multiple IP's are assigned to one machine. Example scenario is a single IIS server running multiple websites, each website mapped to a different IP address. The server has one NIC, which has it's own IP address on the internal network as well (internal to datacenter).
There are several scenarios possible, but for now let's assume those website IP's are all public IP's, and I think this is the most basic scenario.
When an external user requests website1, public DNS points to the public IP, and that IP by internet magic, gets routed to the datacenter's network. How does the datacenter's routers/switches know to send the IP to the server where the website is hosted. I'm assuming that the router or firewall has routing tables that map the public IP for website1 to the internal IP of the IIS server's NIC, is that correct? And then on the IIS server itself, IIS has registered a listener for the IP of website1?
I might have more Q's, but that's all for now.