Networking Forums

Networking Forums > Computer Networking > Windows Networking > Question about default gateway

Reply
Thread Tools Display Modes

Question about default gateway

 
 
George
Guest
Posts: n/a

 
      11-15-2006, 04:09 PM
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
 
 
 
 
Robert L [MVP - Networking]
Guest
Posts: n/a

 
      11-15-2006, 04:40 PM
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
 
Bill Grant
Guest
Posts: n/a

 
      11-15-2006, 11:41 PM
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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
default gateway question strangelove Broadband 14 12-19-2007 10:32 PM
Two default gateway's Chad Guiney Windows Networking 7 10-31-2007 12:07 AM
Quick Question - Default gateway on a different subnet vishal78@gmail.com Linux Networking 3 10-18-2005 03:34 PM
Linux: Default gateway fails, must use local IP for default gw instead John Sasso Wireless Internet 2 07-08-2004 08:30 AM
Gateway Default Route Question Hank Kingwood Linux Networking 2 10-15-2003 11:56 PM



1 2 3 4 5 6 7 8 9 10 11