From the course: Linux System Engineer: Networking and SSH

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Ensure connectivity with ping

Ensure connectivity with ping

From the course: Linux System Engineer: Networking and SSH

Start my 1-month free trial

Ensure connectivity with ping

- [Instructor] The first step in trouble shooting a network is to ensure connectivity with various other hosts. The simplest tool for this job is ping, which is installed by default. We'll need both of our VM started and we'll need the IP addresses for both. I have arranged my VM so I can see them concurrently. I have rhhost1 on the left and rhhost2 on the right. Note, that if you do not have Virtual Box guest addition installed, you will need to press the host key to release your mouse pointer from one VM window in order to click on anything in the other. Now, in rhhost1, type into a terminal, ip, Space, addr, Space, show, And hit Enter. My IP address is 192.168.0.19. Now go to rhhost2 and in a terminal, type in ip, Space, addr, Space, show. The IP address of rhhost2 is 192.168.0.21. Since we're using a netmask of 255.255.255.0, or in CIDR format, /24, our network is 192.168.0 for both network interfaces. In theory, one should have connectivity with another. Let's test this. In the…

Contents