Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Windows Server Networking

Question about default gateway

Reply
 
Thread Tools Display Modes
  #1  
Old 11-15-2006, 05:09 PM
Default Question about default gateway



I have a question about default gateway. Can I use a default gateway which is
not in the same subnet as my client computer?

For example: the local subnet is 192.168.16.0/24. the client computer's IP
is 192.168.16.18, the server computer's internal ip is 192.168.16.1 and the
external ip is 172.16.1.7. The server computer's default gateway is
172.16.1.1.

I have set the client computer's default gateway to 172.16.1.1 and add
static route so this gateway is reachable from the client. However, I cannot
ping external IP's through 172.16.1.1 like google.com. I can ping google.com
from 172.16.1.1 and 172.16.1.7.

Any ideas?


George
Reply With Quote
  #2  
Old 11-15-2006, 05:40 PM
Robert L [MVP - Networking]
Guest
 
Posts: n/a
Default Re: Question about default gateway

You can't do that. you should enable IP routing on the server with two NICs so that the client access the 172.16.1.x or internet.

Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
"George" <(E-Mail Removed)> wrote in message news:25E4A5C8-B7B6-41AD-BCE8-(E-Mail Removed)...
I have a question about default gateway. Can I use a default gateway which is
not in the same subnet as my client computer?

For example: the local subnet is 192.168.16.0/24. the client computer's IP
is 192.168.16.18, the server computer's internal ip is 192.168.16.1 and the
external ip is 172.16.1.7. The server computer's default gateway is
172.16.1.1.

I have set the client computer's default gateway to 172.16.1.1 and add
static route so this gateway is reachable from the client. However, I cannot
ping external IP's through 172.16.1.1 like google.com. I can ping google.com
from 172.16.1.1 and 172.16.1.7.

Any ideas?
Reply With Quote
  #3  
Old 11-16-2006, 12:41 AM
Bill Grant
Guest
 
Posts: n/a
Default Re: Question about default gateway

It should work if you set up the server as a NAT router. The machines in
the 192.168.16 subnet can then access the machines in 172.16.1 and the
Internet using NAT.

172.16.1.1
|
172.16.1.7 dg 172.16.1.1
NAT router
192.168.1.1 dg blank
|
192.168.1.x dg 192.168.1.1

If you want full routing between the subnets (ie machines in 172.16.1
can access machines in 192.168.16 ) you can't use NAT. You would use normal
IP routing, but would need to add extra routing to the gateway router at
172.16.1.1 to "bounce" traffic for 192.168.16 to the internal router.

"George" <(E-Mail Removed)> wrote in message
news:25E4A5C8-B7B6-41AD-BCE8-(E-Mail Removed)...
>I have a question about default gateway. Can I use a default gateway which
>is
> not in the same subnet as my client computer?
>
> For example: the local subnet is 192.168.16.0/24. the client computer's IP
> is 192.168.16.18, the server computer's internal ip is 192.168.16.1 and
> the
> external ip is 172.16.1.7. The server computer's default gateway is
> 172.16.1.1.
>
> I have set the client computer's default gateway to 172.16.1.1 and add
> static route so this gateway is reachable from the client. However, I
> cannot
> ping external IP's through 172.16.1.1 like google.com. I can ping
> google.com
> from 172.16.1.1 and 172.16.1.7.
>
> Any ideas?



Reply With Quote
Reply

Tags
default, gateway, question

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.