IP Alias default outgoing interface?



Hello,

I've run into this situation on several versions of RedHat linuxes..
Fedora, and now Cent -- I don't know if it happens on others.

I am currently running CentOS 4.2
- of the 4 network interfaces in the server, only eth0 is
comfigured/active
- All of the ip addresses on eth0 are "public" IP addresses, not NAT
private addresses
- While IP tables is installed on the system I've disabled it for
purposes of diagnosing this issue
- I have no advanced routing at all, a simple static route to a
default gateway.
- This is my kernel: 2.6.9-22.0.1.ELsmp

Here is my situation, I have a NIC with a n IP address, and several IP
aliases; example:
eth0: - 10.10.10.10
eth0:1 - 10.10.10.11
eth0:2 - 10.10.10.12
eth0:3 - 10.10.10.13
eth0:4 - 10.10.10.14
eth0:5 - 10.10.10.15

(my actual IP addresses are public IP addresses)

When making outgoing connections the system always uses the very last
IP alias as the connection IP. This is bad news for a mailserver, since
the main IP is tyipcally what you have reverse DNS'd. I need the
default outgoing IP address to be the NIC's IP address, not the IP
alias address.

What I've been doing is moving the IP I need as the default IP to the
last IP alias, but this screws up applications that look up just eth0.

Anyone else run into this, and if you have, how have you dealt with it?

Thank you,

--B

.



Relevant Pages

  • DHCP doesnt work under Fedora Core 3 - using Knoppix DHCP has no problems
    ... After switching from Fedora Core 1 to Fedora Core 3 by reinstallation ... thanks go to Klaus Knopper, the editor of Knoppix, for saving me all ... divert: allocating divert_blk for eth0 ... alias ide_cs ide-cs ...
    (Fedora)
  • No Sound Audio CD Compaq SR1200NX
    ... through Stanton Finley's excellent Installation Notes where applicable ... When I put an audio cd in the drive the cd player launches but will not ... I have been reading e-mails to the Fedora list about non-working cd's ... alias scsi_hostadapter sata_via ...
    (Fedora)
  • Re: which init script takes care of loading the sound?
    ... The other place that occurs to me is /etc/modprobe.conf which Fedora 6 did have a line for the sound maybe that is what ... alias scsi_hostadapter sata_via ...
    (Fedora)
  • Re: Intel 82566DC-2 problem
    ... and looks like modprobe.conf on other Fedora 7 computers I ... The reason I asked is it seems to contain sound and Ethernet information for my computer. ... alias scsi_hostadapter pata_ali ... I have no idea unless the source from the Intel site is older than Fedora uses. ...
    (Fedora)
  • Fedora low-latency kernel(ccrma), RME Cardbus,Multiface
    ... I am getting acquainted with the Fedora low-latency kernel, ... Multiface, ... alias char-major-116 snd ... alias sound-slot-0 snd-card-0 ...
    (Fedora)