Do 'dumb' (non-smart, non-managed) switches have an IP address?

25

5

Do 'dumb' switches, i.e., non-smart, non-managed network switches have an IP address?

I'm scanning various ranges and not seeing them show up. I know by their definition they won't have a web interface, but I wonder if they would show up at all?

sam

Posted 2018-02-24T13:32:15.547

Reputation: 3 411

13Switches are transparent network devices. – Ron Maupin – 2018-02-25T01:22:30.657

8Even smart switches don't necessarily have IP address. I think there used to be switches configurable through RS-232 serial port. – el.pescado – 2018-02-25T10:18:24.180

4@Ron They're transparent to forwarded traffic, but that doesn't prevent them from sending and receiving on their own. – user1686 – 2018-02-25T11:19:50.997

@el.pescado: Most are still configurable through RS-232, but yes, I've also seen some old ones where console was the only option (no IP support). – user1686 – 2018-02-26T05:58:25.290

Answers

54

An unmanaged switch does not even know what IP is. It will forward IP packets as well as many other protocols without ever understanding what the difference is.

All the switch needs to know in order to decide where a packet goes is the MAC address.

Destination and source MAC are two of the three Ethernet header fields which the higher layer must always provide, the third is EtherType which is a 16 bit number indicating what the higher layer protocol is. Some examples are

0x0800 IPv4
0x0806 ARP
0x86DD IPv6

In general these numbers are opaque to switches and are treated as just data. There are exceptions such as 0x8874 and 0x8899 which some switches (usually managed) will use to detect loops.

Most network analysis tools won't be able to tell the difference between a pair of machines directly connected with an Ethernet cable and a pair of machines connected through 1, 2, or more switches.

By probing a switched network from 4 or more machines with carefully crafted source and destination MAC addresses it is possible to deduce some information about the structure of the network by observing if two network paths are using the same CAM table or not. It may also be able to measure roughly the size of the CAM table and how quickly entries are timed out.

Based on such metrics it may be possible for sophisticated network analysis tools to say how many switches are on your network and maybe even make some guesses about the chips used in those switches.

kasperd

Posted 2018-02-24T13:32:15.547

Reputation: 2 691

3Good answer, could be excellent if you added that IP is layer3 and ethernet is layer2 of the OSI model, ARP/MAC are a layer2 addressing system and therefore part of ethernet. – Criggie – 2018-02-25T03:06:17.440

5@Criggie I am not going to add that to my answer because it would be misleading. The design of IP does not follow the OSI model. IP is designed to run across many different physical media and does not require a specific number of layers beneath it. As such assigning a layer number to IP is not possible. Moreover ARP is not part of Ethernet. ARP is a protocol running on top of Ethernet. From an Ethernet perspective ARP, IPv4, and IPv6 are three higher layer protocols running in parallel at the same layer just above Ethernet. But I can add a brief explanation of the Ethertype field. – kasperd – 2018-02-25T09:49:54.103

1Fair points all. – Criggie – 2018-02-25T22:43:33.943

1IP doesn't follow OSI in design, but in practice everyone calls Ethernet L2, IP L3, and TCP/UDP L4. – chrylis -on strike- – 2018-02-26T04:52:36.747

3It might also be worth noting than an unmanaged ethernet switch doesn't even have its own MAC address. – alex.forencich – 2018-02-26T06:46:34.653

29

No, they shouldn't appear at all and they don't have any IP. They're just network switches.

user772515

Posted 2018-02-24T13:32:15.547

Reputation:

7

An IP address is used to access a device. So a switch which has software to allow settings, might need an IP address to let a user access its management system or web interface.

But by definition, a dumb switch is never accessed that way by a user.

It is preprogrammed with a plain "redirect everything" firmware or ASIC (chip). It doesn't need an IP of its own, to be able to move ethernet frames (containing data packets) between incoming and outbound physical ports, and it doesn't have a management system that a user can access.

So it doesn't have (or need, or use) an IP address for itself... and that's why it doesn't have one.

Stilez

Posted 2018-02-24T13:32:15.547

Reputation: 1 183

At the ethernet level they're frames, or ethernet frames. Not Packets. Sorry for pedantry. – Criggie – 2018-02-25T22:44:28.447

1Thanks, its good to be put right, I appreciate the correction and have edited the answer - hopefully now better. I figures that "packets" would be more readily understood. – Stilez – 2018-02-26T08:38:21.120