改配置/etc/network/interfaces
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
-
- source /etc/network/interfaces.d/*
-
- # The loopback network interface
- auto lo
- iface lo inet loopback
-
- # The primary network interface
- auto ens3
- iface ens3 inet static
- address x.x.x.1/24
- gateway x.x.x.x
- # dns-* options are implemented by the resolvconf package, if installed
- dns-nameservers 8.8.8.8
-
- auto ens3:0
- iface ens3:0 inet static
- address x.x.x.1/24
- gateway x.x.x.x
- # dns-* options are implemented by the resolvconf package, if installed
- dns-nameservers 8.8.8.8
复制代码
|