ubuntu 8.04 安装之后上不了网。DHCP

系统安装、升级讨论
回复
zq76zw
帖子: 57
注册时间: 2008-05-15 9:17
送出感谢: 0
接收感谢: 0

ubuntu 8.04 安装之后上不了网。DHCP

#1

帖子 zq76zw » 2009-03-04 20:06

在笔记本上装的Ubuntu8.04
装好之后不能上网,不知道怎么设置。
也不知道该如何提供信息供你们分析,以下是在网络工具里面看到的信息:
Network device: eth0
Hardware address: not available
IP address: not available
Netmask: not available
Broadcast: not available
Multicast: not available
MTU: not available
Link speed: not available
State: not available
Transmitted packets: 0
Transmission errors: 0
Received packets: 0
Reception errors: 0
Collisions: 0


Network device: lo
Hardware address: Loopback
IP address: 127.0.0.1
Netmask: 255.0.0.0
Broadcast:
Multicast: Disabled
MTU: 16436
Link speed:
State: Active
Transmitted packets: 1704
Transmission errors: 0
Received packets: 1704
Reception errors: 0
Collisions: 0

下面这个是用的 lspci:

00:00.0 Host bridge: Intel Corporation Cantiga Memory Controller Hub (rev 07)
00:01.0 PCI bridge: Intel Corporation Cantiga PCI Express Graphics Port (rev 07)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.3 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation ICH9M/M-E 2 port SATA IDE Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
00:1f.5 IDE interface: Intel Corporation ICH9M/M-E 2 port SATA IDE Controller (rev 03)
00:1f.6 Signal processing controller: Intel Corporation 82801I (ICH9 Family) Thermal Subsystem (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation Unknown device 0648 (rev a1)
02:00.0 Network controller: Intel Corporation Unknown device 4232
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev ff)



lsmod
Module Size Used by
ipv6 311848 14
rfcomm 47392 2
l2cap 28800 13 rfcomm
bluetooth 67748 4 rfcomm,l2cap
ppdev 11400 0
acpi_cpufreq 10832 1
cpufreq_powersave 3200 0
cpufreq_stats 8416 0
cpufreq_userspace 6180 0
cpufreq_ondemand 11152 1
freq_table 6464 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
cpufreq_conservative 10632 0
dock 12960 0
sbs 17808 0
sbshc 8960 1 sbs
container 6656 0
iptable_filter 4608 0
ip_tables 24104 1 iptable_filter
x_tables 23560 1 ip_tables
af_packet 27272 0
parport_pc 41128 0
lp 14916 0
parport 44300 3 ppdev,parport_pc,lp
joydev 15488 0
snd_hda_intel 440408 3
snd_pcm_oss 47648 0
snd_mixer_oss 20224 1 snd_pcm_oss
snd_pcm 92168 2 snd_hda_intel,snd_pcm_oss
uvcvideo 62084 0
snd_page_alloc 13200 2 snd_hda_intel,snd_pcm
snd_hwdep 12552 1 snd_hda_intel
compat_ioctl32 11136 1 uvcvideo
snd_seq_dummy 5764 0
i2c_core 28544 0
videodev 30720 1 uvcvideo
v4l1_compat 15492 2 uvcvideo,videodev
v4l2_common 21888 3 uvcvideo,compat_ioctl32,videodev
snd_seq_oss 38912 0
snd_seq_midi 10688 0
snd_rawmidi 29856 1 snd_seq_midi
snd_seq_midi_event 10112 2 snd_seq_oss,snd_seq_midi
snd_seq 63232 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 27912 2 snd_pcm,snd_seq
snd_seq_device 10644 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
psmouse 46236 0
video 23444 0
output 5632 1 video
serio_raw 9092 0
battery 16776 0
ac 8328 0
button 10912 0
snd 70856 17 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
pcspkr 4992 0
shpchp 38172 0
pci_hotplug 34608 1 shpchp
evdev 14976 8
intel_agp_ich9m 28448 0
soundcore 10400 1 snd
ext3 149264 2
jbd 57000 1 ext3
mbcache 11392 1 ext3
sg 41880 0
sr_mod 20132 0
cdrom 41512 1 sr_mod
sd_mod 33280 5
ata_generic 9988 0
usbhid 35296 0
hid 44992 1 usbhid
usb_storage 82496 0
ata_piix 24196 4
libusual 23520 1 usb_storage
pata_acpi 9856 0
libata 176432 3 ata_generic,ata_piix,pata_acpi
scsi_mod 178488 5 sg,sr_mod,sd_mod,usb_storage,libata
r8169 36612 0
ehci_hcd 41996 0
uhci_hcd 29856 0
usbcore 169904 7 uvcvideo,usbhid,usb_storage,libusual,ehci_hcd,uhci_hcd
thermal 19744 0
processor 41448 4 acpi_cpufreq,thermal
fan 6792 0
fbcon 46336 0
tileblit 4096 1 fbcon
font 10112 1 fbcon
bitblit 7424 1 fbcon
softcursor 3712 1 bitblit
fuse 56112 5


ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1e:68:e6:15:7f
inet addr:192.168.17.115 Bcast:192.168.17.255 Mask:255.255.255.0
inet6 addr: fe80::21e:68ff:fee6:157f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:1297080123090 overruns:0 frame:0
TX packets:0 errors:0 dropped:202 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:251 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1604 errors:0 dropped:0 overruns:0 frame:0
TX packets:1604 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:83712 (81.7 KB) TX bytes:83712 (81.7 KB)

我照网上说的修改成静态地址,设置好dns后还是不能上网。在网络工具里面ping网关都ping不通。只能ping主机。
jarsinh
帖子: 513
注册时间: 2008-02-15 0:23
来自: 计算机
送出感谢: 0
接收感谢: 1 次
联系:

Re: ubuntu 8.04 安装之后上不了网。DHCP

#2

帖子 jarsinh » 2009-03-04 22:45

是拨号上网吗??
百空度间
http://hi.baidu.com/jarsin
之所以用Ubuntu/Unity,
因为它代表创新,且很有个性,习惯了后很好用!
有人总是怀念过去、沉溺于过去,
没错,那是你的自由!
同时,创新、变革才是王道,任何新事物,对于那些老古董级人物,他们一开始是很难适应的,但是历史证明:
与其让历史抛弃而做怨妇,不如主动去拥抱学习了解新生事物!
LINUX初学者QQ群:
34990900 5#
84113859 6#
41598402 2#
欢迎一起讨论,共同学习,共同进步!
zq76zw
帖子: 57
注册时间: 2008-05-15 9:17
送出感谢: 0
接收感谢: 0

Re: ubuntu 8.04 安装之后上不了网。DHCP

#3

帖子 zq76zw » 2009-03-04 23:26

jarsinh 写了:是拨号上网吗??
不是的,是单位局域网。装上之后不能上网,用8.04 桌面版装的。
而且在关盘上运行的时候也不能上网。现在不知道该怎么设置。我在我的台式机上装的时候装好就能上网了的,不知道是不是驱动问题。
我的网卡是: Realtek RTL8168C(P)/811c(p) pci-e gigabit Ethernet NIC
还有:
sudo /etc/init.d/networking restart 之后出现下列文字:谁帮我解释下什么意义可以么?
* Reconfiguring network interfaces... RTNETLINK answers: No such process
There is already a pid file /var/run/dhclient.eth0.pid with pid 6205
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:1e:68:e6:15:7f
Sending on LPF/eth0/00:1e:68:e6:15:7f
Sending on Socket/fallback
There is already a pid file /var/run/dhclient.eth0.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:1e:68:e6:15:7f
Sending on LPF/eth0/00:1e:68:e6:15:7f
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵
送出感谢: 1 次
接收感谢: 6 次

Re: ubuntu 8.04 安装之后上不了网。DHCP

#4

帖子 wangdu2002 » 2009-03-05 0:13

局域网里安装时,有没拔掉网线,安装时有没有提示DHCP获取IP成功?Win下上网是否正常,Win下获得的IP是多少?
如果可以问到网管,能使用静态IP地址就比较简单了。否则要问下网管的DHCP是如何设置的了。
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
zq76zw
帖子: 57
注册时间: 2008-05-15 9:17
送出感谢: 0
接收感谢: 0

Re: ubuntu 8.04 安装之后上不了网。DHCP

#5

帖子 zq76zw » 2009-03-05 11:30

我在局域网安装的时候没有拔掉网线(能解释下这个有什么影响么?)。安装的时候从桌面安装的,中途我走开了,不知道什么提示。我在win下能正常上网的。
还有,我的笔记本带有无线网卡,但是安装系统之后在网络设置里面没有看到无线连接的配置。另外,昨天晚上我下载了网卡的驱动,装了之后连网卡都找不到了,就是那个ifconfig -a 之后都没有eth0了
zq76zw
帖子: 57
注册时间: 2008-05-15 9:17
送出感谢: 0
接收感谢: 0

Re: ubuntu 8.04 安装之后上不了网。DHCP

#6

帖子 zq76zw » 2009-03-05 13:06

:em04 :em04 :em04 :em04
i have my ubuntu network problem settled...
by reinstall the ubuntu without the wired connected...
:em04 :em04 :em04 :em04
it's so amazing..
but if there anyone can tell me why !?
any and all help is widely appreciated!
头像
bigstreet
帖子: 9
注册时间: 2009-02-03 22:39
送出感谢: 0
接收感谢: 0
联系:

Re: ubuntu 8.04 安装之后上不了网。DHCP

#7

帖子 bigstreet » 2009-03-06 10:02

:em04
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵
送出感谢: 1 次
接收感谢: 6 次

Re: ubuntu 8.04 安装之后上不了网。DHCP

#8

帖子 wangdu2002 » 2009-03-06 16:23

因为我们公司的电脑少于20台,所以是不用DHCP的(静态IP速度快且稳定可靠)。加上我安装比较喜欢快一点,因此一向都是用AlterCD装系统的,安装前必定拔掉网线,这样安装快,而且安装时就可以输入网络参数,以后就一劳永逸了。如果不拔掉网络,安装初期会有一个检测DhCP的过程,得到所分配的ip后会报告安装者的。
如果安装后再搞,可以看下/etc/networking/interfaces和/etc/resolv.conf里面应该可以再次设置的DHCP的。
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
shangrilawyx
帖子: 29
注册时间: 2009-03-05 20:59
送出感谢: 0
接收感谢: 0

Re: ubuntu 8.04 安装之后上不了网。DHCP

#9

帖子 shangrilawyx » 2009-03-06 22:58

:em11
回复

回到 “系统安装和升级”