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

The solution of not surfing the Internet under VirtualBox Linux

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

Share

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

In the network card settings, set the connection mode to 'bridge network card'

Change the network card profile

[root@localhost tab] # cat / etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

HWADDR=08:00:27:27:57:C8

TYPE=Ethernet

# UUID=500d1445-843f-4312-9ab0-ac228338bad8

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=dhcp

IPV6INIT=no

USERCTL=no

Restart the network

[root@localhost tab] # service network restart

Then you can connect to the network normally.

[root@localhost tab] # ping www.baidu.com

PING www.a.shifen.com (103.235.46.39) 56 (84) bytes of data.

64 bytes from 103.235.46.39: icmp_seq=1 ttl=49 time=47.0 ms

64 bytes from 103.235.46.39: icmp_seq=2 ttl=49 time=45.4 ms

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