SYS‐255 Lab 3 Linux - aljimenez28/champlain GitHub Wiki
In this lab I configured a RockyOS virtual machine (dhcp01) to join the internal LAN, created a privileged user, verified network connectivity, and explored key Linux administration commands. The goal was to integrate a Linux system into a mixed-OS enterprise network while troubleshooting firewall and DNS issues.
-
nmtui – Configure static IP, gateway, and DNS.
sudo nmtui
- IP:
10.0.5.3/24 - Gateway:
10.0.5.2 - DNS:
10.0.5.5 - Search Domain:
yourname.local - Hostname:
dhcp01-yourname
- IP:
-
Activate --> Deactivate --> Reactivate
-
nmcli connection up – Bring the connection up after editing.
-
ping google.com – Test outside connectivity.
-
Create a user with admin rights:
sudo useradd -m -G wheel alejandra sudo passwd alejandra groups alejandra
-
Ping internal and external hosts:
ping google.com ping ad01 ping fw01
-
Added A and PTR records for dhcp01 on ad01 (Windows DNS).
-
Verified with:
ping dhcp01
-
From WKS01:
ssh alejandra@dhcp01-yourname
- pwd – Present working directory.
- cd .. – Move up one directory.
- ls -l – Long listing.
- man hier – View directory hierarchy documentation.
- mkdir ~/sys255 && cd ~/sys255 – Create and enter a new directory.
- sudo dnf install tree – Install a package with elevated privileges.
- sudo -i – Start a root shell.
- whoami – Show current user.
7. History and Hidden Files
- history – Display command history.
- ls -la – Show hidden files.
- cat .bash_history – View saved commands.
- history -c – Clear bash history.
- uptime – Display system load and uptime.
- df -h – Disk usage in human-readable format.
- free -m – Memory usage in MB.
-
Issue: dhcp01 could not reach the gateway or internet, and internal communication failed.
-
Cause: Firewall routing rules were incorrect, which blocked network traffic between subnets.
-
Fix:
- Reset wks01 and ad01 to clean snapshots.
- Restarted the configuration process from Lab 01 to restore correct firewall routing.
- Once routing was fixed, dhcp01 and wks01 immediately gained network connectivity.
-
Issue: Forgot to change the computer name on ad01 and initially misconfigured DNS.
-
Impact: wks01 could not reliably join the domain.
-
Fix:
- Disconnected wks01 from the domain.
- Demoted ad01 from domain controller.
- Removed the DNS role and reset the AD configuration.
- Corrected the computer name, reinstalled DNS, and re-promoted ad01 as a domain controller.
- Rejoined wks01 to the rebuilt domain.