Bug 17745 - Wrong outgoing IP address with IP aliases
Summary: Wrong outgoing IP address with IP aliases
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 6.2
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Michael K. Johnson
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2000-09-20 15:22 UTC by Need Real Name
Modified: 2008-05-01 15:37 UTC (History)
0 users

Clone Of:
Last Closed: 2001-01-30 00:24:01 UTC

Attachments (Terms of Use)

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

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.

Note You need to log in before you can comment on or make changes to this bug.