Virtual machine configuration

Virtual machine configuration

br0 detailed configuration:

DEVICE="br0"
BOOTPROTO=static
IPADDR=192.168.5.221
NETMASK=255.255.255.0
GATEWAY=192.168.5.254
ONBOOT=yes
DNS1=202.101.172.35
DEVICE=br0

 

    • eno5 detailed configuration:

      NAME=eno5
      DEVICE=eno5
      ONBOOT=yes
      TYPE=Ethernet
      BOOTPROTO=none
      BRIDGE=br0

    • DEVICE="eno5"

    • Turn off the firewall
      systemctl stop firewalld.service
    • Close networkmanager
      Centos7 version of NetworkManager command is closed with the Close command 6 version there are still many differences, close the command is:
      # Systemctl stop NetworkManager temporarily closed
      # Systemctl disable NetworkManager permanently closed network management commands

      Note: When other NIC configuration files for backup, comment out the "# ONBOOT = yes" on or off "ONBOOT = no"

Guess you like

Origin www.cnblogs.com/cuiqq/p/10967122.html