How to route between 2 networks with a server with 2 network cards?

Posted by LumenAlbum on Server Fault See other posts from Server Fault or by LumenAlbum
Published on 2012-10-05T20:17:03Z Indexed on 2012/10/05 21:39 UTC
Read the original article Hit count: 201

This is the first time I am faced with routing and it seems I have hit a dead end. I have the following scenario:

client1:

  • 192.168.1.10
  • 255.255.255.0
  • gateway: 192.168.1.100
  • DNS server: 192.168.1.100

client2:

  • 192.168.1.20
  • 255.255.255.0
  • gateway: 192.168.1.100
  • DNS server: 192.168.1.100

server (Windows Server 2008 R2 with enabled RAS & Routing Services)

network card 1 (connected to a switch along with the clients)

  • 192.168.1.100
  • 255.255.255.0
  • DNS server: 127.0.0.1

network card 2 (connected to the router)

  • 192.168.2.100
  • 255.255.255.0
  • gateway: 192.168.2.1
  • DNS server: 127.0.0.1
  • (DNS forwarding to 192.168.2.1)

ISP router (with connection to internet)

192.168.2.1

Now in this scenario I have tried to route traffic from the 192.168.1.0/24 network with the clients to the 192.168.2.0/24 network with the routers to connect them to the internet. However, no matter what I do I get no positive ping to the router 192.168.2.1.

Ping from 192.168.168.1.10

  • to 192.168.1.20: Success
  • to 192.168.1.100: Success
  • to 192.168.2.100: Success
  • to 192.168.2.1: not reachable

The routing table contains the 2 routes 192.168.1.0 and 192.168.2.0 as directly connected.

Does anyone know where the routing fails?

I have searched different forums but mostly found nothing relevant. One post however pointed out that in a similar situation the problem was that the router doesn't know the way back and the internet router would need a static route back to the first router. If that really is the case, I take it there is no solution with my equipment, because the standart ISP router doesn't allow to set any static routes.

© Server Fault or respective owner

Related posts about windows-server-2008

Related posts about networking