From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joshua Daniel Franklin Date: Thu, 09 May 2002 14:37:28 +0000 Subject: [LARTC] Routing to virtual interfaces Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi. I asked this question on the linuxmanagers list, and the only helpful response I got was to ask this list. :) So: I've got a server with eth0 and eth0:0 (and other interfaces, but that's not important right now). Sometimes outgoing connections show up as coming from the IP address of eth0, sometimes from eth0:0. Here are the interfaces: eth0 Link encap:Ethernet HWaddr 00:B0:D0:FC:DC:88 inet addr:12.41.224.2 Bcast:12.41.224.63 Mask:255.255.255.192 [...] eth0:0 Link encap:Ethernet HWaddr 00:B0:D0:FC:DC:88 inet addr:12.41.224.13 Bcast:12.41.224.63 Mask:255.255.255.192 And, for example, with SMTP, I've gotten these headers: Received: from virtual.iocc.com (EHLO iocc.com) (12.41.224.13) by mta591.mail.yahoo.com with SMTP; 09 May 2002 07:22:12 -0700 (PDT) But then with telnet (to a different machine): May 9 09:32:22 jay xinetd[29016]: libwrap refused connection to telnet from 12.41.224.2 Can anyone tell me either how to get it always to use eth0, or why an interface is apparently chosen at random? -- Joshua Daniel Franklin Network Administrator IOCC.COM _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/