INTERVIEW QUESTIONS

Don't memorise the line. Explain the concept.

Grouped by subject — Networking, Network Security, Ethical Hacking. Use these questions after the notes and labs. Try your answer first, then open the guidance.

Networking

Networking Fundamentals
What is a network?+

A network is a group of connected devices that can exchange data and use shared resources or services.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Hub vs switch vs router?+

A hub repeats traffic to all ports. A switch forwards Ethernet frames inside a LAN using MAC addresses. A router forwards IP packets between different networks.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a LAN?+

A LAN is a network that connects devices within a limited area such as an office, floor, home or campus building.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a WAN?+

A WAN connects networks across larger geographic distances, for example connecting branch offices to a headquarters or cloud network.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a default gateway?+

A default gateway is the Layer-3 next hop a host uses when the destination is outside its local subnet.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a broadcast domain?+

A broadcast domain is the set of Layer-2 devices that can receive the same broadcast. Routers and VLAN boundaries separate broadcast domains.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a collision domain?+

A collision domain is a network segment where simultaneous transmissions can collide. On a modern switched Ethernet network, each switch port is its own collision domain.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a network topology?+

Network topology describes how network devices and links are arranged, physically or logically.

INTERVIEW TIP: Explain the concept first, then add one real network example.
OSI / TCP-IP
Explain the OSI model in simple words.+

The OSI model divides network communication into seven conceptual layers. I use it mainly to understand where a protocol works and to troubleshoot from physical connectivity up to the application.

INTERVIEW TIP: Explain the concept first, then add one real network example.
OSI vs TCP/IP model?+

OSI is a seven-layer reference model. TCP/IP is the practical protocol model used by real IP networks and is commonly shown with four or five layers.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is encapsulation?+

Encapsulation is the process of adding protocol information as data moves down the stack—for example TCP information, then IP information, then an Ethernet header/trailer.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a frame?+

A frame is the Layer-2 data unit used on technologies such as Ethernet. It includes source and destination MAC information.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a packet?+

A packet is commonly the Layer-3 data unit. An IP packet contains source and destination IP addresses used for routing.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a TCP segment?+

A TCP segment is the transport-layer unit carrying TCP header information such as source/destination ports, sequence numbers and flags.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Which layer handles routing?+

Routing is primarily a Layer-3 function because routers make forwarding decisions using network-layer addresses such as IP.

INTERVIEW TIP: Explain the concept first, then add one real network example.
How do you use OSI in troubleshooting?+

I use OSI to isolate the fault. I first prove physical/link state, then VLAN/MAC behaviour, then IP/gateway/routes, and only after that move to transport and application checks.

INTERVIEW TIP: Explain the concept first, then add one real network example.
IPv4 / Subnetting
What is an IPv4 address?+

An IPv4 address is a 32-bit logical address used to identify an interface in an IPv4 network and support Layer-3 forwarding.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What does a subnet mask do?+

A subnet mask tells a device which bits of an IPv4 address represent the network and which represent hosts. It also helps the host decide whether a destination is local or remote.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What does /24 mean?+

A /24 means 24 network bits and 8 host bits. Its subnet mask is 255.255.255.0.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Name the RFC1918 private ranges.+

The three private IPv4 ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. They are used inside private networks and are not globally routed on the public internet.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Public vs private IP?+

Private IPv4 ranges are intended for internal networks and are not globally routed on the public internet. Common ranges include 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a network address?+

The network address identifies the subnet itself. It is the first address in an IPv4 subnet and is not assigned to a normal host interface.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a broadcast address?+

The broadcast address is the last address in a traditional IPv4 subnet. Traffic sent to it is delivered to all hosts in that broadcast domain.

INTERVIEW TIP: Explain the concept first, then add one real network example.
How do you approach a subnetting question?+

Subnetting divides an IP network into smaller networks by using a longer prefix. It helps address planning, segmentation and routing design.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Switching / VLAN
How does a switch learn MAC addresses?+

A switch learns from the source MAC address of incoming Ethernet frames. It records that MAC against the port where the frame arrived and uses the table for future forwarding decisions.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a MAC address table?+

A MAC address is a Layer-2 identifier used by Ethernet interfaces and switches for local frame delivery.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a VLAN?+

A VLAN is a logical Layer-2 broadcast domain. It lets one physical switching infrastructure separate groups such as Sales and Finance.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Access port vs trunk?+

An access port normally carries one VLAN and is commonly used for endpoint connections.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is 802.1Q?+

802.1Q is the Ethernet VLAN tagging standard commonly used on trunk links.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why is inter-VLAN routing required?+

Inter-VLAN routing is Layer-3 routing between different VLANs, using a router or Layer-3 switch as the gateway.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is router-on-a-stick?+

Router-on-a-Stick uses one physical router interface with 802.1Q subinterfaces to provide gateways and routing for multiple VLANs.

INTERVIEW TIP: Explain the concept first, then add one real network example.
A VLAN works on one switch but not across a trunk — what do you check?+

A trunk carries traffic for multiple VLANs between network devices, commonly using IEEE 802.1Q tagging.

INTERVIEW TIP: Explain the concept first, then add one real network example.
STP / EtherChannel
Why is STP required?+

STP prevents Layer-2 loops when redundant switch links exist. It keeps a loop-free active path by placing selected redundant ports into a blocking or discarding state.

INTERVIEW TIP: Explain the concept first, then add one real network example.
How is the STP root bridge selected?+

The STP root bridge is the reference switch for the spanning tree. The switch with the best bridge ID wins, with priority considered before MAC address.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a root port?+

A root port is the best port on a non-root switch toward the STP root bridge.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a designated port?+

A designated port is the STP forwarding port selected for a network segment. It provides that segment with the best path toward the root bridge.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What problem does RSTP solve?+

RSTP is the faster-converging evolution of classic STP, defined by IEEE 802.1w.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is EtherChannel?+

EtherChannel combines compatible physical links into one logical port-channel for more aggregate bandwidth and redundancy.

INTERVIEW TIP: Explain the concept first, then add one real network example.
LACP vs PAgP?+

LACP is the standards-based protocol used to negotiate link aggregation. Active initiates negotiation; passive responds.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why might an EtherChannel fail to form?+

EtherChannel combines compatible physical links into one logical port-channel for more aggregate bandwidth and redundancy.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Routing
What is a routing table?+

A routing table contains destination networks and the next-hop/interface information a router uses to forward packets.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Connected vs static vs dynamic route?+

A connected route appears when a router interface is up with an IP network configured. A static route is entered manually. A dynamic route is learned through a routing protocol such as OSPF or EIGRP.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is longest-prefix match?+

When several routes match a destination IP, the router chooses the route with the most specific prefix. For example, a /24 route is preferred over a matching /16 route.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a static route?+

A static route is manually configured by an administrator to tell a router how to reach a destination network.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a default route?+

A default route is the catch-all route used when no more-specific route matches. In IPv4 it is 0.0.0.0/0.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why is return routing important?+

Communication normally needs a valid path in both directions. The forward packet may reach the destination, but the reply will fail if the destination side has no route back to the source network.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is dynamic routing?+

Dynamic routing protocols let routers exchange reachability information and adapt routes when topology changes.

INTERVIEW TIP: Explain the concept first, then add one real network example.
A route is configured but traffic still fails — what do you verify?+

Verify the destination prefix and next hop, interface state, ARP or Layer-2 reachability to the next hop, the return route, ACL or firewall filtering, and then use ping or traceroute to locate where forwarding stops.

INTERVIEW TIP: Explain the concept first, then add one real network example.
OSPF / EIGRP
What is OSPF?+

OSPF is a link-state interior routing protocol. Routers form neighbours, exchange link-state information and use SPF calculations to select paths.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is OSPF area 0?+

OSPF is a link-state interior routing protocol. Routers form neighbours, exchange link-state information and use SPF calculations to select paths.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is an OSPF neighbour?+

An OSPF neighbour is another OSPF router discovered on a shared link with which the router can form an adjacency and exchange routing information when required.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What do you check when OSPF neighbours do not form?+

Check interface IP/subnet, OSPF area, hello/dead timers, authentication, network type, passive-interface settings and basic Layer-3 reachability. Then verify with show ip ospf interface and show ip ospf neighbor.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is an LSDB?+

The Link-State Database is OSPF’s view of the topology for an area. Routers in the same area build a consistent LSDB and run SPF against it to calculate best paths.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is EIGRP?+

EIGRP is an advanced distance-vector routing protocol that uses DUAL and maintains neighbour, topology and routing information.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is DUAL associated with?+

DUAL, the Diffusing Update Algorithm, is associated with EIGRP. It selects loop-free best paths and can identify feasible backup paths for fast convergence.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Neighbour is up but route is missing — what next?+

If the routing neighbour is up, check whether the destination network is actually being advertised, whether route filtering or summarisation affects it, whether a better route already exists, and inspect the protocol-specific topology or database table.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Services / Security
Explain DHCP DORA.+

DORA stands for Discover, Offer, Request and Acknowledge—the common DHCPv4 address-allocation flow.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why is DHCP relay needed?+

DHCP relay forwards client DHCP messages between subnets because the client’s initial broadcasts do not normally cross routers.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What does DNS do?+

DNS resolves names into records such as IP addresses, allowing clients to use names instead of remembering addresses.

INTERVIEW TIP: Explain the concept first, then add one real network example.
A record vs AAAA record?+

An A record maps a name to an IPv4 address. An AAAA record maps a name to an IPv6 address.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is an ACL?+

An ACL is an ordered set of permit/deny rules used to filter traffic based on matching criteria.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Standard vs extended ACL?+

A standard IPv4 ACL mainly matches source address. An extended ACL can also match destination, protocol and ports, so it can be more specific.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is NAT?+

NAT translates IP addressing between network domains, commonly translating private inside addresses at an internet edge.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is PAT?+

PAT translates addresses and transport ports so many inside sessions can share one outside IPv4 address.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why is SSH preferred over Telnet?+

SSH encrypts the management session, including credentials and commands. Telnet sends data in clear text.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why do NTP and Syslog matter?+

NTP keeps device clocks consistent; Syslog centralises event messages. Accurate time makes logs from multiple devices much easier to correlate during troubleshooting or security analysis.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What are CDP and LLDP?+

CDP and LLDP are neighbour-discovery protocols. CDP is Cisco-specific; LLDP is an IEEE standard used across vendors.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What do DHCP snooping and DAI protect against?+

DHCP snooping helps block untrusted DHCP server behaviour and builds a binding database. Dynamic ARP Inspection can use trusted bindings to validate ARP messages and reduce ARP spoofing risk.

INTERVIEW TIP: Explain the concept first, then add one real network example.

Network Security

Network Security Fundamentals
What is network security?+

Network security is the set of controls, policies and technologies that protect data confidentiality, integrity and availability as it moves across a network.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is the CIA triad?+

Confidentiality, Integrity and Availability. Every security control exists to protect one or more of these three properties.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is defense in depth?+

Using multiple independent layers of security controls, so that if one layer fails or is bypassed, another layer can still stop or detect the threat.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a DMZ?+

A controlled buffer zone between the trusted internal network and the untrusted internet, used to host public-facing servers without exposing the internal LAN directly.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What are the three parts of AAA?+

Authentication (who you are), Authorization (what you can do) and Accounting (a log of what you actually did).

INTERVIEW TIP: Explain the concept first, then add one real network example.
How does ARP spoofing threaten a network?+

It sends false ARP mappings so a device believes attacker-controlled hardware is a legitimate host, which can misdirect local Layer 2 traffic for interception.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why use centralised AAA like TACACS+ or RADIUS instead of local passwords?+

It lets an admin manage and audit access across hundreds of devices from one place, instead of maintaining separate local accounts on every device.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Firewalls, Segmentation & IDS/IPS
Stateful vs stateless firewall?+

A stateless firewall evaluates every packet independently. A stateful firewall tracks the connection in a state table, so return traffic for an already-permitted session is automatically allowed.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why does firewall rule order matter?+

Most firewalls process rules top to bottom and apply the first match. A specific rule placed below a broader rule may never be reached, which is a common real-world misconfiguration.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What happens to traffic that matches no firewall rule?+

It is blocked by the implicit deny that sits at the end of every rule base by default.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a zone-pair in Cisco ZBFW?+

A defined direction between two security zones (for example Inside to Outside) with a policy attached, controlling what traffic is inspected, allowed or dropped between those zones.

INTERVIEW TIP: Explain the concept first, then add one real network example.
IDS vs IPS?+

An IDS monitors a copy of traffic and only generates alerts. An IPS sits inline in the actual traffic path and can actively drop malicious traffic in real time.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why segment a network into VLANs for security?+

To limit the blast radius of a compromise — isolating a compromised device's VLAN can prevent it from freely reaching more sensitive parts of the network.

INTERVIEW TIP: Explain the concept first, then add one real network example.
NAT is configured correctly but a connection still fails. What should you check?+

The security policy, separately from NAT. NAT translates addresses; it does not by itself grant permission, so both the NAT rule and the policy must allow the traffic.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why might a company deploy IDS before switching to IPS?+

To tune signatures and reduce false positives first — a false positive on an inline IPS can drop legitimate traffic and cause an outage, while the same false positive on an IDS only causes noisy alerts.

INTERVIEW TIP: Explain the concept first, then add one real network example.
VPN, IPsec & Monitoring
Site-to-site vs remote access VPN?+

Site-to-site VPN permanently connects two networks through their gateways with no end-user involvement. Remote access VPN connects an individual user's device to the network on demand.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What happens in IPsec Phase 1 vs Phase 2?+

Phase 1 authenticates the two peers and builds a secure management channel. Phase 2 uses that channel to negotiate the actual IPsec SAs that protect the real data traffic.

INTERVIEW TIP: Explain the concept first, then add one real network example.
A VPN tunnel shows as up but no traffic passes. Why?+

Phase 1 has likely succeeded but Phase 2 has failed to negotiate, often due to mismatched interesting traffic (the ACL defining what should go through the tunnel) on each side.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why is SSL VPN so widely used for remote access today?+

It runs over standard HTTPS on port 443, which passes through most restrictive networks that would otherwise block traditional IPsec ports.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why forward logs to a central SIEM instead of just checking each device?+

Correlating events across many devices can reveal a pattern, such as a coordinated scan, that no single device's log would show on its own.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is the first step when troubleshooting a network security issue?+

Confirm exactly what fails and from where, before changing any configuration. Then trace the traffic path through the relevant zones, rules and state.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why should you trust the logs over your assumption of what a config should do?+

Because configuration intent and actual runtime behaviour are not always the same. Logs and state show what really happened, not what was supposed to happen.

INTERVIEW TIP: Explain the concept first, then add one real network example.

Ethical Hacking

Ethical Hacking Fundamentals
What makes hacking "ethical"?+

Explicit, written authorization from the system owner. The exact same technical actions without that authorization are illegal, regardless of intent.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is the standard penetration testing methodology?+

Reconnaissance, Scanning, Enumeration, Vulnerability Assessment, Exploitation, and Reporting, in that order — each phase builds the context the next phase needs.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What's the difference between a hacker "hat" and a testing "box"?+

Hat describes intent and authorization (white/black/grey). Box describes how much information the tester starts with (black-box/white-box/grey-box). They are independent.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is a Rules of Engagement (RoE) document?+

The formal document that legally authorizes a test and defines exact boundaries — in-scope and out-of-scope systems, testing windows, allowed techniques and emergency contacts.

INTERVIEW TIP: Explain the concept first, then add one real network example.
You find a possible vulnerability on a system outside your signed scope. What do you do?+

Report the observation without testing it. Testing anything outside the signed scope is unauthorized access, no matter how good the intention is.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why is reporting considered the most important phase, despite being the most skipped?+

A finding that isn't clearly documented with impact, evidence and remediation provides very little real value to the organisation — the report is the actual deliverable.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Reconnaissance, Scanning & Enumeration
Passive vs active reconnaissance?+

Passive recon uses only public information without touching the target. Active recon interacts directly, like a ping sweep, and can potentially be detected.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What does a "filtered" port mean in an nmap scan?+

No response was received at all, most likely because a firewall silently dropped the probe — the scanner cannot tell if the port is actually open or closed.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What does enumeration add beyond scanning?+

Specific usable detail — exact service versions, share names, usernames — that scanning alone doesn't reveal, and that vulnerability assessment depends on.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Does finding a matching known vulnerability always mean high real-world risk?+

No — reachability and context matter too. A vulnerable service isolated with no path to anything sensitive may pose limited real risk.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why check a service's actual behaviour instead of trusting its banner?+

Banners can be deliberately hidden or altered, so behaviour-based fingerprinting can reveal detail that a misleading banner would hide.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Exploitation & Web Security
What's the difference between an exploit and a payload in a framework like Metasploit?+

An exploit is the code that triggers a specific known vulnerability. A payload is what runs after the exploit succeeds, such as opening a session.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why does SQL injection happen?+

Untrusted input is directly concatenated into a SQL query string, letting an attacker change the query's actual logic instead of just its data.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What is the real fix for SQL injection?+

Parameterized queries (prepared statements), which always treat user input strictly as data and never as part of the query's structure.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Stored vs reflected XSS?+

Stored XSS is saved on the server and served to every visitor, like in a comment field. Reflected XSS is echoed back immediately, usually via a crafted link.

INTERVIEW TIP: Explain the concept first, then add one real network example.
Why does salting a password hash matter?+

It ensures identical passwords don't produce identical hashes, which defeats precomputed lookup table attacks even if the hash database is stolen.

INTERVIEW TIP: Explain the concept first, then add one real network example.
What three things does a strong penetration test finding always include?+

Impact (real business risk), evidence (proof it's real), and remediation (a specific, actionable fix) — not just a vulnerability name.

INTERVIEW TIP: Explain the concept first, then add one real network example.