Exams / CSCO-100-150 / D3 IP Connectivity
IP Connectivity
- Exam domain: IP Connectivity
Addressing and masks
| Mask | CIDR | Note |
|---|---|---|
| 255.0.0.0 | /8 | first octet is network |
| 255.255.0.0 | /16 | 172.100.0.0/16 |
| 255.255.255.0 | /24 | 192.168.200.0/24 = only 192.168.200.x |
| 255.255.255.240 | /28 | 4 bits in last octet |
Azure documents CIDR blocks for virtual networks: "Each virtual network that you create has its own Classless Inter-Domain Routing (CIDR) block."
Default gateway
A host's IPv4 default gateway is the router interface on the host's own subnet, and all hosts of that subnet use the same address. Without it a host reaches only its own subnet. Each VLAN is its own subnet, so inter-VLAN traffic needs a router; if the router fails, hosts in the same VLAN still talk through the switch.
IPv6 hosts configure themselves via SLAAC: "each host determines its addresses from the contents of received router advertisements" (ICMPv6 Router Advertisement), whereas DHCPv6 is stateful.
Transport layer
Layer 4 segments data; TCP and UDP both use source and destination port numbers. Sequence numbers are TCP only. IP addresses are Layer 3 and MAC addresses Layer 2.
Troubleshooting tools
| Tool | Use |
|---|---|
| ipconfig /all | Local IP, mask, gateway, DHCP and DNS servers |
| ping | "Verifies IP-level connectivity to another TCP/IP computer by sending Internet Control Message Protocol (ICMP) echo Request messages." |
| tracert / traceroute | Path hop by hop, using increasing TTL |
| nslookup | Diagnoses DNS |
| netstat | Active TCP connections and listening ports |
Approaches: bottom-up starts at the physical layer (cables, NIC); divide and conquer starts mid-stack (e.g. ping the default gateway).
On Cisco show ip interface brief: Method manual = typed in CLI; down/down = no link; administratively down = shutdown issued.
Exam traps
- "In this case, a row of asterisks (*) is displayed for that hop." An intermediate
* * *does not mean the router is offline or the trace failed; check the last hop. - The gateway is not necessarily the first address and never the ISP-side interface.
- Path to the DNS server = tracert to the DNS IP, not to the gateway or DHCP server.
- Wireshark filter for HTTPS on port 7100:
tcp.port == 7100.
Docs
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/tracert
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ping
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ipconfig
- https://learn.microsoft.com/en-us/dotnet/fundamentals/networking/ipv6-overview
- https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-faq