console 下如何配置IP

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

console 下如何配置IP

#1

帖子 lof » 2005-06-25 18:19

以前IP是自己指定的,现在要改成自动获得,但是只能进console,该怎么办呢?
yongyi
帖子: 3025
注册时间: 2005-05-07 23:57
联系:

#2

帖子 yongyi » 2005-06-26 8:06

既然自动获得,又从何谈起要配置IP了?请明言。
独自看一看大海
总想起身边走在路上的朋友
Lenovo E290-420[Celeron-M420/256M/60G/Intel GMA950]
头像
GOVO
帖子: 427
注册时间: 2005-05-15 3:09

#3

帖子 GOVO » 2005-06-26 12:06

其它方法我不清楚,因为我现在还在WIN下,不过有一个暂时解决方法:
右击面板--添加到---把到一个网络监视器,把它拖到面板上去,然后就可以通过这个小东东来配置了。
琴声如我
头像
firehare
帖子: 2625
注册时间: 2005-04-10 16:54
来自: 温州大学
联系:

#4

帖子 firehare » 2005-06-26 22:18

主要是修改/etc/network/interfaces文件

代码: 全选

# 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就可以了
祝你好运
我心无畏,源自于我心无知。
图片
头像
GOVO
帖子: 427
注册时间: 2005-05-15 3:09

#5

帖子 GOVO » 2005-06-27 0:13

哗,不用那么夸张吧,这点小事也改?
琴声如我
回复