Current location - Quotes Website - Team slogan - What is the relationship between router port, switch VLAN, subnet, ip address and subnet mask?
What is the relationship between router port, switch VLAN, subnet, ip address and subnet mask?
Router port, you can understand it as an ordinary network interface. For LAN, the routing port is equivalent to the gateway, and IP and mask must be configured.

VLAN is a virtual local area network. Physically, all ports on the switch are a collision domain, which you can understand as a local area network. However, VLAN isolates ports configured with the same VLAN into a virtual LAN and physically isolates them from other ports.

There are several types of IP addresses, 192. 168. X.X is a class C address,192.168.1-192.168.65438+.

Subdivision requires a mask. For example, the subnet just divided into 127 has a mask of 255.255.255.6438+028.

Subnet, IP address and subnet mask can be said to be one. The IP+ mask can identify the network segment or subnet.

As for the calculation of subnet and mask, it is not difficult to read a book.