This puzzle shows the difference between a hub and a switch. Have each of the servers ping the computers on the same lan as themselves, and have those computers ping the server. The switch learns which device is attached to it and only sends the packet to that computer, while the hub sends the packet to every device on the subnet. Ce puzzle montre la différence entre un hub et un switch. Demander à chacun des serveurs d'interroger les ordinateurs sur le même LAN qu'ils ont eux-mêmes et demander à ces ordinateurs d'envoyer un ping au serveur. Le commutateur apprend quel périphérique est connecté et envoie uniquement le paquet à cet ordinateur, tandis que le concentrateur envoie le paquet à chaque périphérique sur le sous-réseau. Switch vs Hub 1024 1024 100 none 0 4 174 full False False net_hub0 100 160 740,390 net_hub False False 0.0.0.0 0.0.0.0 0.0.0.0 gw lo lo0 160 161 net_hub0 lo0 lo 161 False lo0 127.0.0.1 255.0.0.0 0.0.0.0 ip Untagged management_interface management_interface0 160 162 net_hub0 management_interface0 management_interface 162 False management_interface0 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged port port1 160 163 net_hub0 port1 port 163 False port1 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged port port2 160 164 net_hub0 port2 port 164 False port2 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged port port3 160 165 net_hub0 port3 port 165 False port3 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged port port4 160 166 net_hub0 port4 port 166 False port4 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged port port5 160 167 net_hub0 port5 port 167 False port5 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged port port6 160 168 net_hub0 port6 port 168 False port6 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged port port7 160 169 net_hub0 port7 port 169 False port7 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged net_switch0 100 112 100,390 net_switch False False 192.168.1.1 255.255.255.0 0.0.0.0 gw lo lo0 112 113 net_switch0 lo0 lo 113 False lo0 127.0.0.1 255.0.0.0 0.0.0.0 ip Untagged management_interface management_interface0 112 114 net_switch0 management_interface0 management_interface 114 False management_interface0 192.168.1.4 255.255.255.0 0.0.0.0 ip Untagged port port1 112 115 net_switch0 port1 port 115 False port1 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged port port2 112 116 net_switch0 port2 port 116 False port2 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged port port3 112 117 net_switch0 port3 port 117 False port3 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged port port4 112 118 net_switch0 port4 port 118 False port4 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged port port5 112 119 net_switch0 port5 port 119 False port5 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged port port6 112 120 net_switch0 port6 port 120 False port6 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged port port7 112 121 net_switch0 port7 port 121 False port7 0.0.0.0 0.0.0.0 0.0.0.0 ip Untagged pc0 100 106 200,520 pc False False 192.168.1.1 255.255.255.0 0.0.0.0 gw lo lo0 106 107 pc0 lo0 lo 107 False lo0 127.0.0.1 255.0.0.0 0.0.0.0 ip Untagged eth eth0 106 108 pc0 eth0 eth 108 False eth0 192.168.1.5 255.255.255.0 0.0.0.0 ip Untagged pc1 100 155 620,530 pc False False 0.0.0.0 0.0.0.0 0.0.0.0 gw lo lo0 155 156 pc3 lo0 lo 156 False lo0 127.0.0.1 255.0.0.0 0.0.0.0 ip Untagged eth eth0 155 157 pc3 eth0 eth 157 False eth0 192.168.2.5 255.255.255.0 0.0.0.0 ip Untagged router0 100 132 100,250 router False False 192.168.3.2 255.255.255.0 192.168.4.2 gw lo lo0 132 133 router0 lo0 lo 133 False lo0 127.0.0.1 255.0.0.0 0.0.0.0 ip Untagged eth eth0 132 134 router0 eth0 eth 134 False eth0 192.168.1.1 255.255.255.0 0.0.0.0 ip Untagged eth eth1 132 135 router0 eth1 eth 135 False eth1 192.168.3.1 255.255.255.0 0.0.0.0 ip Untagged 192.168.2.1 255.255.255.0 192.168.3.2 route 192.168.2.1 255.255.255.0 192.168.3.2 route router1 100 136 740,250 router False False 192.168.4.2 255.255.255.0 192.168.4.2 gw lo lo0 136 137 router1 lo0 lo 137 False lo0 127.0.0.1 255.0.0.0 0.0.0.0 ip Untagged eth eth0 136 138 router1 eth0 eth 138 False eth0 192.168.4.1 255.255.255.0 0.0.0.0 ip Untagged eth eth1 136 139 router1 eth1 eth 139 False eth1 192.168.2.1 255.255.255.0 0.0.0.0 ip Untagged 192.168.1.0 255.255.255.0 192.168.4.2 route 192.168.1.0 255.255.255.0 192.168.4.2 route router2 100 140 403,110 router False False 0.0.0.0 0.0.0.0 0.0.0.0 gw lo lo0 140 141 router2 lo0 lo 141 False lo0 127.0.0.1 255.0.0.0 0.0.0.0 ip Untagged eth eth0 140 142 router2 eth0 eth 142 False eth0 192.168.3.2 255.255.255.0 0.0.0.0 ip Untagged eth eth1 140 143 router2 eth1 eth 143 False eth1 192.168.4.2 255.255.255.0 0.0.0.0 ip Untagged 192.168.1.0 255.255.255.0 192.168.3.1 route 192.168.2.0 255.255.255.0 192.168.4.1 route 192.168.1.0 255.255.255.0 192.168.3.1 route 192.168.2.0 255.255.255.0 192.168.4.1 route server0 100 100 8,520 server True True 192.168.1.1 255.255.255.0 0.0.0.0 gw lo lo0 100 101 server0 lo0 lo 101 False lo0 127.0.0.1 255.0.0.0 0.0.0.0 ip Untagged eth eth0 100 102 server0 eth0 eth 102 False eth0 192.168.1.2 255.255.255.0 0.0.0.0 ip Untagged 127.0.0.1 0.0.0.0 0.0.0.0 route 192.168.1.2 192.168.1.5 192.168.1.7 route server1 100 103 860,530 server False True 192.168.2.1 255.255.255.0 0.0.0.0 gw lo lo0 103 104 server1 lo0 lo 104 False lo0 127.0.0.1 255.0.0.0 0.0.0.0 ip Untagged eth eth0 103 105 server1 eth0 eth 105 False eth0 192.168.2.2 255.255.255.0 0.0.0.0 ip Untagged 127.0.0.1 0.0.0.0 0.0.0.0 route 192.168.2.2 192.168.2.5 192.168.2.10 route 112 117 net_switch0 port3 132 134 router0 eth0 net_switch0_link_router0 normal 146 155 157 pc3 eth0 160 164 net_hub0 port2 pc1_link_net_hub0 normal 171 140 143 router2 eth1 136 138 router1 eth0 router2_link_router1 normal 148 132 135 router0 eth1 140 142 router2 eth0 router0_link_router2 normal 147 160 166 net_hub0 port4 136 139 router1 eth1 net_hub0_link_router1 normal 173 100 102 server0 eth0 112 115 net_switch0 port1 server0_link_net_switch0 normal 144 106 108 pc0 eth0 112 116 net_switch0 port2 pc0_link_net_switch0 normal 145 103 105 server1 eth0 160 165 net_hub0 port3 server1_link_net_hub0 normal 172 server0 pc0 SuccessfullyPings pc0 server0 SuccessfullyPings pc1 server1 SuccessfullyPings server1 pc1 SuccessfullyPings Ping Hub Switch Default