console 下如何配置IP
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 30
- 注册时间: 2005-05-14 12:57
console 下如何配置IP
以前IP是自己指定的,现在要改成自动获得,但是只能进console,该怎么办呢?
-
- 帖子: 3025
- 注册时间: 2005-05-07 23:57
- 联系:
- GOVO
- 帖子: 427
- 注册时间: 2005-05-15 3:09
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
主要是修改/etc/network/interfaces文件
看到了吗?
把static改成dhcp就可以了
祝你好运
代码: 全选
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
# The primary network interface
#iface eth0 inet static
# address 10.16.3.99
# netmask 255.255.255.0
# network 10.16.3.0
# broadcast 10.16.3.255
# gateway 10.16.3.1
iface eth0 inet dhcp
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.1 61.153.177.196 61.153.177.197
dns-search fireteam.org
auto eth0
把static改成dhcp就可以了
祝你好运
我心无畏,源自于我心无知。