求助..无法获取IP

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

求助..无法获取IP

#1

帖子 wu1990 » 2010-06-06 16:36

学校宿舍

windows下
adsl拨号后出外网,不拨号的话自动获取IP只能进内网。

ubuntu下
不拨号获取不到IP了。。手动IP是不行的(试过,我从win下获取IP然后ubuntu下手动IP都不行)。。。。

不知道扫描原因。。
thorne
帖子: 660
注册时间: 2008-10-08 22:01

Re: 求助..无法获取IP

#2

帖子 thorne » 2010-06-06 16:46

ubuntu有图形化的界面的配置方法

用dhclient命令能成功获取IP么?

当然也可以修改/etc/network/interfaces文件
一个典型的自动获取IP的文件内容应该是这样的

代码: 全选

# 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

# The primary network interface
auto eth0
iface eth0 inet dhcp

代码: 全选

其实我是个Debian GNU/Linux用户
Octave script :http://forum.ubuntu.org.cn/viewtopic.php?f=35&t=254511
Octave中文:http://forum.ubuntu.org.cn/viewtopic.php?f=35&t=318969
wu1990
帖子: 13
注册时间: 2009-05-07 20:51

Re: 求助..无法获取IP

#3

帖子 wu1990 » 2010-06-06 17:12

chdlient
bee-laptop:~$ sudo dhclient eth0
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:1b:24:fa:a0:8e
Sending on LPF/eth0/00:1b:24:fa:a0:8e
Sending on Socket/fallback
DHCPREQUEST of 192.168.1.100 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.1.100 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
No DHCPOFFERS received.
Trying recorded lease 192.168.1.100
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
wu1990
帖子: 13
注册时间: 2009-05-07 20:51

Re: 求助..无法获取IP

#4

帖子 wu1990 » 2010-06-06 17:32

我在 vbox下装了个xp却可以获取到IP。。。。。

:em20
头像
xieshaohu
帖子: 1565
注册时间: 2007-10-24 20:20
来自: 北京、海淀
联系:

Re: 求助..无法获取IP

#5

帖子 xieshaohu » 2010-06-06 19:31

本地防火墙的状态如何?

1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
Dell Vostro 1500, T7300/4GB/WD5000BEVT/nVidia 8400GM, Ubuntu 10.04 x86_64/VMware 7(Win7)
我的博客:http://xieshaohu.wordpress.com/
wu1990
帖子: 13
注册时间: 2009-05-07 20:51

Re: 求助..无法获取IP

#6

帖子 wu1990 » 2010-06-06 21:02

禁用了
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 求助..无法获取IP

#7

帖子 eexpress » 2010-06-06 21:12

你是不是校园网什么的啊
● 鸣学
wu1990
帖子: 13
注册时间: 2009-05-07 20:51

Re: 求助..无法获取IP

#8

帖子 wu1990 » 2010-06-06 21:18

是,但是却是用电信adsl出外网。。
wu1990
帖子: 13
注册时间: 2009-05-07 20:51

Re: 求助..无法获取IP

#9

帖子 wu1990 » 2010-06-06 23:46

win7里vmware转个ubuntu,桥接确又可以获取到IP...

彻底晕掉 :em20 :em20 :em20 :em20 :em20 :em20 :em20 :em20
wu1990
帖子: 13
注册时间: 2009-05-07 20:51

Re: 求助..无法获取IP

#10

帖子 wu1990 » 2010-06-07 19:48

.....
thorne
帖子: 660
注册时间: 2008-10-08 22:01

Re: 求助..无法获取IP

#11

帖子 thorne » 2010-06-07 20:45

网络和你用什么系统关系不大吧

代码: 全选

其实我是个Debian GNU/Linux用户
Octave script :http://forum.ubuntu.org.cn/viewtopic.php?f=35&t=254511
Octave中文:http://forum.ubuntu.org.cn/viewtopic.php?f=35&t=318969
回复