- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
Troubleshooting network issues
In this exercise, you will need to troubleshoot and resolve connectivity issues to a web server. *This course is not approved or sponsored by Red Hat.*
Lab Info
Table of Contents
-
Challenge
Verify Server1.
Verify Server1 is running Apache:
systemctl status httpdVerify Apache is listening on port 80:
ss -lntp | grep 80Verify the content can be accessed locally:
curl localhostVerify the firewall is permitting port 80 traffic:
firewall-cmd --list-allPermit inbound traffic to Apache:
firewall-cmd --permanent --add-service=httpReload the firewall to pickup the change:
firewall-cmd --reload -
Challenge
Verify Server2.
On Server2 (10.0.1.11)
Attempt to pull the web content from Server1 via hostname:
curl ip-10-0-1-10.ec2.internalAttempt to pull the web content from Server1 via IP
curl 10.0.1.10Check to see what DNS hosts are being used:
cat /etc/resolv.confVerify resolution via the specified host:
dig @10.0.0.2 ip-10-0-1-10.ec2.internalVerify
/etc/nsswitch.conf:vim /etc/nsswitch.confAttempt to pull the web content from Server1 via hostname:
curl ip-10-0-1-10.ec2.internalPing
ip-10-0-1-10.ec2.internal:ping ip-10-0-1-10.ec2.internalReview
/etc/hosts:vim /etc/hostsAttempt to pull the web content from Server1 via hostname:
curl ip-10-0-1-10.ec2.internalInstall
elinks:yum install -y elinksUse
elinksto view the content:links -dump http://ip-10-0-1-10.ec2.internal
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.