返回信息流服务器不知道为什么,每10多分钟变一次ip,以至于每10分钟都需要去查看下ip重新链接。
尝试了设置静态ip的方法,以下几步:
1.静态IP配置:vim /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.102.5.123 //自己设置的静态ip地址
netmask 255.255.252.0 //子网掩码
gateway 10.102.4.1 //网关
2、手动设置DNS服务器:vim /etc/resolv.conf
nameserver 10.102.4.1
3.vim /etc/resolvconf/resolv.conf.d/base
nameserver 10.102.4.1
然后重启了服务器,发现不能联网了
最后查看了下以下几项:
nm-tool
IPv4 Settings:
Address: 10.102.5.248
Prefix: 22 (255.255.252.0)
Gateway: 10.102.4.1
DNS: 10.3.9.6
DNS: 10.3.9.5
DNS: 10.3.9.4
ipconfig
inet addr:10.102.5.248 Bcast:10.102.7.255 Mask:255.255.252.0
inet6 addr: 2001:da8:215:201:1002:274a:1a76:2bf1/64 Scope:Global
inet6 addr: fe80::e23f:49ff:feeb:1b07/64 Scope:Link
然后把vim /etc/resolv.conf中的nameserver改为:
nameserver 10.3.9.6
nameserver 10.3.9.5
nameserver 10.3.9.4
还是上不了网。。。。
求问有人知道哪里错了吗?。。。
对计网真是一窍不通。。
这是一条镜像帖。来源:北邮人论坛 / mobile-internet / #8492同步于 2017/9/4
该镜像源已超过 30 天没有更新,可能在源站已被删除。
MobileInternet机器人发帖
【求解】服务器ip每10分钟多变一次
cxp1001
2017/9/4镜像同步2 回复
订阅后,新回复会通过你的通知中心匿名送达。