From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thomas Leitner Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Problem with ifconfig -alias Date: Wed, 15 Dec 2004 09:06:56 +0100 Organization: Institut =?ISO-8859-1?Q?f=FCr_Breitbandkommunikation_/_?= =?ISO-8859-1?Q?TU-Graz?= Message-ID: <41BFF0A0.3080203@radar.tugraz.at> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1103097798 12376 80.91.229.6 (15 Dec 2004 08:03:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Dec 2004 08:03:18 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Dec 15 09:03:12 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1CeU7s-0006eS-00 for ; Wed, 15 Dec 2004 09:03:12 +0100 Original-Received: (qmail 18613 invoked by uid 5); 15 Dec 2004 08:02:25 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 18598 invoked by uid 49501); 15 Dec 2004 08:02:25 -0000 Original-Received: from tom@radar.tugraz.at by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.86.17):SA:0(-2.5/5.0):. Processed in 1.748607 secs); 15 Dec 2004 08:02:25 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 15 Dec 2004 08:02:23 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I8R00J027NL8Y@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 15 Dec 2004 03:02:20 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0I8R00J027MPC6@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 15 Dec 2004 03:01:47 -0500 (EST) Original-Received: from mailrelay01.tugraz.at (mailrelay.tu-graz.ac.at [129.27.3.7]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTPS id <0I8R00I2D7MNQ3@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 15 Dec 2004 03:01:36 -0500 (EST) Original-Received: from isvr.radar.tugraz.at (ns1.radar.tugraz.at [129.27.147.3]) by mailrelay01.tugraz.at (8.13.1/8.13.1) with ESMTP id iBF81YAe005898 for ; Wed, 15 Dec 2004 09:01:34 +0100 (CET) Original-Received: from [129.27.147.101] (pc21.radar.tugraz.at [129.27.147.101]) by isvr.radar.tugraz.at (Postfix) with ESMTP id 8D5721BE90 for ; Wed, 15 Dec 2004 09:01:33 +0100 (CET) Original-To: Tru64 Unix Managers X-Accept-Language: de-DE, de, en-us, en User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Envelope-From: X-ORNL-Envelope-To: tru64-unix-managers@sws1.ctd.ornl.gov rfc822;tru64-unix-managers@ornl.gov X-Scanned-By: MIMEDefang 2.49 on 129.27.5.7 Xref: main.gmane.org gmane.os.tru64.managers:7868 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7868 Hi, Well, I did not find a solution, only a workaround (see below). Some people suggested to use a static host route on AMANDEV like this: # route add -host difsvrw1 gateway where gateway would be the aliased IP address. However this still does not work and TCP packets arrive with the main IP address at the destination rather than with the aliased IP address. Now my workaround was this: At the destination, add a static host route back to the MAIN IP address of AMANDEV. So my final working setup is this: - on AMANDEV: MAIN IP = 10.192.1.3 ALIASED IP = 10.141.29.5 - on DIFSVRW1 MAIN IP = 10.141.29.3 # route add -host 10.192.1.3 10.141.29.5 So when TCP packets arrive at DIFSVRW1 with the (wrong) source IP 10.192.1.3, DIFSVRW1 routes the answers back to 10.141.29.5 which is the correct IP. So in a nutshell: The bug in Tru64 persists but this workaround can be used in similar setups. Thanks to the following people for their replies: Michael James Bradford Derek Haining Thomas Cunningham Peter Gergen Tom Thomas Leitner schrieb: > > Hi, > > I need to connect a development machine (DS20E, running Tru64 4.0G) > called AMANDEV to a test machine called DIFSVRW1 which has its IP > address in a different network. So I've used "ifconfig -alias" to give > AMANDEV an IP in the same network as DIFSVRW1. > > The problem is: > > 1.) I can ping AMANDEV from DIFSVRW1 and vice versa: This is OK > 2.) I can telnet from DIFSVRW1 to AMANDEV: This is OK > 3.) HOWEVER: I cannot telnet from AMANDEV to DIVSVRW1. This is *NOT OK* > and this is exactly what we need. > > Using an Ethernet sniffer we found out that for case 3) above, > the AMANDEV machine does not use the ALIASED IP address as the > source address. It rather uses the main IP address assiged to the > interface. This is the reason why DIFSVRW1 cannot answer to the > telnet packets. > > So this seems to be a bug in Tru64 4.0G (we're using the latest > patch kit already) that outbound TCP/IP calls to a network > over an aliased IP address does not get the proper source IP > address assigned. > > Any ideas anyone how to solve that? > > Thanks // Tom > > > > > > > > >