Day 0/100daysofK8s
Apr 7, 2021
Switching — for 2 systems to connect to each other, they need to be on the same network, this is where switch comes into picture. The 2 systems require an interface.
They can add the address with ip addr add 192.168.1.10/24 dev eth0
. Here the IP address is that of the system and eth0
is the name of the interface. Once the IP address are added to the interface, the 2 systems can ping each other using the other system’s IP address.
Switching allows putting systems in the same network.
To establish communication between systems of different network, we use Routing.