Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to connect a Linux virtual machine to WiFi

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to connect the Linux virtual machine to WiFi, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!

Because of the high security of the Linux system, the network devices in the system need to be configured to connect with the outside network, so how can we connect our computers to WiFi? This article

View routing device route-n

Note: generally we use route-n to find the route, the first is the default gateway, we need to delete it, and then reset it.

two。 Delete route-br0 Fil

3. Delete or comment gateway information

Vim ifcfg-br0

Note: if you use the vim ifcfg-br0 command to see that there is Gateway, we need to delete it or comment it out.

Set up information about the network in the configuration file

Note: comment or delete the gateway information in the / etc/sysconfig/network file. Restart the network systemctl restart network # # either of the two can reboot

Connect to the network nm-connection-editor # # turn on the network connection device

Through the above steps, the virtual machine can connect to the WiFi. If the WiFi cannot be connected, we can check it through the ls / etc/sysconfig/network-scripts command. If there is an ifcfg-Wired_connection_1, we need to delete this file and restart network.

Mv ifcfg-Wired_connection_1 / above is how to connect the Linux virtual machine to all the contents of WiFi. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report