Geek question
Jun. 14th, 2004 08:18 pmAbout network switches. Can you join two cheapo (Dabs Value) 100BASE-T switches with a crossover cable?
One friend argues "no" on the grounds that before any switch will send a packet to the other, it would have to know of an address at the other end, but neither switch will know of any addresses on the other switch until some packets have been exchanged. (Is that right?) This makes sense, but it occurs to me that if switches broadcast any packets they don't know how to route then all will be well. I don't know if they do though.
I also have no idea what to do if I can't connect them this way! Possibly buy another PCMCIA Ethernet card for the laptop that's also the gateway, but they are costly.
Advice gratefully received...
One friend argues "no" on the grounds that before any switch will send a packet to the other, it would have to know of an address at the other end, but neither switch will know of any addresses on the other switch until some packets have been exchanged. (Is that right?) This makes sense, but it occurs to me that if switches broadcast any packets they don't know how to route then all will be well. I don't know if they do though.
I also have no idea what to do if I can't connect them this way! Possibly buy another PCMCIA Ethernet card for the laptop that's also the gateway, but they are costly.
Advice gratefully received...
no subject
Date: 2004-06-14 12:36 pm (UTC)no subject
Date: 2004-06-14 12:40 pm (UTC)as far as switch1 is concerned, switch2 /is/ all the mac addresses connected to it.
there might be greater confusion if they are expensive managed switches (web/telnet interfaces etc), but i've been using daisychained cheapos for ever :)
(i use the dlink 1024/1016 series, just bog standard unmanaged switches)
no subject
Date: 2004-06-14 04:00 pm (UTC)This is only really an issue if the switch limits each port to having a single MAC/IP address pair. I know that the Cisco switches do have this option.
no subject
Date: 2004-06-14 04:10 pm (UTC)Re: Yeah...
Date: 2004-06-14 12:39 pm (UTC)Has yours got an MDI/X port on it? (I.e. mine is an 8 port switch, but with 9 ports, one for patching, or, if required, the 8th port is made redundant by plugging in a crossover to another switch).
But yeah, shouldn't be a problem (probably).
no subject
Date: 2004-06-14 01:01 pm (UTC)Or some such mechanism. I don't know for sure if it's looking at the IP packet types.
In any case, a switch will send a packet to an unknown destination to every switchport in order to ascertain where the destination is in relation to the switch, and remember that information.
no subject
Date: 2004-06-14 01:16 pm (UTC)Some 4/8-ports have a 5/9th uplink port that's shared with the 4/8th port. A little switch enables it. Using the uplink port you don't need a crossover cable [already crossed over internally.]
no subject
Date: 2004-06-14 01:54 pm (UTC)You should have no problems doing what you suggest with a pair
of those Dabs value switches. I've just had a look at their
specs and two things are in your favour - i) there's specific
mention of using them with hubs and other switches, and ii)
there are no "red flags" in the specs suggesting they won't do
what you want. And the prices are truly amazing. I cannot
believe an 8-port 10/100 switch goes for 12 quid, VAT included,
these days - what value!
In the very early days of switches - and I'm talking maybe 8 or
9 years ago here .. - what you generally found was that most
ports on the switch could only learn one MAC address. Only a
single ethernet device, e.g. one server, could be plugged into
these ports. You then had a limited number - maybe just two -
of ports which could handle multiple MAC addresses. These were
the only ones that hubs or switches could plug into, as multiple
MAC addresses would come from them.
Soon after this, switches evolved so that any port could learn
multiple MAC addresses, meaning hubs and other switches could
just be hung off any port that was convenient.
And that's what every switch seems to do these days, even the
very very cheapest.
The link below is to a set of web pages that have a very clear
explanation of ethernet technology and devices. Starting from
the basics of how LANs and ethernet bridges work, they explain
how switches are really just multiple port bridges. And they do
this with lots of clear pictures and handy hyperlinks.
http://www.erg.abdn.ac.uk/users/gorry/course/lan-pages/bridge.html
Good luck with your networking!
no subject
Date: 2004-06-15 09:51 am (UTC)Now all I have to do is diagnose and solved this weird packet loss problem - which might be the subject of yet another LJ post...
no subject
Date: 2004-06-14 02:37 pm (UTC)Don't get too creative with hanging many switches off many switches and don't go over a few tens of hosts and it should be fine.
Oh, and don't create any loops in your network, or it'll all go to ratshit really fast.
(in detail: each switch will learn what is on each port of it when it sees a packet from that host. If it sees packets from more than one host it'll just think more than one host is connected to that port.
Ditto for the other switch, so each switch thinks there's one port with a whole lot of hosts on it and doesn't see the other switch.
There's a table in the switch of which host is on which port, which limits how many hosts can be on the ethernet that the switch is in. It's at least tens, and is thousands on any decent switch. However the switches do assume that each host is only reachable by one port - if you make a loop, the switches can forward packets to each other ad infinitum and there's enough delay in the network that you do get feedback. So Don't Do That.
Also don't make the chain of switches between any host too long, or the delay can be too long for collision detection to work right. You need several switches in a chain for that to happen so as long as you haven't got delusions of grandeur you'll be fine.)
no subject
Date: 2004-06-15 06:25 am (UTC)no subject
Date: 2004-06-16 03:26 am (UTC)Anyway, the network is now completely working, so I'm happy. And I have discovered that all my remaining spare cables in the flat are somewhat fucked, so off to get more cables I go...
no subject
Date: 2004-06-15 03:38 pm (UTC)