* 2 IP address for one Ethernet Card and routing
@ 2000-03-01 5:00 arnaud valeix
2000-03-03 5:00 ` arnaud valeix
0 siblings, 1 reply; 2+ messages in thread
From: arnaud valeix @ 2000-03-01 5:00 UTC (permalink / raw)
Hello,
I was trying to define 2 ip address for one ethernet card and changing
order of IP address of different class.
A is the new primary IP address
B became the alias IP address.
In the file : /etc/host -> hostname is known with IP address named: A.
The IP address named : A is also on rc.config
and the alias IP address named: B in /etc/inet.local.
On the local machine I create a route to a target machine using
the IP adress B.
This is the Origin Machine.
----------
A remote Target machine who knew the Origin machine using the IP address
named : B I do these adjustments:
On this remote machine, if I well configure route,
(adding a route to join the ip address named A - IP address B route
was already on).
I can use ping and telnet from the remote station with the
address A and B. An the origin machine can ping and telnet this
target machine also without any problem.
All is OK.
-------
But I was thinking about a workless solution, which I'm gonna explain:
Imagine on this remote machine , I forgot to create a route to join
IP address A of the local machine.
What's happen:
I clear the arp translation over the 2 machines.
On the local machine:
I ping the remote machine: ---> It's OK.
I try to telnet the remote machine: --> It is NOT OK.
I use tcpdump and I saw this:
When I use ping (icmp) , the origin IP address used is the B address.
When I use telnet (tcp), the origin IP address used is the A address.
That's why, the telnet doesn't not respond.
Is it possible to resolve this or more, to force using the alias
address to be the origin of packet with B IP address.
I try to change the IP address on the local /etc/hosts and use
the old IP adress B for hostname, but it's not better.
I'd like any informations.
Thank's
Arnaud VALEIX
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2 IP address for one Ethernet Card and routing
2000-03-01 5:00 2 IP address for one Ethernet Card and routing arnaud valeix
@ 2000-03-03 5:00 ` arnaud valeix
0 siblings, 0 replies; 2+ messages in thread
From: arnaud valeix @ 2000-03-03 5:00 UTC (permalink / raw)
Hello - More precisions
> On the local machine:
>
> I ping the remote machine: ---> It's OK.
> I try to telnet the remote machine: --> It is NOT OK.
>
> I use tcpdump and I saw this:
>
> When I use ping (icmp) , the origin IP address used is the B address.
> When I use telnet (tcp), the origin IP address used is the A address.
RFC 792 (ICMP) The source ip address could be any of the gateway's
address. (re-routed ppacket to remote through alias ip address)
TCP (use a function : GET_SRCADDR) which look into the OS or
config as rc.config. This, explain why telnet,rsh,rcp,rlogin..etc
use the primary address describe in the rc.config.
>
> That's why, the telnet doesn't not respond.
>
> Is it possible to resolve this or more, to force using the alias
> address to be the origin of packet with B IP address.
It'll be nice to include a route option to use an alias address for
source routing or to forget primary address.
>
> I try to change the IP address on the local /etc/hosts and use
> the old IP adress B for hostname, but it's not better.
>
> I'd like any informations.
>
> Thank's
>
> Arnaud VALEIX
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-03-03 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-01 5:00 2 IP address for one Ethernet Card and routing arnaud valeix
2000-03-03 5:00 ` arnaud valeix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox