• Start 2 Linux VMs with the network in bridged mode and check that they are reachable using ping.
时间: 2023-11-28 08:50:29 浏览: 88
To start two Linux VMs with network in bridged mode and check their connectivity using ping, you can follow these steps:
1. Open your virtualization software (e.g. VirtualBox, VMware, etc.) and create two new Linux virtual machines.
2. In the network settings of each virtual machine, select the "Bridged Adapter" option as the network adapter type.
3. Power on both virtual machines and wait for them to boot up.
4. Open a terminal window in the first virtual machine and run the command `ifconfig` to check its IP address.
5. In the same terminal window, run the command `ping` followed by the IP address of the second virtual machine. For example: `ping 192.168.1.2`.
6. If the ping is successful, you should see output similar to the following:
```
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=0.365 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=64 time=0.323 ms
64 bytes from 192.168.1.2: icmp_seq=3 ttl=64 time=0.340 ms
```
7. Open a terminal window in the second virtual machine and repeat steps 4-6, but this time pinging the IP address of the first virtual machine.
If both virtual machines are reachable using ping, then their network connectivity is working properly.
阅读全文