Lesson 06
Lesson 06
Lesson 06
1. IP Configuration:
o Each host adapter needs an IP address, subnet mask, and default gateway.
o DNS server addresses are also usually configured.
2. Static vs. Dynamic Configuration:
o Static IP addressing can be complex for large numbers of hosts.
o Dynamic IP addressing via DHCP is more common for ease of management.
3. Naming Conventions:
o Windows adapters: "Ethernet", "Ethernet2", etc.
o Configuration through GUI or command line.
4. Command Line Tools:
o netsh: Configure and view IP settings.
▪ netsh interface ip set address "Ethernet" dhcp
▪ netsh interface ip set address "Ethernet" static 10.1.0.1
255.255.255.0 10.1.0.254
▪ netsh interface ip show config
o PowerShell:
▪ Query configuration: Get-NetAdapter, Get-NetIPAddress
▪ Apply configuration: New-NetIPAddress, Set-NetIPAddress
5. ipconfig Command:
o ipconfig: Basic IP information.
o ipconfig /all: Detailed configuration including DHCP and MAC addresses.
o ipconfig /renew: Renew DHCP lease.
o ipconfig /release: Release DHCP lease.
o ipconfig /displaydns: Display DNS cache.
o ipconfig /flushdns: Clear DNS cache.
o ipconfig /registerdns: Register the host with a DNS server.
1. Interface Naming:
o Legacy: eth0, eth1, etc.
o Newer conventions: enp0s3, etc.
2. Persistent vs. Running Configuration:
o Persistent configuration applied at boot.
o Running configuration can be changed but needs to be made persistent.
3. Configuration Tools:
o Legacy Tools:
▪ ifconfig: Deprecated for managing interfaces.
▪ ifup/ifdown: Scripts to bring interfaces up/down.
o Modern Tools:
▪ ip command (part of iproute2 package):
▪ Show configuration: ip addr
▪ Show single interface: ip addr show dev eth0
▪ Enable/disable interface: ip link set eth0 up|down
▪ Modify IP configuration: ip addr add|delete
▪ NetworkManager and nmcli: Manage network settings.
▪ systemd-networkd and netplan: Manage network settings in newer
distributions.
ARP Cache Utility
1. Purpose: Resolve and cache MAC addresses for IP addresses on the local network.
2. Commands:
o Windows:
▪ arp -a or arp -g: Show ARP cache.
▪ arp -s IPAddress MACAddress: Add ARP entry.
▪ arp -d *: Delete all ARP entries.
o Linux:
▪ ip neigh: Show ARP cache.
Network Troubleshooting:
• Power Issues: Surges, spikes, brownouts, blackouts. Use UPS for protection.
• Hardware Failure: Check network adapters, switches, routers, and cabling. Use cable testers
and status LEDs.
• Interface Status: Verify with LEDs, command line utilities. Check for speed/duplex
mismatches and collisions.
IP Configuration Issues:
Connectivity Tests:
DNS Issues:
Address Configuration
• Functions:
o Address Autoconfiguration: Automatic configuration of IP addresses.
o Prefix Discovery: Determines network prefixes.
o Local Address Resolution: Finds local nodes and routers.
o Redirection: Indicates better routes.
Stateless Address Autoconfiguration (SLAAC)
ICMPv6
• Similar to ICMPv4 but includes new features like "Packet Too Big" messages.
• Supports ND and MLD protocols.
Transition Mechanisms