Summary:

Router: Each port has a network adapter, with its own IP address and MAC address, linked across network segments

Switch: Caches the IP address of the device connected to each port. There are no IP and MAC addresses, but links on the same network segment

The first ARP message obtains the MAC address of the destination IP address. After receiving the broadcast message, the destination IP address returns its MAC address

If they are on the same network segment, the router forwards them. If they are on different network segments, the new network adapter resends ARP to obtain the MAC address of the target IP address

MAC address: 6 bytes, one byte: 00-00 00-00 00-00 00 hexadecimal digits

Hypernet: network whose subnet mask is shifted to the left

Subnet: the network whose subnet mask is shifted to the right

Static route: Devices directly connected to a router are on different network segments. Routers and routers are on the same network segment. Therefore, a routing table is required for cross-router network connection

  • Static route configuration: The router sets the destination network segment, destination subnet mask, and next hop IP address. You can configure a specific destination IP address, or you can configure the default jump, 0.0.0.0, 0.0.0.0, xxx.XXX.xxx.xxx