课程: Linux System Engineer: Networking and SSH

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Ensure connectivity with ping

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…

内容