[未解决问题]2种方式都上不了网(应当不是设备连接问题)

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

[未解决问题]2种方式都上不了网(应当不是设备连接问题)

#1

帖子 bleastrind » 2007-08-26 15:05

硬件连接:家庭局域网,电信的HUAWEI SmartAX MT800(拨号需在计算机上)加TP-link TL-SF1998D 的Ethernet Switch,MT800的RJ-45插在Switch的Uplink插口上,两台电脑都一个网卡,笔记本的是VIA Rhine II Fast Ethernet Adapter,台式是 Realtek RTL8139 Family PCI Fast Ethernet Adapter NIC,各插一个其他的。
以前两电脑都是xp时状况:MT800只设置VCI的时候用一下,以后就不管了,台式做主机,静态ip:192.168.0.1 一个ADSL连接。笔记本静态ip:192.168.0.2,网关192.168.0.1 DNS 192.168.0.1 也有一个相同的ADSL连接(都建立在各自网卡之上)。双方都可分别拨号,主机上网,分机不必拨号。
______________________________________________________________________________________________________________________________

问题:
在笔记本上装ubuntu7.04:同样设置ip192.168.0.2,网关设为192.168.0.1(也试过192.168.1段的),右上角有两个电脑叠起来的图标,互相ping不通,上不了网。
$route -n结果如下
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

DHCP的话
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 1000 0 0 eth0

若单独拨号,$sudo pppoeconf后发生错误提示
Sorry,I scannad 2(网卡设置为DHCP的时候就2,静态时就1) interfaces,but the Access
Concentrator of your provider did not respond,Please
check your network and modem cables.Another reason
for the scan failure may also be another running pppoe
process which controls the modem.

搜网上,报此错的人很多,没见具体解决方法,见有人安装rp-pppoe后能用了,就去下载,结果安不上
root@ubuntu:/boot/rp-pppoe-3.8# ./go
Running ./configure
checking for gcc... gcc
checking for C compiler default output file name... configure:error:C compiler connot create executables
See........
_______________________________________________________________________________________________________________________

总之,终极目标是要达到原2个xp系统的效果,即既能通过局域网共享上网,又能自己单独拨号,但现在一条路都不通,暂时只求能上网,谢谢
上次由 bleastrind 在 2007-08-31 9:20,总共编辑 3 次。
头像
relaaxx
帖子: 121
注册时间: 2007-05-20 14:07

#2

帖子 relaaxx » 2007-08-26 15:09

在控制台下输入route -n 贴图上来,什么提示?
bleastrind
帖子: 32
注册时间: 2007-08-26 7:23

第一种状况

#3

帖子 bleastrind » 2007-08-26 16:40

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
bleastrind
帖子: 32
注册时间: 2007-08-26 7:23

#4

帖子 bleastrind » 2007-08-26 17:03

还有我在GHOME下设置网络一不小心会死机的
头像
jude511
帖子: 22
注册时间: 2007-08-25 23:56

[问题]

#5

帖子 jude511 » 2007-08-27 0:09

jude@jude-desktop:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
11.2.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
10.62.131.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
//////////////////////////////////////////

也帮我看看,我现在只能连adsl或连内网,不能连vpn.可不可以同时上内外网?
bleastrind
帖子: 32
注册时间: 2007-08-26 7:23

最新发现,不知我的是不是也这样

#6

帖子 bleastrind » 2007-08-27 12:44

回復: 請問我的PPPOECONF 哪裡出了問題? 都沒辦法設定 #10
會員三級


註冊日期:
1/15 14:06:58
所屬群組:
已註冊使用者
lym520 寫到:
我也有這個問題
不管是在 LiveCD,或是裝到硬碟都一樣
有時正常有時不正常,通常關機一段時間再試就會成功

所以懷疑是內建網路晶片和 ubuntu 相容問題
技嘉主機板,網路晶片是 Realtek RTL8111B

這張卡確定是有問題的, 到了7.10也是一樣

Solution : 下載官方kernel 2.6+ 用的 driver

ftp://152.104.238.19/cn/nic/r8168-8.002.00.tar.bz2

自行重編kernel.....

聽了就覺得害怕吧.... 可惜沒別的辦法囉...
bleastrind
帖子: 32
注册时间: 2007-08-26 7:23

#7

帖子 bleastrind » 2007-08-27 20:10

只求能通过网关上网了。。哪位可以告诉我为什么静态ip设好了却不能ping通呢?
leeyee
帖子: 723
注册时间: 2006-04-11 9:01

#8

帖子 leeyee » 2007-08-27 20:57

没有接触过交换机,只简单地说说我的看法

1,不要连ubuntu的机子,只把台式机和交换机相连,用以前的方法将这台XP拨号连到网上.看看这步可行不?

2,第1步成功后,查看XP机子的TCP/IP信息,包括IP地址,掩码等等;

3,把ubuntu连上,用ifconfig命令设置IP地址,掩码,要求和XP的在同一网段.网关和DNS暂且不设.执行ping命令,看看能否ping通XP;

4,第三步执行成功后将ubuntu的网关和DNS都设置为XP机的IP地址;

5,第4步不成功的话,再试下将ubuntu的网关设成XP机的IP地址,但DNS留空或者和XP机DNS一样.


顺序进行上面几步,看中间会出现哪些问题.
I would love to change the world, but they won't give me the source code.
http://hi.baidu.com/wienerlee
bleastrind
帖子: 32
注册时间: 2007-08-26 7:23

#9

帖子 bleastrind » 2007-08-27 22:31

1.上网过程中拔掉都可以
2.Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.


C:\Documents and Settings\Administrator>ipconfig

Windows IP Configuration


Ethernet adapter 本地连接:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

PPP adapter ADSL:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 222.58.197.153
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 222.58.197.153


3.用改文件和图形界面设都可以吧
ping不通了
4.5下面就统统不行了
头像
abyssblue
帖子: 49
注册时间: 2006-10-02 21:05

#10

帖子 abyssblue » 2007-08-27 22:43

好像在在xp下是有个代理协议的,按你那里的情况就是那台机先连网就先拔号,成为一个网关,为局域网内其它的电脑提供代理上网。这些好像都是后台自动完成的(也可以安装相应的软件达到这个功能 ),在linux下没有好样的功能了。如果要达到xp下的上网效果,就是linux下安装个代理软件。
注意,以上想法未经验证!!!是供参考,老手们不要笑 :oops:

还有个简单的方法,就用个家用的路由代替交换机,和主机。那样一开机就可以上网了。现在一个家用路由大概也就是一百块钱左右吧。
bleastrind
帖子: 32
注册时间: 2007-08-26 7:23

#11

帖子 bleastrind » 2007-08-27 23:03

不用交换机而用双绞线的情况完全相同,win可以ubuntu不行
leeyee
帖子: 723
注册时间: 2006-04-11 9:01

#12

帖子 leeyee » 2007-08-28 7:41

ubuntu机直接用双绞线连ADSL猫也不行吗?确定网卡已经起来了?

代码: 全选

ifconfig -a
用普通ADSL拨号的办法连连看。

代码: 全选

sudo pppoeconf
I would love to change the world, but they won't give me the source code.
http://hi.baidu.com/wienerlee
bleastrind
帖子: 32
注册时间: 2007-08-26 7:23

#13

帖子 bleastrind » 2007-08-28 10:16

回10楼,没用软件,那是我自己配的,网关只有一个,但2台都可以自己ADSL拨号
12楼:
$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:40:45:27:16:B4
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:123 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:1983 (1.9 KiB)
Interrupt:11 Base address:0xdc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:1500 Metric:1
RX packets:934 errors:0 dropped:0 overruns:0 frame:0
TX packets:934 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:73740 (72.0 KiB) TX bytes:73740 (72.0 KiB)

普通拨号连接一楼说了,出现的那个错MS很经典,网上问的不少,就是没见解决了的。
我现在只要两机能ping通
fyecho
帖子: 31
注册时间: 2007-08-26 12:18

#14

帖子 fyecho » 2007-08-28 23:44

和lz差不多的问题,主要是其中一个电脑装了xp和ubuntu,进入xp时候,网卡亮,进入ubuntu,就不亮,高手帮忙啊
bleastrind
帖子: 32
注册时间: 2007-08-26 7:23

#15

帖子 bleastrind » 2007-08-31 9:19

弱弱的顶一下,还是没任何进展,上不了网的Ubuntu好多东西都干不了
回复