All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Linux bridging and cascaded switches
Date: Thu, 21 Jun 2007 01:41:53 +0000	[thread overview]
Message-ID: <4679D761.4090101@riverviewtech.net> (raw)
In-Reply-To: <925A849792280C4E80C5461017A4B8A210B8D8@mail733.InfraSupportEtc.com>

On 6/19/2007 10:31 PM, Greg Scott wrote:
> More fundamentally, can I cascade these switches and my 
> bridge/firewall this deep?  How do the Internet router and internal 
> servers find each others' MAC addresses when they are 4 "hops" (OSI 
> layer 2 hops) separated?  Or am I making this too complicated?

Yes, you probably can cascade the switches like that, though I question 
is that what you really want to do or not.

As you have indicated, the switches operate at (OSI) layer 2.  Thus they 
pass (sans filtering) any and all non-broadcast traffic that they do not 
know the destination for out all ports except for the one that it came 
in on.  At least this is the standard operating procedure of most switches.

Seeing as how ARP requests are broadcast they are forwarded out all 
interfaces except for the one they come in.  So, if you ARP on one 
switch, it will forward it to the next switch, which will in turn 
forward it on to the next, and so on until there are no more ports to 
forward the traffic out.  ARP replies are unicast from the MAC of the 
ARPed system back to the ARPing system.  This return path is when the 
intermediary switches learn of the MAC address of the ARPed system.  So, 
subsequent packets to the ARPed system will pass out the switches based 
on the target MAC address which was previously learned during the ARP.

Incidentally, this is why some systems, especially load balancers and 
the likes, will send out a "Gratuitous ARP" (a.k.a. GARP) packet to 
pre-populate (if you will) the switches (MAC) address table(s).

Hope that helps shed some light on the subject.



Grant. . . .
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  parent reply	other threads:[~2007-06-21  1:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19 22:54 [LARTC] Linux bridging and cascaded switches Greg Scott
2007-06-19 23:03 ` Alex Samad
2007-06-19 23:35 ` Greg Scott
2007-06-20  3:31 ` Greg Scott
2007-06-20  4:07 ` Alex Samad
2007-06-20 20:58 ` John Default
2007-06-21  1:34 ` Grant Taylor
2007-06-21  1:41 ` Grant Taylor [this message]
2007-06-21  1:45 ` Grant Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4679D761.4090101@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.