ubuntu 系统添加 ip

  • 来源:网络
  • 更新日期:2020-07-14

摘要:sudo vim /etc/network/interfaces加入auto eno1:1iface eno1:1 inet static address 162.209.180.227 netmask 255.255.255.248auto eno1:2iface eno1:2 inet static addre

sudo vim /etc/network/interfaces

加入

auto eno1:1iface eno1:1 inet static address 162.209.180.227 netmask 255.255.255.248auto eno1:2iface eno1:2 inet static address 162.209.180.228 netmask 255.255.255.248auto eno1:3iface eno1:3 inet static address 162.209.180.229 netmask 255.255.255.248auto eno1:4iface eno1:4 inet static address 162.209.180.230 netmask 255.255.255.248auto eno1:5iface eno1:5 inet static address 23.224.37.2 netmask 255.255.255.0