|
||||||||
|
|
#1
|
|
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 |
|
#2
|
|||
|
|||
|
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? |
|
#3
|
|||
|
|||
|
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? |
![]() |
| Tags |
| default, gateway, question |
| Thread Tools | |
| Display Modes | |
|
|