From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d391893b00852dda,start X-Google-Attributes: gidfee84,public From: arnaud valeix Subject: 2 IP address for one Ethernet Card and routing Date: 2000/03/01 Message-ID: <38BCD1E8.41C6@aigf.sncf.fr>#1/1 X-Deja-AN: 591668225 Content-Transfer-Encoding: 7bit Organization: S.N.C.F. (French Railways) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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