我在同一个网络中有多个Ubuntu服务器,有两个网络接口。公共互联网接入(80.90.100.40/29),内部网络通信(192.168.1.35/28)。所有的服务器都使用静态IP。
使用Ubuntu18.04的LTS使用的是网络/接口,静态IPS没有问题。他们只是联系在一起。接口配置如下:
auto lo
iface lo inet loopback
auto ens160
iface ens160 inet static
address 80.90.100.45
netmask 255.255.255.248
network 80.90.100.40
b