03-06-2017 09:14 AM - edited 03-08-2019 09:37 AM
Hi,
its a very basic switching doubt.
can someone help me understand what is the meaning when we say ..... " its just a layer-2 network " ...? Because today's network have IP address configured on all the devices so why we still say Layer-2 network.
switch-B (ip address)
|
|
Switch - A (ip address)
|
|
Hosts (ip address)
03-06-2017 09:38 AM
Hi
Layer 2 networks use the MAC addresses to send data on a local area on a switch, Now there are switches multi layer, they can work on layer 2 and layer 3 at the same time. A layer 2 network is built by layer 2 switches or bridges only.
The layer 2 switches can have a management IP but they are unable to run routing tasks by themselves, a layer 3 devices is required for routing.
Hope it is useful.
:-)
03-06-2017 09:40 AM
An IP address on a L2 switch, as also noted by Julio, is for management of the switch. I.e. it's basically just another host IP, where in this case, the host is a L2 switch.
For " its just a layer-2 network " would imply the network does not use any L3 routing. Your hosts, on a L2 only network, should also work with Ethernet hubs and/or dumb/non-management switches.
03-06-2017 02:42 PM
To look at this question from a slightly different perspective let us start from a fundamental concept:
a layer 2 network does forwarding using layer 2 MAC addresses.
a layer 3 network does forwarding using layer 3 IP addresses.
With that is mind I would say that the answer to the original post is that when you say it is just a layer 2 network then you are saying that it is a network that forwards traffic using the MAC address and ignoring the IP address. So functionally in this network all devices are in the same IP network.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide