1, a real machine to determine whether access to the Internet
2, to find the real machine inside Windows to change the content adapter, turn off the network adapter
3, modify the configuration file
IP network address
* Virtual machine and real machine if there is the same network segment
1, to determine the real machine's IP address and subnet mask, gateway
IP: ipaddr 192.168.203.212
subnet mask: netmask 255.255.255.0
Gateway: Gateway 192.168.203.1
2 , virtual machine IP address configuration:
. a change the network adapter to bridge mode
b how to view IP address:.
#ifconfig
#ip aS (see IP is minimized in order)
. c configure virtual IP:
1, change the network configuration file:
# vim / etc / sysconfig / network- scripts / ifcfg-eno16777736
BOOTPROTO=dhcp //网卡使用什么模式获取IP地址
dhcp:自动获取IP地址
static:手动配置IP地址
ONBOOT=yes //开机自启
3, restart the network services:
the service's process management:
#systemctl (after 7.0) #service (before 7.0)
#systemctl Start / STOP / restart / Status service names // did not respond properly
#systemctl restart network
1. modify the network card configuration file
vim /etc/sysconfig/network-scripts/ifcfg-eno16777736
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.223.110
NETMASK=255.255.255.0 PREFIX=24
GATEWAY=192.168.223.1
DNS2=114.114.114.114
2. Restart card services
systemctl restart network
3. Turn off the firewall
systemctl stop firewalld
Process (software):
systemctl start / restart / stop / enable process name
- Modify the IP address with the command
#nmcli connection modify (modification) eno16777736 (NIC name)
ipv4.method (modifications) manual (manual) ipv4.addresses
192.168.203.222/24 ipv4.getway 192.168.203.1
ipv4.dns 8.8.8.8 Connection. autoConnect (automatic connection) Yes
nmcli connection down eno16777736 // turn off the card
nmcli connection up eno16777736 // restart card
Check if a software installation:
# Rpm-install package name -q