I've configured a server with 2 network interfaces, eth0 and eth1. eth0
= 192.168.2.211 and eth1 = 192.168.2.212. eth1 seemed to work properly,
but whenever I open a connection to 192.168.2.212, I see the traffic on
eth0.
Digging deeper led me to this finding. When there is an arp who-has
192.168.2.212, the arp reply contains the MAC address of eth0 instead of
eth1.
Both ports are connected to a Cisco Catalyst switch.
Any idea of how this could happen and the solution? The only cause that
I can think of is that at the beginning, I tried configuring bonding on
this server, so both interfaces seemed to have the same MAC address, but
I configured this bonded interface with only one IP address anyway,
and I think it was in another subnet.
Any idea welcome.
Thanks,
Ugo
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
01-13-2009, 06:18 PM
"Gabi C"
Traffic going to eth1 is goin
post ifconfig -a
On Tue, Jan 13, 2009 at 9:15 PM, Ugo Bellavance <ugob@lubik.ca> wrote:
> Hi,
>
> I'm scratching my head on this one...
>
> I've configured a server with 2 network interfaces, eth0 and eth1. eth0 =
> 192.168.2.211 and eth1 = 192.168.2.212. eth1 seemed to work properly, but
> whenever I open a connection to 192.168.2.212, I see the traffic on eth0.
>
> Digging deeper led me to this finding. When there is an arp who-has
> 192.168.2.212, the arp reply contains the MAC address of eth0 instead of
> eth1.
>
> Both ports are connected to a Cisco Catalyst switch.
>
> Any idea of how this could happen and the solution? The only cause that I
> can think of is that at the beginning, I tried configuring bonding on this
> server, so both interfaces seemed to have the same MAC address, but I
> configured this bonded interface with only one IP address anyway, and I
> think it was in another subnet.
>
> Any idea welcome.
>
> Thanks,
>
> Ugo
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
Did you assign 192.168.2.212 to eth0. Clear the ARP cache on your
switch/server. Then try again.
-Jai
-----Original Message-----
From: redhat-list-bounces@redhat.com
[mailto:redhat-list-bounces@redhat.com] On Behalf Of Ugo Bellavance
Sent: Tuesday, January 13, 2009 11:15 AM
To: redhat-list@redhat.com
Subject: Traffic going to eth1 is goin
Hi,
I'm scratching my head on this one...
I've configured a server with 2 network interfaces, eth0 and eth1. eth0
= 192.168.2.211 and eth1 = 192.168.2.212. eth1 seemed to work properly,
but whenever I open a connection to 192.168.2.212, I see the traffic on
eth0.
Digging deeper led me to this finding. When there is an arp who-has
192.168.2.212, the arp reply contains the MAC address of eth0 instead of
eth1.
Both ports are connected to a Cisco Catalyst switch.
Any idea of how this could happen and the solution? The only cause that
I can think of is that at the beginning, I tried configuring bonding on
this server, so both interfaces seemed to have the same MAC address, but
I configured this bonded interface with only one IP address anyway,
and I think it was in another subnet.
Any idea welcome.
Thanks,
Ugo
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
01-13-2009, 06:56 PM
Ugo Bellavance
Traffic going to eth1 is goin
Gabi C a écrit :
by the way ..the mac you get at arp is 00:22:64:03:5E:16?
Yes
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
01-13-2009, 06:58 PM
Ugo Bellavance
Traffic going to eth1 is goin
Gabi C a écrit :
and of course; 'netstat -rn' and 'ip rou sh'
[root@server ~]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth1
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0
eth0
[root@server ~]# ip rou sh
192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.211
192.168.2.0/24 dev eth1 proto kernel scope link src 192.168.2.212
169.254.0.0/16 dev eth1 scope link
default via 192.168.2.1 dev eth0
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
01-15-2009, 12:49 PM
"Michael Simpson"
Traffic going to eth1 is goin
On 1/13/09, Ugo Bellavance <ugob@lubik.ca> wrote:
> Hi,
>
> I'm scratching my head on this one...
>
> I've configured a server with 2 network interfaces, eth0 and eth1. eth0 =
> 192.168.2.211 and eth1 = 192.168.2.212. eth1 seemed to work properly, but
> whenever I open a connection to 192.168.2.212, I see the traffic on eth0.
you can't use 2 interfaces on the same subnet without bonding
you used to be able to years ago but it doesn't work now
note your default route
mike
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
01-15-2009, 01:29 PM
"Broekman, Maarten"
Traffic going to eth1 is goin
> -----Original Message-----
> From: redhat-list-bounces@redhat.com
> [mailto:redhat-list-bounces@redhat.com] On Behalf Of Michael Simpson
> Sent: Thursday, January 15, 2009 8:49 AM
> To: General Red Hat Linux discussion list
> Subject: Re: Traffic going to eth1 is goin
>
> On 1/13/09, Ugo Bellavance <ugob@lubik.ca> wrote:
> > Hi,
> >
> > I'm scratching my head on this one...
> >
> > I've configured a server with 2 network interfaces, eth0
> and eth1. eth0 =
> > 192.168.2.211 and eth1 = 192.168.2.212. eth1 seemed to
> work properly, but
> > whenever I open a connection to 192.168.2.212, I see the
> traffic on eth0.
>
> you can't use 2 interfaces on the same subnet without bonding
> you used to be able to years ago but it doesn't work now
> note your default route
>
> mike
That's not strictly true. You can use as many interfaces on the same
subnet as you want and traffic to the IP addresses on those interfaces
will come in initially on that interface, but then the local routing
rules will force the traffic out the default route, which would appear
to be eth0. You can change that behavior by setting up iptables rules
that force the traffic over different interfaces depending on the source
/ destination of the traffic.
Maarten Broekman
Email: maarten.broekman@fmr.com
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list