小弟新手,ubuntu版本为9.04server,之前在/etc/network/interface 配置了静态IP地址
然后sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start
看到IP地址生效,然后过了一些时间(1小时左右),发现IP地址被改了,像是DHCP分配的
请问一下还有哪里可以影响到IP地址设置的?
新手求助,关于IP地址被更改..
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 3
- 注册时间: 2013-04-17 10:35
- 系统: ubuntu 9.04
- b33e
- 帖子: 3864
- 注册时间: 2011-06-07 14:20
- 系统: Mint18
-
- 帖子: 3
- 注册时间: 2013-04-17 10:35
- 系统: ubuntu 9.04
Re: 新手求助,关于IP地址被更改..
# The primary network interfaceb33e 写了:你的interfaces文件怎么写的?
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地址被更改..
水平差,没看出来有问题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
-
- 帖子: 3
- 注册时间: 2013-04-17 10:35
- 系统: ubuntu 9.04
Re: 新手求助,关于IP地址被更改..
重敲一遍
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start
可以改回来,过1到2个小时又会发生IP地址变化的情况
PS:小弟用的是虚拟机
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start
可以改回来,过1到2个小时又会发生IP地址变化的情况
PS:小弟用的是虚拟机
-
- 帖子: 4
- 注册时间: 2008-10-01 21:46
Re: 新手求助,关于IP地址被更改..
VM在使用NAT的时候可能会修改虚拟机的IP地址 VBOX等不太清楚caozihao 写了:重敲一遍
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start
可以改回来,过1到2个小时又会发生IP地址变化的情况
PS:小弟用的是虚拟机