This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Dual Ethernet Cards of Intel i82559 for Intel IXDP465 platform
- From: Matt Jerdonek <maj1224 at yahoo dot com>
- To: "Robin.Lin" <Robin dot Lin at advantech dot com dot tw>, ecos-discuss at sources dot redhat dot com
- Date: Mon, 26 Dec 2005 09:52:44 -0800 (PST)
- Subject: Re: [ECOS] Dual Ethernet Cards of Intel i82559 for Intel IXDP465 platform
I'm not sure that the behavior you describe is
incorrect. From the IP stack's viewpoint, it is
trying to forward an ICMP response, and it'll take the
shortest path. If the IP stack's route to the subnet
is via eth0, then it'll use eth0 regardless of what
interface the packet was received on. This is
especially true for ICMP traffic since it isn't bound
to an IP address.
You might consider writing some TCP code and using
bind(...) to specify the source ip address you'd like
to use. That might provide different results.
-- Matt
--- "Robin.Lin" <Robin.Lin@advantech.com.tw> wrote:
> Dear all,
>
> When I enable two Ethernet cards support of Intel
> i82559 for Intel
> IXDP465 platform, I get some problems.
> If I set the both IP address in the same domain,
> such as 192.168.0.1 and
> 192.168.0.2, subnet mask is 255.255.255.0 and
> default gateway is
> 192.168.0.254.
> It seems work fine. But actually, when I ping the
> first Ethernet card, I
> get reply packet from the first Ethernet card. And
> then I ping the
> second Ethernet card, I ALSO get reply packet from
> the first Ethernet
> card. If I unplug the second Ethernet card, I can't
> ping the second
> Ethernet card. And if I unplug the first Ethernet
> card, I can't ping
> BOTH Ethernet card. The same situation can reproduce
> on Ix86 platform.
> It's weird.
> So, if I want the Ethernet card send reply packet
> through the incoming
> Ethernet card, what should I do?
> Any reply or suggestion would be good.
>
> Best regards,
>
> Robin Lin
>
>
> --
> Before posting, please read the FAQ:
> http://ecos.sourceware.org/fom/ecos
> and search the list archive:
> http://ecos.sourceware.org/ml/ecos-discuss
>
>
__________________________________________
Yahoo! DSL ? Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss