From the course: Practical Linux for Network Engineers: Part 1

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Network testing

Network testing

- [Instructor] So Ubuntu-2 has booted up. Ifconfig shows us that the IP address of a Docker container is 10.1.1.102. So we should be able to ping the Cisco router, which we can. Again, cat /etc/resolve.conf shows us our name server. So we should be able to ping google.com, which we can because google.com was resolved via this DNS server to this IP address, and we have internet connectivity on this Ubuntu PC. So that's the IP address of Ubuntu-2. Ubuntu-1 has this IP address. So can Ubuntu-1 ping Ubuntu-2? Yes, it can. And can Ubuntu-2 ping Ubuntu-1? Yes, it can. So that's an example of using DHCP on an Ubuntu computer as well as static IP addressing on another Ubuntu PC. These two Ubuntu PCs are connected to a basic ethernet switch, which in turn is connected to a Cisco IOSv router, in other words a viral router, which in turn is connected to the NAT cloud giving me internet connectivity. I don't have to use a Cisco router here. You could use another router from another vendor, or you…

Contents