不能上外网,大家救命啊

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
fzwyg
帖子: 8
注册时间: 2007-06-25 18:18

不能上外网,大家救命啊

#1

帖子 fzwyg » 2009-07-01 15:32

大家帮帮忙,装了UBUNTU8.04和9.04都是一样,无法上外网,也PING不通DNS,但内网上网及PING都很正常。网卡灯正常,IP和DNS在XP下很正常。
1、IFCONFIG结果
fzwyg@fzwyg-ubuntu:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0c:76:0f:dd:e9
inet addr:10.10.0.13 Bcast:10.10.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:76ff:fe0f:dde9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15567 errors:0 dropped:0 overruns:0 frame:0
TX packets:469 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16468320 (15.7 MB) TX bytes:54412 (53.1 KB)
Interrupt:20 Base address:0xc000

lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

2、LSPCI结果
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03)
00:01.0 PCI bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE Host-to-AGP Bridge (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82)
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev b2)
02:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
fzwyg
帖子: 8
注册时间: 2007-06-25 18:18

Re: 不能上外网,大家救命啊

#2

帖子 fzwyg » 2009-07-01 16:06

没人能帮帮我吗?
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 不能上外网,大家救命啊

#3

帖子 smallapple » 2009-07-01 16:14

代码: 全选

nm-tool
看看dns对不对
fzwyg
帖子: 8
注册时间: 2007-06-25 18:18

Re: 不能上外网,大家救命啊

#4

帖子 fzwyg » 2009-07-01 16:17

这个命令不能用啊,提示没有安装,现在没上网不能安装啊!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 不能上外网,大家救命啊

#5

帖子 smallapple » 2009-07-01 16:19

代码: 全选

cat /etc/resolv.conf
fzwyg
帖子: 8
注册时间: 2007-06-25 18:18

Re: 不能上外网,大家救命啊

#6

帖子 fzwyg » 2009-07-01 16:19

不过/ETC/RESOLV.CONF中DNS是对的:nameserver 218.85.157.99
fzwyg
帖子: 8
注册时间: 2007-06-25 18:18

Re: 不能上外网,大家救命啊

#7

帖子 fzwyg » 2009-07-01 16:21

fzwyg@fzwyg-ubuntu:~$ cat /etc/resolv.conf
nameserver 218.85.157.99
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 不能上外网,大家救命啊

#8

帖子 smallapple » 2009-07-01 16:26

什么内网的?要不要内网服务器认证才能上外网?
fzwyg
帖子: 8
注册时间: 2007-06-25 18:18

Re: 不能上外网,大家救命啊

#9

帖子 fzwyg » 2009-07-01 16:35

不要,原来这台机装XP。很正常。一直以为是网卡没驱动,但好像也不是!急死啦
装红旗6也是这个问题,见鬼啦!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 不能上外网,大家救命啊

#10

帖子 smallapple » 2009-07-01 16:50

代码: 全选

cat /etc/network/interfaces
ip是手动还是DHCP?
fzwyg
帖子: 8
注册时间: 2007-06-25 18:18

Re: 不能上外网,大家救命啊

#11

帖子 fzwyg » 2009-07-01 16:51

静态,公司不允许DHCP
fzwyg@fzwyg-ubuntu:~$ cat /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.10.0.13
netmask 255.255.255.0
gateway 10.10.0.235
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 不能上外网,大家救命啊

#12

帖子 smallapple » 2009-07-01 18:28

你那个interfaces改过了,改为:

代码: 全选

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.10.0.13
netmask 255.255.255.0
gateway 10.10.0.235
然后再执行下

代码: 全选

sudo /etc/init.d/networking restart
或重新登录。
fzwyg
帖子: 8
注册时间: 2007-06-25 18:18

Re: 不能上外网,大家救命啊

#13

帖子 fzwyg » 2009-07-02 8:08

问题解决了,要把网关先指定到232防火墙,再改回235交换机就没问题了,不知道什么原因。谢谢啦!
jiapin
帖子: 5
注册时间: 2009-07-04 16:50

Re: 不能上外网,大家救命啊

#14

帖子 jiapin » 2009-07-05 12:41

fzwyg 写了:问题解决了,要把网关先指定到232防火墙,再改回235交换机就没问题了,不知道什么原因。谢谢啦!

大哥能不能再讲的详细一点, 我和你的情况一样?
回复