When installing a virtual machine, the virtual network 1 (eth1) cannot be found and does not appear.

1. When installing the virtual machine, the virtual network 1 (eth1) cannot be found and does not appear.

1. Install virtualbox first
2. Then install vagrant
3. There is no VirtualBoxHost-OnlyNetWork solution when using ipconfig in windows

1) Solution

Find the Network and Internet option in Windows settings and select Change adapter options on the right
Insert image description here

  1. You can see the adapter list and you can find the virtualbox adapter (if not, there are tutorials on the Internet to add network adapters)
    Insert image description here
  2. find details
    Insert image description here
  3. Check the ipv4 address of the adapter (see item 5 if there is no ipv4 address)

Insert image description here

  1. If you don’t have an ipv4 address, set it yourself (click edit and use the ipv4 adapter to operate)
    Insert image description here
  2. Change automatic to manual
  3. select ipv4
  4. Customize ipv4 (within the allowed range) and click Save
  5. Connect the above adapter Ethernet 4 (for virtualbox adapter) and use ipconfig to view it.

4. There is no eth1 in ifconfig in the virtual machine.

When VirtualBox is installed, it does not automatically create a Host-Only network. If you need to communicate between the virtual machine and the host, you must manually create a host-only network. The creation method can be through the graphical interface or the command line. The function is the same.

The following is the operation path for creating a Host-only network in the graphical interface:

Insert image description here
5. Install ifconfig command

1. If you directly enter yum install ifconfig to install, you will be prompted: There is no available software package ifconfig.

Insert image description here

2. Then we need to use yum search ifconfig to search, which installation package to search for

Insert image description here
3. It has been searched. You can enter yum install net-tools.x86_64 in the command line.

If you enter yum install net-tools.x86_64, it prompts: There is no available software package net-tool.x86_64.

Enter sudo yum update to update and enter yum install net-tools.x86_64 to succeed.

Guess you like

Origin blog.csdn.net/qq_44696532/article/details/134059160