Announcement

Collapse
No announcement yet.

Windows Server 2003 as ROUTER for internet sharing

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Windows Server 2003 as ROUTER for internet sharing

    I want to retire my wired router and use my Windows 2003 server as dedicated router since the server is up 24/7 for WEB/Exchange server. The server initially had 1 NIC so added up one more.

    Here is my setup: The first NIC is directly hooked up to the cable modem where it receives IP/Gateway/DNS settings via DHCP from my ISP. The internet connection works fine (I can access the internet) until I hook up my switch to the second NIC. I have enabled the DHCP server (running on my windows 2003 server) on the second NIC, gave the NIC the IP address 192.168.10.1, Subnet 255.255.255.0, DNS 192.168.10.1, Gateway 192.168.10.1. The devices that attach to the server via the switch automatically obtain IP addresses from the pool 192.168.10.2-254 with the Subnet 255.255.255.0 and DNS/GATEWAY 192.168.10.1. However they cannot access the internet (the intranet is fine). As I said once I hook the switch to the second NIC I cannot access the internet from my server either. I can ping the ISPs gateway but not the DNS servers. I installed the NAT from Routing and Remote access and I still cannot get it to work. Here is the print out from the command ROUTE PRINT:

    IPv4 Route Table
    ================================================== =========================
    Interface List
    0x1 ........................... MS TCP Loopback interface
    0x10005 ...00 50 ba 81 b4 a4 ...... Broadcom NetXtreme 57xx Gigabit Controller
    0x40003 ...00 07 e9 0f 63 7a ...... Intel(R) PRO/1000 MT Dual Port Server Adapte
    r
    ================================================== =========================
    ================================================== =========================
    Active Routes:
    Network Destination Netmask Gateway Interface Metric
    0.0.0.0 0.0.0.0 76.107.24.1 76.107.27.190 20
    0.0.0.0 0.0.0.0 76.107.27.190 192.168.10.1 10
    0.0.0.0 0.0.0.0 76.107.27.190 76.107.27.190 1
    76.107.24.0 255.255.248.0 76.107.27.190 76.107.27.190 20
    76.107.27.190 255.255.255.255 127.0.0.1 127.0.0.1 20
    76.255.255.255 255.255.255.255 76.107.27.190 76.107.27.190 20
    127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
    192.168.10.0 255.255.255.0 192.168.10.1 192.168.10.1 10
    192.168.10.1 255.255.255.255 127.0.0.1 127.0.0.1 10
    192.168.10.255 255.255.255.255 192.168.10.1 192.168.10.1 10
    224.0.0.0 240.0.0.0 76.107.27.190 76.107.27.190 20
    224.0.0.0 240.0.0.0 192.168.10.1 192.168.10.1 10
    255.255.255.255 255.255.255.255 76.107.27.190 76.107.27.190 1
    255.255.255.255 255.255.255.255 192.168.10.1 192.168.10.1 1
    Default Gateway: 76.107.27.190
    ================================================== =========================
    Persistent Routes:
    None

    76.107.27.190 is the DHCP assigned IP to the first NIC by the ISP
    76.107.24.1 is the ISPs gateway.

    Once I disable the second NIC the internet start working again.

    This is the ROUTE PRINT with only one NIC and the internet working

    IPv4 Route Table
    ================================================== =========================
    Interface List
    0x1 ........................... MS TCP Loopback interface
    0x10005 ...00 50 ba 81 b4 a4 ...... Broadcom NetXtreme 57xx Gigabit Controller
    ================================================== =========================
    ================================================== =========================
    Active Routes:
    Network Destination Netmask Gateway Interface Metric
    0.0.0.0 0.0.0.0 76.107.24.1 76.107.27.190 20
    76.107.24.0 255.255.248.0 76.107.27.190 76.107.27.190 20
    76.107.27.190 255.255.255.255 127.0.0.1 127.0.0.1 20
    76.255.255.255 255.255.255.255 76.107.27.190 76.107.27.190 20
    127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
    224.0.0.0 240.0.0.0 76.107.27.190 76.107.27.190 20
    255.255.255.255 255.255.255.255 76.107.27.190 76.107.27.190 1
    Default Gateway: 76.107.24.1
    ================================================== =========================
    Persistent Routes:
    None

    What am I missing? Which route is causing the problem? How do I delete that route?
    Last edited by onurd; 20th May 2009, 16:31.

  • #2
    Re: Windows Server 2003 as ROUTER for internet sharing

    remove the gateway on your second nic.

    basically what you need on the public interface:
    the ip address of the host itself, the gateway address, a dns server.
    unbind everything else.

    on the private interface:
    ip address for your internal network. this is where you can have file/print sharing and client for ms networks bound.



    the client devices then use the prviate ip address as the gateway

    ie
    [internet] <---> (203.1.2.2.) [server] (192.168.1.1) <----> network
    server has a gateway of 203.1.2.2 and the clients have a gateway of 192.168.1.1

    you also need to actually enable the traffic routing somehow, it'snot just going to route because you want it to..
    Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

    Comment

    Working...
    X