Network+ Section 2 Notes
Network+ Section 2 Notes
2.1 Switches
● Switching Process:
○ Layer 2 Switch: Forwards traffic based on MAC addresses.
○ Layer 3 Switch: Forwards traffic based on IP addresses (acts as a router).
● VLANs (Virtual Local Area Networks):
○ Logical separation of networks within the same physical switch.
○ 802.1Q: Standard for VLAN tagging in Ethernet networks.
○ VLANs provide network segmentation, reduce broadcast domains, and improve
security.
● Spanning Tree Protocol (STP):
○ Prevents network loops in Layer 2 switches by creating a spanning tree to block
redundant paths.
○ Rapid STP (RSTP): Faster convergence than standard STP.
● MAC Address Table:
○ Switches maintain MAC address tables to forward frames to the correct port.
2.1 Routing
● Distance-Vector Routing Protocols: Determines the best path based on the number of
hops to a destination.
○ RIP (Routing Information Protocol): Simple, limited by hop count (15 max).
● Link-State Routing Protocols: Builds a complete map of the network by sharing link
state information.
○ OSPF (Open Shortest Path First): Uses link-state advertisements (LSAs) to
build a network topology.
○ IS-IS (Intermediate System to Intermediate System): Similar to OSPF, used in
large networks.
● Hybrid Routing Protocols:
○ EIGRP (Enhanced Interior Gateway Routing Protocol): Combines features of
both distance-vector and link-state protocols.
● BGP (Border Gateway Protocol):
○ Path-vector protocol used for routing between autonomous systems (the internet
backbone).
2.3 IP Addressing
● DHCP Process:
○ DORA: Discover, Offer, Request, Acknowledge.
○ DHCP dynamically assigns IP addresses to devices on a network.
● DHCP Leasing:
○ Addresses are leased to clients for a specified period.
○ DHCP Reservation: A specific IP address is reserved for a particular device.
● APIPA (Automatic Private IP Addressing):
○ Used when DHCP server is unavailable (169.254.x.x).
● NAT: Translates private IP addresses to public IP addresses for communication over the
internet.
○ SNAT (Static NAT): One-to-one mapping between private and public IPs.
○ PAT (Port Address Translation): Many-to-one mapping, uses port numbers to
differentiate connections.
● NAT Benefits:
○ Conserves public IP addresses.
○ Provides a layer of security by hiding internal IPs.
● Port Forwarding: Redirects traffic from one port to another on a different IP.
○ Useful for accessing services on private networks (e.g., web server, FTP).
● DNS (Domain Name System):
○ Resolves domain names to IP addresses.
○ Types:
■ A Record: Maps a domain to an IPv4 address.
■ AAAA Record: Maps a domain to an IPv6 address.
■ MX Record: Mail exchange server for email.
■ CNAME Record: Alias for another domain.
● Load Balancing: Distributes network traffic across multiple servers.
○ Types:
■ Round Robin: Distributes traffic sequentially.
■ Weighted: Traffic based on server capacity.
● Firewall Types:
○ Packet-Filtering Firewall: Filters traffic based on IP addresses, ports, and
protocols.
○ Stateful Inspection Firewall: Monitors the state of active connections.
○ Proxy Firewall: Intercepts and forwards requests on behalf of clients.
● ACLs (Access Control Lists):
○ Define rules for allowing or blocking traffic.
○ Can be based on IP addresses, protocols, and port numbers.
● DMZ (Demilitarized Zone):
○ An area between the internal network and the internet where public-facing
servers are placed.