Summary of ubuntu Linux virtual machine networking problems

1. There is no ens33 network card in ifconfig.

  

    Restart network service discovery: service network restart
    Failed to restart network.service: Unit network.service not found.

    Workaround: sudo dhclient ens33

    After solving: 

2. After the virtual machine is restarted, there is no problem with the interface, NAT settings and virtual machine settings, but the network cannot be used.

    Solution:

    On the host resolve,

    This PC -> Manage

 

    Change these items to enable.

     Then restart the virtual machine, you can go online normally.

Guess you like

Origin blog.csdn.net/weixin_48488858/article/details/130248400