LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1656|回复: 12

網路問題

[复制链接]
发表于 2007-6-24 21:08:36 | 显示全部楼层 |阅读模式
  又有一個問題要麻煩各位了。目前還沒有搜索到相關答案。
  我已經在我的計算機上同時安裝了 Windows XP 和 Ubuntu 7.04 兩個系統。儅我用 Windows XP 的時候,如果用路由器上網就能直接傷亡;用 PPPoE 上網的話,直接設置用戶名、密碼即可上網。
  但是我用 Ubuntu 7.04 的時候就不行。我用路由器上網,插上網綫以後沒有任何信息,無論是 Ping 192.168.0.1 還是用 Firefox 訪問 http://www.baidu.com 都沒有回應。這時打開“硬體信息”可以找到我的網卡已經正確識別出型號了,且在“網路工具”中顯示 eth0:avahi 中顯示了接口地址相關信息。但一旦單擊“配置”,就顯示“接口不存在”的消息。
  我用 Sudo PPPoEConf 來設置 PPPoE 上網,開始列出了我的全部網卡接口名,但之後連接每個接口的時候,全部顯示超時。最後顯示“Not Connected”信息(内容就是“I scanned n interface.”那個。)。
  我身邊使用 Ubuntu 的同學也不得結果。還請各位看看情況。

機器配置:Asus A8F series
[CPU] Intel Core Duo T2050
[内存] Kingston 512M * 2
[南北橋] Mobile Intel 945GM                 Intel 82801G
[網卡] Realtek RTL8111b/8168b 集成千兆網卡
发表于 2007-6-24 22:22:41 | 显示全部楼层
通过路由器上网的话在system-administration-networking里设置ip,网关,子网掩码,dns就OK
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-25 18:11:46 | 显示全部楼层
那麼用 PPPoE 上網怎麽辦?
回复 支持 反对

使用道具 举报

发表于 2007-6-26 00:30:37 | 显示全部楼层
你可以用路由器拨号吗?应该可以的。(这样比较方便)
如果可以的话。
1.
配置你的路由器,让路由器拨号,并打开dhcp功能。
2.
编辑你的/etc/network/interfaces文件,内容如下
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
3.
sudo /etc/init.d/networking stop
4.
sudo /etc/init.d/networking start

Enjoy it!
回复 支持 反对

使用道具 举报

发表于 2007-6-26 00:37:23 | 显示全部楼层
Post by 至高之光

儅我用 Windows XP 的時候,如果用路由器上網就能直接傷亡;
你的WindowsXP是打开了dhcp的,所以能直接上网。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-29 19:18:28 | 显示全部楼层
Post by asias.hj
你的WindowsXP是打开了dhcp的,所以能直接上网。

我的 Ubuntu 也是打開了 DHCP 的呀!

另外,下面這些是 ifconfig 的信息,希望能對解決問題有幫助。
eth0 Link encap:Ethernet HWaddr 00:18:F3:FC:9C:45
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:17 Base address:0xa000

eth1 Link encap:Ethernet HWaddr 00:13:02:CF:27:83
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:16 Base address:0x8000 Memory:fdeff000-fdefffff

eth0:avah Link encap:Ethernet HWaddr 00:18:F3:FC:9C:45
inet addr:169.254.8.188 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Interrupt:17 Base address:0xa000

eth1:avah Link encap:Ethernet HWaddr 00:13:02:CF:27:83
inet addr:169.254.5.176 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Interrupt:16 Base address:0x8000 Memory:fdeff000-fdefffff

lo Link encapocal 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:770 errors:0 dropped:0 overruns:0 frame:0
TX packets:770 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:61604 (60.1 KiB) TX bytes:61604 (60.1 KiB)
回复 支持 反对

使用道具 举报

发表于 2007-6-30 00:06:19 | 显示全部楼层
把你的/etc/network/interfaces文件贴出来看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-10 17:55:44 | 显示全部楼层
此外,我平时不使用路由器拨号。
以下是我的/etc/network/interfaces文件:
auto lo
iface lo inet loopback

auto eth1
iface eth1 inet dhcp

auto eth2
iface eth2 inet dhcp

auto ath0
iface ath0 inet dhcp

auto wlan0
iface wlan0 inet dhcp


iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider

iface eth0 inet dhcp



auto eth0
回复 支持 反对

使用道具 举报

发表于 2007-7-11 08:35:38 | 显示全部楼层
dhcp方式一般使用client,
如果启动了dhcp server可能有问题,那么client可能会连接你自己机器上dhcp server。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-11 21:05:21 | 显示全部楼层
I am so happy to tell all of the above friends that today I can link my computer to the Internet accidentally. My computer is now working on the live CD. I think although this is accidental, it can tell us that the driver is not the problem. The problem might be configures. Hope for more information about the problem.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表