zhangqiang 发表于 2016-12-8 12:55:29

ubuntu下单网卡绑定多个IP

进入 /etc/network/ 目录下.修改interfaces文件.
# The primary network interface
auto eth0
iface eth0 inet static
address 110.25.*.*
netmask 255.255.255.0
gateway 110.25.*.1
#auto eth0:0
#iface eth0:0 inet static
#address 110.25.*.*
#netmask 255.255.255.0

eth0:0类似于数组下标.接下来想绑定多个就可以以此类推eth0:1,eth0:2,eth0:3........
这种方式稍微操作不当,则会造成远程无法连接,所以一定要看仔细。
页: [1]
查看完整版本: ubuntu下单网卡绑定多个IP