1. Can you explain the difference between a switch and a router?
A switch operates at Layer 2 of the OSI model and is used to connect devices
within the same network. It forwards data based on MAC addresses and is
primarily used to create a local area network (LAN).
A router, on the other hand, operates at Layer 3 of the OSI model and is used
to connect different networks. It forwards data packets based on IP
addresses and is essential for internet connectivity.
2. How would you troubleshoot a 'network unreachable' error?
To troubleshoot a 'network unreachable' error, I would follow these steps:
1. Check physical connections
2. Verify IP configuration
3. Ping the default gateway
4. Check DNS settings
5. Examine firewall rules
6. Trace the route to identify where the connection fails
3. What is the purpose of subnetting, and when would you use it?
Subnetting is the practice of dividing a larger network into smaller, more
manageable sub-networks. It serves several purposes:
Improves network performance by reducing broadcast traffic
Enhances security by isolating network segments
Allows for more efficient use of IP addresses
Facilitates better network management and troubleshooting
4. Explain the concept of a VLAN and its benefits.
A VLAN (Virtual Local Area Network) is a logical grouping of network devices
that allows them to communicate as if they were on the same physical
network, even if they are not. VLANs operate on Layer 2 of the OSI model
and are typically configured on switches.
Benefits of VLANs include:
Improved security through network segmentation
Reduced broadcast traffic
Flexibility in network design and device location
Easier management of network resources
Cost savings by reducing the need for physical network changes