Network Services Configuration Cheat Sheet

Cisco Switch, Router, DNS, and Email Server Configurations

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:
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

3️⃣ Quick Troubleshooting

Problem Command / Check
PC cannot resolve DNS ping DNS_IP / nslookup
DHCP clients not getting DNS Check ip dhcp pooldns-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

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