找回密码
 立即注册
CeraNetworksBGVM服务器主机交流IP归属甄别会员请立即修改密码
查看: 87|回复: 9

dd后第二个ip不能用,怎么破?

[复制链接]

21

主题

44

回帖

799

积分

高级会员

积分
799
发表于 2022-5-27 18:36:57 | 显示全部楼层 |阅读模式
如题
回复

使用道具 举报

47

主题

359

回帖

1461

积分

金牌会员

积分
1461
发表于 2022-5-27 18:41:18 | 显示全部楼层
改配置/etc/network/interfaces

[ol]
  • # 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
  • iface lo inet loopback
  • # The primary network interface
  • auto ens3
  • iface ens3 inet static
  •     address x.x.x.1/24
  •     gateway x.x.x.x
  •     # dns-* options are implemented by the resolvconf package, if installed
  •     dns-nameservers 8.8.8.8
  • auto ens3:0
  • iface ens3:0 inet static
  •     address x.x.x.1/24
  •     gateway x.x.x.x
  •     # dns-* options are implemented by the resolvconf package, if installed
  •     dns-nameservers 8.8.8.8[/ol]复制代码
  • 回复

    使用道具 举报

    41

    主题

    3134

    回帖

    7023

    积分

    论坛元老

    积分
    7023
    发表于 2022-5-27 18:37:35 | 显示全部楼层
    那就不用了
    回复

    使用道具 举报

    15

    主题

    516

    回帖

    1351

    积分

    金牌会员

    积分
    1351
    发表于 2022-5-27 18:39:35 | 显示全部楼层
    可以用


    [ol]
  • auto lo
  •   iface lo inet loopback
  • auto ens3
  •   iface ens3 inet static
  •    address IP1
  •    gateway 网关
  •    netmask 255.255.255.0
  •    dns-nameservers 8.8.8.8
  • auto ens3:0
  •   iface ens3:0 inet static
  •    address IP2
  •    gateway 网关
  •    netmask 255.255.255.0
  •    dns-nameservers 8.8.8.8[/ol]复制代码
  • 回复

    使用道具 举报

    130

    主题

    352

    回帖

    1342

    积分

    金牌会员

    积分
    1342
    发表于 2022-5-27 18:39:35 | 显示全部楼层
    那就不用了
    回复

    使用道具 举报

    21

    主题

    44

    回帖

    799

    积分

    高级会员

    积分
    799
     楼主| 发表于 2022-5-27 18:45:24 | 显示全部楼层

    Veff 发表于 2022-5-27 18:41

    改配置/etc/network/interfaces

    多谢大佬,我研究下
    回复

    使用道具 举报

    0

    主题

    103

    回帖

    322

    积分

    中级会员

    积分
    322
    发表于 2022-5-27 18:41:00 | 显示全部楼层
    羡慕你们有多个IP的。

    回复

    使用道具 举报

    11

    主题

    88

    回帖

    455

    积分

    中级会员

    积分
    455
    发表于 2022-5-27 18:47:49 | 显示全部楼层

    Veff 发表于 2022-5-27 18:41

    改配置/etc/network/interfaces

    大神NB
    回复

    使用道具 举报

    52

    主题

    5247

    回帖

    1万

    积分

    论坛元老

    积分
    12134
    发表于 2022-5-27 19:21:14 | 显示全部楼层
    流量都被收回了 ip还会远吗

    回复

    使用道具 举报

    11

    主题

    214

    回帖

    895

    积分

    高级会员

    积分
    895
    发表于 2022-5-27 18:41:00 | 显示全部楼层

    燕十三丶 发表于 2022-5-27 19:25

    流量都被收回了 ip还会远吗

    我有个192m流量500g的小鸡,纠结迁不迁日本
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|HS2V主机综合交流论坛

    GMT+8, 2024-5-19 19:12 , Processed in 0.066996 second(s), 3 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2023 Discuz! Team.

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