PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Noms de domaine > comp.protocols.tcp-ip > Re: how could communication between hosts own different IP in a segment??
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.protocols.tcp-ip TCP and IP network protocols.

Re: how could communication between hosts own different IP in a segment??

Réponse
 
LinkBack Outils de la discussion
Vieux 03/04/2006, 16h53   #1
Jason Tyler Tomasi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how could communication between hosts own different IP in a segment??

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.
  Réponse avec citation
Vieux 04/04/2006, 13h31   #2
briggs@encompasserve.org
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how could communication between hosts own different IP in a segment??

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
  Réponse avec citation
Vieux 05/04/2006, 13h06   #3
Jason Tyler Tomasi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how could communication between hosts own different IP in a segment??

Many thanks Briggs,
and my sincere apologies for giving incorrect information.

Thank you
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h08.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,92785 seconds with 11 queries