全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 933|回复: 18

[美国VPS] colocrossing杜甫怎么绑定多ip

[复制链接]
发表于 2023-12-12 10:26:26 | 显示全部楼层 |阅读模式
debian 11系统

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
auto eno1
auto eno1:1
allow-hotplug eno1:1
auto eno1:2
allow-hotplug eno1:2

iface lo inet loopback

# The primary network interface
allow-hotplug eno1
iface eno1 inet static
        address 192.88.88.88/30
        gateway 192.88.88.87
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 8.8.8.8
        dns-search colocrossing.com


iface eno1:1 inet static
        address 172.88.88.88/29
        dns-nameservers 8.8.8.8

iface eno1:2 inet static
        address 172.88.88.88/29
        dns-nameservers 8.8.8.8
发表于 2023-12-12 10:31:58 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2023-12-12 10:32:45 | 显示全部楼层
之前我买独服让机房的人给我配置收了我20刀。
结果后面发现,他就是一个C段的ip,弄了253条硬加上去的。一条一条手工加。我也是醉了。还以为会有什么高明的策略配置了
发表于 2023-12-12 10:35:20 | 显示全部楼层
GPT的答案,往后加就是了
  1. # This file describes the network interfaces available on your system
  2. # and how to activate them. For more information, see interfaces(5).

  3. source /etc/network/interfaces.d/*

  4. # The loopback network interface
  5. auto lo
  6. auto eno1
  7. auto eno1:1
  8. allow-hotplug eno1:1
  9. auto eno1:2
  10. allow-hotplug eno1:2

  11. iface lo inet loopback

  12. # The primary network interface
  13. allow-hotplug eno1
  14. iface eno1 inet static
  15.         address 192.88.88.88/30
  16.         gateway 192.88.88.87
  17.         # dns-* options are implemented by the resolvconf package, if installed
  18.         dns-nameservers 8.8.8.8
  19.         dns-search colocrossing.com

  20. iface eno1:1 inet static
  21.         address 172.88.88.88/29
  22.         dns-nameservers 8.8.8.8

  23. iface eno1:2 inet static
  24.         address 192.88.88.89/30
  25.         dns-nameservers 8.8.8.8

  26. iface eno1:3 inet static
  27.         address 192.88.88.90/30
  28.         dns-nameservers 8.8.8.8
复制代码
 楼主| 发表于 2023-12-12 10:35:40 | 显示全部楼层
jessegold 发表于 2023-12-12 10:32
之前我买独服让机房的人给我配置收了我20刀。
结果后面发现,他就是一个C段的ip,弄了253条硬加上去的。一 ...

发表于 2023-12-12 10:35:53 来自手机 | 显示全部楼层
只有1个可用ip呢
发表于 2023-12-12 10:36:21 | 显示全部楼层
jessegold 发表于 2023-12-12 10:32
之前我买独服让机房的人给我配置收了我20刀。
结果后面发现,他就是一个C段的ip,弄了253条硬加上去的。一 ...

一个C段写脚本就好了真手动要么s b要么摸鱼
发表于 2023-12-12 10:37:04 | 显示全部楼层
centos比较方便,可以写
ADDRESS=
ADDRESS1=
ADDRESS2=
 楼主| 发表于 2023-12-12 10:37:56 | 显示全部楼层

加了,但是这样配置不生效
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-6 19:56 , Processed in 0.087634 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表