Checking Network Connectivity - QuanergySystems/quanergy_client GitHub Wiki

Checking Network Connectivity

You’ve set up all essential connections and processes, so verify that the DHCP server and network port are working properly, as follows:

  1. Open a new terminal (Ctrl+Alt+T).

  2. Check the status of your DHCP server by executing this command:

$ ifconfig

If eth0 is working, you should see 10.0.0.1 display on screen, which confirms that the IP address of the virtual machine is set correctly.

 Figure 26. Terminal Window Execution of ifconfig and sudo service Commands

  1. Check whether your DHCP server is running by executing this command:

$ sudo service isc-dhcp-server status

  • If it is running, the response is start/running, which means it is a successful.

  • If it is not running, the response is stop/waiting. Execute a restart command:

$ sudo service isc-dhcp-server restart

  1. If you’re running VMware Fusion or VMware Workstation, you also have the extra option of checking the network adapter status by clicking each network  symbol on the Ubuntu VM desktop tool bar (Figure 27) and visually checking the drop-down menu to confirm:
  • In one  menu (highlighted as yellow), the Bridged (Thunderbolt Ethernet) item is checked, as shown in Figure 27. The Ethernet port is able to act as a DHCP server.

  • In another  menu (highlighted as blue), the NAT (network address translation) item should be checked (Figure 27). A checked NAT item is able to connect to the computer’s Internet service.

 Figure 27. VM Network Adapter Dialog Box