ubuntu 系统添加 ip

香港云服务器

sudo vim /etc/network/interfaces

加入

auto eno1:1
iface eno1:1 inet static
    address 162.209.180.227
    netmask 255.255.255.248

auto eno1:2
iface eno1:2 inet static
    address 162.209.180.228
    netmask 255.255.255.248

auto eno1:3
iface eno1:3 inet static
    address 162.209.180.229
    netmask 255.255.255.248

auto eno1:4
iface eno1:4 inet static
    address 162.209.180.230
    netmask 255.255.255.248

auto eno1:5
iface eno1:5 inet static
    address 23.224.37.2
    netmask 255.255.255.0

上一篇
下一篇