Bug 17745

Summary: Wrong outgoing IP address with IP aliases
Product: [Retired] Red Hat Linux Reporter: Need Real Name <volker>
Component: kernelAssignee: Michael K. Johnson <johnsonm>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-01-30 00:24:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2000-09-20 15:22:45 UTC
I have set up my machine with one IP alias interface (eth0:0). The to
adresses are assigned
correctly. But if I establish an outgoing connection the originating
address is not the primary
IP assigned to eth0, but the alias IP assigned to eth0:0. If I run "ifdown
eth0" and afterwards
"ifup eth0" everything works fine and the right IP address is used for
outgoing connections.

Comment 1 Bill Nottingham 2001-01-30 00:23:57 UTC
That is done by the kernel; it's not an initscripts problem.

Comment 2 Michael K. Johnson 2001-01-30 23:00:52 UTC
David Miller reports:
The selection of source address for outgoing packets
through primary or aliased interfaces is basically
arbitrary.

Those who absolutely require a specific source address
need to use the "ip" program to tell the kernel the
preferred source address for outgoing routes through
those interfaces.