在一块儿网卡上绑定多个ip地址的命令是什么?为何我用ifconfig enp0s25:0 222.11.22.22 up不对呢,显示no such device
enp0s25:0是否存在
1.编辑文件/etc/network/interfaces
2.添加
auto enp0s25:0
iface enp0s25:0 inet static
address 222.11.22.22
netmask 255.255.255.0
3.sudo ifconfig enp0s25:0 up 或 sudo ifup enp0s25:0
4.ifconfig查看