How to Reset Cisco 1921/1941 Routers

After you connect your router with the console cable, you will need to use your SSH program like PuTTY or, in my case, Tera Term. You will need a rollover cable to connect your PC and router/switch.

Turn on the router and make a connection with the serial port in Tera Term. In order to enter the ROMmon CLI, go to Control Send break (Alt + B).

Next, enter "confreg 0x2142", then enter "reset".
You can skip setup by entering "no".

Then type "en" and "erase startup-config".
You will need to revert the config-register by typing "config t", next "config-register 0x2102", then "end", and finally type "reload".

Subnetting made easy – How to subnet a network

What is a subnet?

When we talk about subnet, we need to know about IPv4 address (Internet Protocol version 4).

An IP address is a 32-bit address, typically written as four dotted decimal octets (each octet is 8 bits). For example:
192.168.1.1

A network is defined by a subnet mask, which is also a 32-bit value. It can be written in dotted decimal format like 255.255.255.0 or in CIDR* (slash) notation like /24. The /24 means that the first 24 bits are used for the network portion, and the remaining 8 bits are used for host addresses within that network.

Let’s take an example:

  • IP address: 192.168.1.1
  • Subnet mask: /24 or 255.255.255.0

This means:

  • The network address is 192.168.1.0
    (because the first 24 bits identify the network)
  • The range of usable host addresses is from 192.168.1.1 to 192.168.1.254
  • There are 256 total IPs in the subnet (2^8), but only 254 usable IP addresses because:
    • 192.168.1.0 is the network address
    • 192.168.1.255 is the broadcast address

*CIDR makes routing and IP management more flexible than the old class-based system (Class A, B, C). Instead of being forced into fixed subnet sizes, you can allocate IP blocks that exactly match your needs.

The most common ports used in networking

Understand essential TCP and UDP ports for CCNA,CompTIA A+/Network+, security, and real-world troubleshooting.

There are two transport layer protocols that we use in Layer 4 (Transport) OSI model:

  • TCP – Connection-oriented protocol
  • UDP – Connectionless protocol

TCP 20 FTP (File Transport Protocol) Data transfer

TCP 21 FTP (File Transport Protocol) Control command

TCP 22SSH (Secure Shell)

TCP 23Telnet

TCP 25SMTP (Simple Mail Transfer Protocol)

UDP 53 DNS (Domain Name System)

UDP 67/68DHCP server/client ports

UDP 69TFTP (Trivial File Transfer Protocol)

TCP 80 HTTP (Hypertext Transfer Protocol)

TCP 110POP3 (Post Office Protocol 3)

UDP 123 NTP (Network Time Protocol)

TCP 143 IMAP4 (Internet Message Access Protocol 4)

TCP 389 LDAP (Lightweight Directory Access Protocol)

TCP 443HTTPS (Hypertext Transfer Protocol over Secure Socket Layer)

UDP 514 Syslog (Logging Service)

TCP 993 IMAPS (Internet Message Access Protocol over TLS/SSL)

TCP 995 POP3S (Post Office Protocol 3 over TLS/SSL)

TCP 3389 RDP (Remote Desktop Protocol)

Knowing which ports correspond to which services helps you troubleshoot network issues faster, secure your systems better, and pass certification exams with confidence.
Keep practicing and memorizing these ports—they are a fundamental part of real-world networking!

How to Add a User to Active Directory

Tools Active Directory Users and Computers

On the left side, you will see your domain name (in my case, mirktech.local). Right-click on it and select New Organizational Unit. Give it a name, for example, OU-Users.

Inside the newly created organizational unit, create a few more units by adding additional Organizational Units for your company’s departments, e.g., IT, HR, Marketing, etc.

To create a new user, select the department where you want to add the user, right-click on it, and choose New User. Fill in the required fields: First name, Last name, Full name, and User logon name.

On the next screen, enter the password and confirm it. Make sure the option “User must change password at next logon” is checked.

Now, when the user logs on for the first time, they will be required to change their password.

* If you created an Organizational Unit with “Protect object from accidental deletion” enabled and want to delete it, go to View Advanced Features. Then, right-click the OU, select Properties Object tab, and uncheck “Protect object from accidental deletion”.

Install Active Directory on Windows Server 2022 in VMware Pro

From Windows Server Manager, select Manage Add Roles and Features.

In the Add Roles and Features Wizard, check the “Skip this page by default” checkbox and click Next.

On the Installation Type page, select “Role-based or feature-based installation”, then click Next.

On the Server Selection page, select the server from the server pool and click Next.

On the Server Roles page:

  • Check DNS Server
  • Check Active Directory Domain Services
  • Check DHCP Server (optional)

Click Next.

On the Features page, you can just click Next

Change Default Network Settings in VMware Pro

1. Change VM Network Adapter to NAT or Bridged:

  • Open VMware Workstation.
  • Right-click on your virtual machine Settings.
  • Go to Network Adapter.
  • Select either NAT or Bridged connection.
    • NAT is good if you want internet access behind a firewall with a private IP.
    • Bridged allows the VM to be on the same network as your host.

2. Configure Virtual Network Editor:

  • Go to Edit Virtual Network Editor.
  • Click Change Settings (you need admin rights).
  • Select VMnet8 (for NAT) or VMnet0 (for Bridged, though Bridged uses your physical adapter and usually doesn’t have its own subnet configuration).
  • If using NAT (VMnet8):
    • Change the subnet IP to your desired private network, e.g., 192.168.50.0.
    • Subnet Mask: 255.255.255.0.

3. Set NAT Gateway IP (only for NAT):

  • Still in Virtual Network Editor, with VMnet8 selected, click NAT Settings.
  • Set the Gateway IP to a value in your subnet (e.g., 192.168.50.1).
  • This is the IP your VM will use as a default gateway.

4. Use Public DNS Temporarily:

  • Before you configure your own DNS Server, use a public DNS like:
    • 8.8.8.8 (Google DNS)

5. Now You’re Ready to Set Up:

DNS Server (after which you can stop using public DNS).

Active Directory Domain Services (AD DS).

DHCP Server

Install Windows Server 2022 in VMware Pro

To install Windows Server 2022 on VMware Workstation Pro, follow these steps:

  1. Download the Windows Server 2022 ISO: Search for the Windows Server 2022 ISO (64-bit version) online and download it.
  2. Create a New Virtual Machine:
    • Once the download is complete, open VMware Workstation Pro.
    • Go to File > New Virtual Machine or use the shortcut Ctrl+N to open the New Virtual Machine Wizard.
  3. Select the Installation Type:
    • The wizard will present two options: Typical or Custom. Choose Typical for a standard setup.
  4. Browse for the ISO:
    • When prompted, browse to the location of the downloaded ISO file and select it, then click Next.
  5. Skip Product Key:
    • You can skip entering the product key at this stage. Select Windows Server 2022 Standard from the version list.
    • Enter your name and password if desired.
  6. Address Installation Errors (if applicable):
    • During installation, you might encounter the error “Windows cannot find the Microsoft Software License Terms.” To resolve this:
      1. Go to VM Settings > Options.
      2. Enable Secure Boot.
      3. Ensure the VM has at least 4GB of RAM and sufficient disk space.
      4. Disable the Floppy Disk option.
    • Once these adjustments are made, the installation should proceed smoothly.
  7. Configure Language and Region:
    • After the system reboots, select your language, time and currency format, and keyboard layout, then click Next.
  8. Select Installation Type:
    • Choose Windows Server 2022 Standard Evaluation (Desktop Experience).
  9. Partition Setup:
    • Select Custom to install Windows Server without additional software.
    • You can either click Next to accept the default partition size or select New to create a custom partition size for installation.
  10. Set Administrator Password:
    • When prompted, enter a password for the Administrator account. The password must meet the following requirements:
      • Minimum length: 7 characters
      • At least 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character.
  11. Finish Installation:
    • The installation will proceed. Once completed, you can use Ctrl+Alt+Del or go to the VM menu and select Send Ctrl+Alt+Del to access the login screen.

That’s it! You have successfully installed Windows Server 2022 on VMware Workstation Pro.