新手求助,关于IP地址被更改..

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
caozihao
帖子: 3
注册时间: 2013-04-17 10:35
系统: ubuntu 9.04

新手求助,关于IP地址被更改..

#1

帖子 caozihao » 2013-04-17 12:06

小弟新手,ubuntu版本为9.04server,之前在/etc/network/interface 配置了静态IP地址
然后sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start
看到IP地址生效,然后过了一些时间(1小时左右),发现IP地址被改了,像是DHCP分配的
请问一下还有哪里可以影响到IP地址设置的?
头像
b33e
帖子: 3864
注册时间: 2011-06-07 14:20
系统: Mint18

Re: 新手求助,关于IP地址被更改..

#2

帖子 b33e » 2013-04-17 12:59

你的interfaces文件怎么写的?
caozihao
帖子: 3
注册时间: 2013-04-17 10:35
系统: ubuntu 9.04

Re: 新手求助,关于IP地址被更改..

#3

帖子 caozihao » 2013-04-17 13:41

b33e 写了:你的interfaces文件怎么写的?
# The primary network interface
auto eth1
iface eth1 inet static
address 192.168.1.61
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
头像
b33e
帖子: 3864
注册时间: 2011-06-07 14:20
系统: Mint18

Re: 新手求助,关于IP地址被更改..

#4

帖子 b33e » 2013-04-17 16:15

caozihao 写了: # The primary network interface
auto eth1
iface eth1 inet static
address 192.168.1.61
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
水平差,没看出来有问题 :em06
caozihao
帖子: 3
注册时间: 2013-04-17 10:35
系统: ubuntu 9.04

Re: 新手求助,关于IP地址被更改..

#5

帖子 caozihao » 2013-04-17 17:16

重敲一遍
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start
可以改回来,过1到2个小时又会发生IP地址变化的情况

PS:小弟用的是虚拟机
wwtaolun
帖子: 4
注册时间: 2008-10-01 21:46

Re: 新手求助,关于IP地址被更改..

#6

帖子 wwtaolun » 2013-04-19 13:17

caozihao 写了:重敲一遍
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start
可以改回来,过1到2个小时又会发生IP地址变化的情况

PS:小弟用的是虚拟机
VM在使用NAT的时候可能会修改虚拟机的IP地址 VBOX等不太清楚
回复