Great!
You're working with a router and a TP-Link AP connected to the router’s interface
G0/0/0, and you're accessing the router via console using PuTTY. You want to:
✅ Configure the router
✅ Enable remote access via Telnet or SSH
✅ Make sure the TP-Link AP (already physically connected) works on the router's network
🛠️Step-by-Step Router Configuration via Console (Using
PuTTY)
Below is a complete setup assuming it's a Cisco router:
1. Assign IP Address to Router Interface (G0/0/0)
enable
configure terminal
interface GigabitEthernet0/0/0
description Link to TP-Link AP
ip address [Link] [Link]
no shutdown
exit
This gives the router an IP of [Link]. Your AP should be in the same subnet (e.g.,
[Link]).
2. Set Hostname and Enable Passwords
hostname Router1
enable secret cisco123
3. Create a Local User Account (For SSH/Telnet Login)
username admin privilege 15 secret admin123
4. Enable Telnet or SSH Access
✅ For Telnet (not secure, for labs or simple setups):
line vty 0 4
password telnet123
login
transport input telnet
✅ For SSH (recommended for security):
ip domain-name localdomain
crypto key generate rsa
1024
line vty 0 4
login local
transport input ssh
exit
ip ssh version 2
5. Enable HTTP/HTTPS (Optional - For web access)
ip http server
ip http secure-server
6. Save Configuration
write memory
✅ Now Test Remote Access
Open PuTTY on your PC
Select SSH or Telnet
Enter IP: [Link] (router IP)
Login using:
o Username: admin
o Password: admin123
📶 Make Sure AP is Set Correctly
TP-Link should:
o Have DHCP disabled
o Use a static IP in the same range: 192.168.1.x
o Use gateway [Link] (your router)
Would you like a script to configure the TP-Link AP as well using browser or CLI (if
supported)?
# DNS, DHCP, and FTP Server Setup on Ubuntu (All-in-One)
# Author: ChatGPT | Use with Ubuntu Server 20.04 or later
# Run commands as root or with sudo
# -----------------------------
# STEP 1: Update the System
# -----------------------------
apt update && apt upgrade -y
# -----------------------------
# STEP 2: INSTALL DNS SERVER (BIND9)
# -----------------------------
apt install bind9 bind9utils bind9-doc -y
# Configure DNS Zone
cat <<EOF > /etc/bind/[Link]
zone "[Link]" {
type master;
file "/etc/bind/[Link]";
};
EOF
# Create Zone File
cp /etc/bind/[Link] /etc/bind/[Link]
sed -i 's/localhost/[Link]./' /etc/bind/[Link]
sed -i 's/[Link]/[Link]/' /etc/bind/[Link]
# Add an A record
cat <<EOF >> /etc/bind/[Link]
www IN A [Link]
EOF
# Check config and restart
named-checkconf
systemctl restart bind9
systemctl enable bind9
# -----------------------------
# STEP 3: INSTALL DHCP SERVER
# -----------------------------
apt install isc-dhcp-server -y
# Set interface in /etc/default/isc-dhcp-server
sed -i 's/INTERFACESv4=""/INTERFACESv4="ens33"/' /etc/default/isc-dhcp-server
# Configure DHCP Server
cat <<EOF > /etc/dhcp/[Link]
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet [Link] netmask [Link] {
range [Link] [Link];
option routers [Link];
option domain-name-servers [Link];
option domain-name "[Link]";
EOF
# Restart DHCP service
systemctl restart isc-dhcp-server
systemctl enable isc-dhcp-server
# -----------------------------
# STEP 4: INSTALL FTP SERVER (VSFTPD)
# -----------------------------
apt install vsftpd -y
# Backup default config
cp /etc/[Link] /etc/[Link]
# Configure vsftpd
cat <<EOF > /etc/[Link]
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
chroot_local_user=YES
allow_writeable_chroot=YES
EOF
# Restart FTP Service
systemctl restart vsftpd
systemctl enable vsftpd
# -----------------------------
# STEP 5: CREATE A TEST FTP USER
# -----------------------------
useradd -m ftpuser
passwd ftpuser
# Now you can test DNS with dig/nslookup,
# DHCP with a client device,
# and FTP by logging in with ftpuser
# Done!