1️⃣ DNS Server Configuration
Goal: Translate domain names → IP addresses.
Server Setup
1
Assign static IP:
IP: 192.168.10.10 Subnet: 255.255.255.0 Gateway: 192.168.10.1
2
Enable DNS service on the server.
3
Add records:
| Hostname | IP Address |
|---|---|
| www.example.com | 192.168.10.50 |
| mail.example.com | 192.168.10.20 |
DHCP Integration
ip dhcp pool VLAN10 network 192.168.10.0 255.255.255.0 default-router 192.168.10.1 dns-server 192.168.10.10
Test
PC> ping www.example.com PC> nslookup www.example.com
2️⃣ Email Server Configuration
Goal: Send/receive emails.
Server Setup
1
Assign static IP:
IP: 192.168.10.20 Subnet: 255.255.255.0 Gateway: 192.168.10.1
2
Enable services:
- SMTP: Outgoing mail
- POP3: Incoming mail
3
Set domain and users:
Domain: example.com Users: user1@example.com, user2@example.com
Client Setup
Incoming Server: 192.168.10.20 (POP3) Outgoing Server: 192.168.10.20 (SMTP) Username/password: user1/password
Test
- Send email from PC1 → PC2
- Check delivery in PC2 client inbox
3️⃣ Quick Troubleshooting
| Problem | Command / Check |
|---|---|
| PC cannot resolve DNS | ping DNS_IP / nslookup |
| DHCP clients not getting DNS | Check ip dhcp pool → dns-server |
| Email not sending | Check SMTP is enabled, check firewall (Packet Tracer: usually off) |
| Email not receiving | Check POP3 is enabled, client configured correctly |
✅ Tips / Best Practices
- Always use static IP for servers.
- Put DNS first, then email.
- DHCP can automatically hand out DNS to clients.
- If multiple VLANs → use router-on-a-stick + trunk to connect clients to servers.
- Test each step before moving to the next.
Switch & Router Basics
Switch Basics (Layer 2)
enable configure terminal hostname SW1 no ip domain-lookup
VLANs
vlan 10 name USERS vlan 20 name SERVERS
Access Ports
interface f0/1 switchport mode access switchport access vlan 10 no shutdown
Trunk Ports
interface g0/1 switchport mode trunk switchport trunk allowed vlan 10,20 no shutdown
Router-on-a-Stick
interface g0/0.10 encapsulation dot1Q 10 ip address 192.168.10.1 255.255.255.0
DHCP Configuration
ip dhcp pool VLAN10 network 192.168.10.0 255.255.255.0 default-router 192.168.10.1 dns-server 8.8.8.8
Verification Commands
show vlan brief show interfaces trunk show ip interface brief show running-config show ip dhcp binding show ip route
Emergency Fix Checklist
Check for common issues:
- Missing
no shutdown - Wrong VLAN assignment
- Trunk not trunking
- Gateway mismatch
- DHCP network mismatch