* ip alias and default outgoing interface
@ 2002-05-22 4:05 Mohammad A. Haque
2002-05-23 14:11 ` Bill Davidsen
2002-05-23 14:25 ` Wiktor Wodecki
0 siblings, 2 replies; 4+ messages in thread
From: Mohammad A. Haque @ 2002-05-22 4:05 UTC (permalink / raw)
To: linux-kernel
I've got a setup where I have one ethernet card and multiple ips
assigned using ip alias.
i've noticed that sometimes out going traffic goes out using the ip of
the last interface I brought up.
Is this supposed to happen? How do I make it so that the default gw
interface is used?
Thanks
--
=====================================================================
Mohammad A. Haque http://www.haque.net/
mhaque@haque.net
"Alcohol and calculus don't mix.
Don't drink and derive." --Unknown
=====================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ip alias and default outgoing interface
2002-05-22 4:05 ip alias and default outgoing interface Mohammad A. Haque
@ 2002-05-23 14:11 ` Bill Davidsen
2002-05-23 18:06 ` J Sloan
2002-05-23 14:25 ` Wiktor Wodecki
1 sibling, 1 reply; 4+ messages in thread
From: Bill Davidsen @ 2002-05-23 14:11 UTC (permalink / raw)
To: Mohammad A. Haque; +Cc: linux-kernel
On Wed, 22 May 2002, Mohammad A. Haque wrote:
> I've got a setup where I have one ethernet card and multiple ips
> assigned using ip alias.
>
> i've noticed that sometimes out going traffic goes out using the ip of
> the last interface I brought up.
>
> Is this supposed to happen? How do I make it so that the default gw
> interface is used?
Time to tell us which kernel you run. I haven't seen this with 2.4.recent,
but most of the connections are either incoming or explicitly SNET'd.
--
bill davidsen <davidsen@tmr.com>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ip alias and default outgoing interface
2002-05-22 4:05 ip alias and default outgoing interface Mohammad A. Haque
2002-05-23 14:11 ` Bill Davidsen
@ 2002-05-23 14:25 ` Wiktor Wodecki
1 sibling, 0 replies; 4+ messages in thread
From: Wiktor Wodecki @ 2002-05-23 14:25 UTC (permalink / raw)
To: linux-kernel; +Cc: Mohammad A. Haque
[-- Attachment #1: Type: text/plain, Size: 672 bytes --]
On Wed, May 22, 2002 at 12:05:24AM -0400, Mohammad A. Haque wrote:
> I've got a setup where I have one ethernet card and multiple ips
> assigned using ip alias.
> Is this supposed to happen? How do I make it so that the default gw
> interface is used?
I've seen similar behaviour with current 2.4 kernels with several nics
with different ip's in one subnet. The solution was to create an own
routing table for each ip (networkcard therefore) and to hammer static
ip-nic arp entries at the router before. Look at the advanced routing
howto for more information or write me a private email.
--
Regards,
Wiktor Wodecki <w.wodecki@manfred-dahlhoff.de>
[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ip alias and default outgoing interface
2002-05-23 14:11 ` Bill Davidsen
@ 2002-05-23 18:06 ` J Sloan
0 siblings, 0 replies; 4+ messages in thread
From: J Sloan @ 2002-05-23 18:06 UTC (permalink / raw)
To: Bill Davidsen; +Cc: Mohammad A. Haque, linux-kernel
I'm seeing also - this is with 2.4.19-pre3aa2 -
and I know I saw it with earlier 2.4 kernels.
I just checked and I'm seeing it on my
workstation here, running 2.4.19-pre8-ac5.
I'd have a working ethernet interface, with
a functional default route - now if I bring up
a virtual address on the same ethernet
device, all outgoing traffic from that point
on emanates from the IP of the new virtual
interface - which created some problems
if there are firewall rules based on IP addr.
I know there is some way to fix this with the
advanced routing features, but I hadn't time
to look into it until now - and the above does
seem to be the default behavior.
Joe
Bill Davidsen wrote:
>On Wed, 22 May 2002, Mohammad A. Haque wrote:
>
>
>
>>I've got a setup where I have one ethernet card and multiple ips
>>assigned using ip alias.
>>
>>i've noticed that sometimes out going traffic goes out using the ip of
>>the last interface I brought up.
>>
>>Is this supposed to happen? How do I make it so that the default gw
>>interface is used?
>>
>>
>
>Time to tell us which kernel you run. I haven't seen this with 2.4.recent,
>but most of the connections are either incoming or explicitly SNET'd.
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-05-23 18:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-22 4:05 ip alias and default outgoing interface Mohammad A. Haque
2002-05-23 14:11 ` Bill Davidsen
2002-05-23 18:06 ` J Sloan
2002-05-23 14:25 ` Wiktor Wodecki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox