<Lecture notes />
Every network – from a small office to an enterprise campus – is built from the same handful of building blocks. Knowing what each network component does and why it is there is the first topic of the CCNA 200-301 exam (topic 1.1), and it is also one of the first things you are asked in a network engineer or network administrator job interview.
In this article I explain the role and function of routers, Layer 2 and Layer 3 switches, next-generation firewalls and IPS, access points, controllers, endpoints, servers and PoE – the way I use them in real networks after 13+ years in IT support and infrastructure and as a CCNA and CCNP Enterprise certified engineer.
How the components work together
Picture a typical office: a laptop connects to the Wi-Fi access point, which is plugged into an access switch that also powers it with PoE. The access switch uplinks to a Layer 3 core switch that routes between VLANs and reaches the servers in the server room. Traffic to the internet passes the next-generation firewall and the router at the edge, while a wireless LAN controller manages all access points. Each device has a clear job – and troubleshooting gets much easier once you know which job belongs to which box.
1. Routers
A router connects different IP networks and forwards packets between them. It works at Layer 3 (network layer) of the OSI model and makes its decisions based on the destination IP address and its routing table.
- Path selection: chooses the best route using the longest prefix match, administrative distance and the routing protocol metric (e.g. OSPF cost).
- Default gateway: endpoints send all traffic for other networks to their router.
- Separates broadcast domains: broadcasts are not forwarded between router interfaces.
- WAN and internet connectivity: connects sites and the internet; often also does NAT, DHCP and VPN.
Router# show ip route
Router# show ip interface brief
Router# show ip ospf neighbor2. Layer 2 and Layer 3 switches
Layer 2 switch
A Layer 2 switch connects devices inside the same LAN/VLAN. It forwards Ethernet frames based on MAC addresses: it learns the source MAC of every frame into its MAC address table, forwards known unicasts only out of the right port, and floods unknown unicasts and broadcasts within the VLAN. Every switch port is its own collision domain, and VLANs split one physical switch into several broadcast domains.
Layer 3 switch
A Layer 3 switch does everything a Layer 2 switch does and routes between VLANs in hardware, using SVIs (switched virtual interfaces) as default gateways. That is why it is the usual core and distribution device in campus networks: fast inter-VLAN routing without sending traffic to a separate router.
| Layer 2 switch | Layer 3 switch | |
|---|---|---|
| Forwards based on | MAC address (frames) | MAC address and IP address (packets) |
| Inter-VLAN routing | No – needs a router (router-on-a-stick) | Yes – SVIs / routed ports |
| Routing protocols | No | Yes (static, OSPF, …) |
| Typical place | Access layer | Distribution / core layer |
Switch# show mac address-table
Switch# show vlan brief
Switch(config)# ip routing ! enable routing on a Layer 3 switch
Switch(config)# interface vlan 10
Switch(config-if)# ip address 10.10.10.1 255.255.255.03. Next-generation firewalls (NGFW) and IPS
A firewall enforces security policy between zones – for example inside, outside and DMZ. A classic stateful firewall tracks connections and filters on IP addresses and ports. A next-generation firewall (NGFW), such as Cisco Secure Firewall, adds much deeper inspection:
- Application visibility and control (Layer 7): allow Microsoft Teams but block file sharing apps, regardless of port.
- Integrated IPS, URL filtering, malware protection and threat intelligence.
- User identity: rules based on Active Directory users and groups, not only IP addresses.
- TLS/SSL decryption to inspect encrypted traffic.
An IPS (Intrusion Prevention System) sits inline and inspects traffic for known attack signatures and anomalies – and blocks malicious packets in real time. An IDS only detects and alerts, because it receives a copy of the traffic. In modern networks the IPS is usually a feature of the NGFW.
4. Access points (AP)
An access point connects wireless clients to the wired network. It bridges 802.11 Wi-Fi to 802.3 Ethernet and advertises one or more SSIDs, each usually mapped to its own VLAN (for example staff, guests and IoT). In the 2.4 GHz band only channels 1, 6 and 11 do not overlap – a classic CCNA question.
- Autonomous AP: configured one by one – fine for a small office.
- Lightweight AP: managed by a wireless LAN controller through a CAPWAP tunnel.
- Cloud-managed AP: managed from the cloud, e.g. Cisco Meraki.
5. Controllers
A controller manages many network devices from one central place. On the CCNA you meet two kinds:
- Wireless LAN controller (WLC): configures lightweight APs, manages RF (channels and power), client roaming, authentication and WLAN security policies centrally.
- SDN controllers such as Cisco Catalyst Center (formerly DNA Center): automate and monitor the whole network. Applications talk to the controller through northbound APIs (often REST), and the controller talks to devices through southbound APIs – this links directly to CCNA topic 6 (automation and programmability).
6. Endpoints
Endpoints are the devices at the edge of the network that send and receive data: PCs and laptops, smartphones, IP phones, printers, cameras and IoT sensors. To communicate, every endpoint needs a correct IP address, subnet mask, default gateway and DNS server – and in day-to-day IT support, checking these is the first troubleshooting step.
Windows: ipconfig /all
macOS: ifconfig (or: networksetup -getinfo Wi-Fi)
Linux: ip addr show · ip route7. Servers
Servers provide services to the clients in the network, following the client–server model. Typical examples are DNS, DHCP, Active Directory, file and print, web, email and database servers. Today most servers are virtual machines on VMware or Hyper-V, or run in the cloud (Azure, AWS). Because many users depend on them, servers are usually connected redundantly – for example with NIC teaming to two switches – and placed in the data centre or server room.
8. PoE (Power over Ethernet)
PoE delivers electrical power and data over the same Ethernet cable. The switch is the PSE (power sourcing equipment), the powered device is the PD – for example an access point, IP phone or IP camera. No separate power socket is needed, which makes installation cheaper and lets you restart devices remotely by cycling the port.
| Standard | Name | Power per port (at the switch) |
|---|---|---|
| IEEE 802.3af | PoE | 15.4 W |
| IEEE 802.3at | PoE+ | 30 W |
| IEEE 802.3bt Type 3 | PoE++ / UPOE | 60 W |
| IEEE 802.3bt Type 4 | PoE++ / UPOE+ | 90 W |
Always check the switch's total PoE power budget: a 48-port switch may not be able to give full PoE+ power to every port at the same time.
Switch# show power inline
Switch# show power inline gigabitEthernet 1/0/1 detailSummary: network components at a glance
| Component | OSI layer | Main function |
|---|---|---|
| Router | Layer 3 | Connects networks, routes packets by IP address |
| Layer 2 switch | Layer 2 | Connects devices in a LAN, forwards frames by MAC address |
| Layer 3 switch | Layer 2 + 3 | Switching plus fast inter-VLAN routing |
| NGFW / IPS | Layer 3–7 | Enforces security policy, blocks attacks |
| Access point | Layer 1–2 | Connects wireless clients to the LAN |
| Controller | Management | Central configuration and automation |
| Endpoint | All layers | Sends and receives user data |
| Server | Layer 7 services | Provides DNS, DHCP, AD, files, apps |
| PoE | Layer 1 | Powers devices over the Ethernet cable |
Typical network engineer interview questions
- What is the difference between a router and a Layer 3 switch? Both route, but a Layer 3 switch routes between VLANs in hardware inside the campus, while a router connects WANs and the internet and offers features like NAT, VPN and advanced routing.
- What does a switch do with a frame for an unknown MAC address? It floods it out of all ports in the same VLAN except the one it came in on.
- IDS vs IPS? An IDS detects and alerts on a copy of the traffic; an IPS sits inline and blocks malicious traffic.
- Why use a wireless LAN controller? To manage many APs centrally – consistent configuration, RF management, roaming and security.
- Why does PoE matter when planning a network? APs, phones and cameras need it, and the switch's power budget must cover all of them.
How to practise
Build a small lab in Cisco Packet Tracer: two VLANs on an access switch, a Layer 3 switch for inter-VLAN routing, a router to the "internet", an access point and a server running DHCP and DNS. Then use the show commands above to watch each component do its job. This hands-on understanding is exactly what employers look for in CCNA-certified network engineers.
