Routing to virtual interfaces
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.192And, 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?
Signature · 7 lines
Joshua Daniel Franklin Network Administrator IOCC.COM _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/