virtualbox Centos7.4 virtual machine access

Configured the NIC's ip 2

Hostonly is a local access

Another card is used to bridge the Internet

The question is how this bridge card are not on the Internet

Configuration is as follows:

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s8
UUID=3279eccf-328e-457f-9c50-a2a602e07327
DEVICE=enp0s8
ONBOOT=yes

VM is also set bridge mode, then check the information found in promiscuous mode needs to be set to "allow all", and before setting is prohibited.

After modifying the promiscuous mode Network Service Restart

service network restart

The network can access outside normal

Released two original articles · won praise 0 · Views 77

Guess you like

Origin blog.csdn.net/weixin_42202052/article/details/104389489