|
|
|
|
||||||
| comp.protocols.tcp-ip TCP and IP network protocols. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
iLRainyday wrote:
> let's make a example: > > A:192.168.0.1 B:192.168.1.1 > > > the solution I could reach as following: > A:192.168.0.1 gateway:192.168.1.1 > B:192.168.1.1 gateway:192.168.0.1 > > is right the way?and is another solution exist? > > sorry for my english and thanks in advance! > No, that won't work. Each PC must use the Router IP on the SAME Subnet. |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
In article <e0rgdh$aaq$2@lust.ihug.co.nz>, Jason Tyler Tomasi <jason_tomasi@ihug.co.nz> writes:
> iLRainyday wrote: >> let's make a example: >> >> A:192.168.0.1 B:192.168.1.1 >> >> >> the solution I could reach as following: >> A:192.168.0.1 gateway:192.168.1.1 >> B:192.168.1.1 gateway:192.168.0.1 >> >> is right the way?and is another solution exist? >> >> sorry for my english and thanks in advance! >> > > No, that won't work. > > Each PC must use the Router IP on the SAME Subnet. If we read that solution as (possibly) intended then workstation A at 192.168.0.1 will have a route to B at 192.168.1.1 using a gateway of its own IP address at 192.168.0.1. And conversely, workstation B at 192.168.1.1 will have a route to A at 192.168.0.1 using a gateway of its own IP address at 192.168.1.1. The effect of this is that workstation A will ARP for workstation B (using the interface whose IP is specified as the gateway) in spite of the fact that workstation B is not on the connected subnet associated with the interface IP. [Fudged from an actual cut-and-paste:] C:\Workstation-A\> route add 192.168.1.1 mask 255.255.255.255 192.168.0.1 C:\Workstation-A\> netstat -nr Destination Netmask Gateway Interface Metric 192.168.0.1 255.255.255.255 127.0.0.1 127.0.0.1 1 192.168.0.0 255.255.255.0 192.168.0.1 192.168.0.1 1 192.168.1.1 255.255.255.255 192.168.0.1 192.168.0.1 1 C:\Workstation-A> ping 192.168.1.1 Ping statistics for 149.32.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), C:\Workstation-A> arp -a Interface: 192.168.0.1 on Interface 0x2 Internet Address Physical address Type 192.168.1.1 02-03-04-05-06 dynamic |
|
![]() |
| Outils de la discussion | |
|
|