1、vim /etc/network/interfaces

  1. auto lo
  2. iface lo inet loopback
  3. iface ens3 inet manual
  4. auto vmbr0
  5. iface vmbr0 inet static
  6. address 192.100.4.250/24
  7. gateway 192.100.4.254
  8. bridge_ports ens3
  9. bridge_stp off
  10. bridge_fd 0
  11. auto ens18 #开机自启
  12. iface ens18 inet static
  13. address 192.100.3.200/24
  14. gateway 192.100.3.254

2、重启

service networking restart