英特网的问题:Wifi, Router, Ethernet

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
Sultan Rahi
帖子: 3
注册时间: 2009-04-09 20:07

英特网的问题:Wifi, Router, Ethernet

#1

帖子 Sultan Rahi » 2009-04-09 20:30

Hello*,

I'm living in China and have a Asus F8S (laptop) with Xubuntu Jaunty (update of Ubuntu ]Feisty ). I don't have Windows.
The wifi is working but not internet (except one hour a day from a neighbour,s router I guess).

I want to be able to use internet:
1- With a modem.
2- or/and with the wifi.
3. or/and with my other computer, which has internet, via ethernet link or router (Mercury MW54R).

Nothing work. It's in Chinese and made for Windows.

Problem ①: everything works for pppoeconf, but plog gives:

代码: 全选

michael@michael-laptop:~$ plog
Apr  8 14:03:04 michael-laptop pppd[8556]: Remote message: [Code 9]: MAC address out of setting range
Apr  8 14:03:04 michael-laptop pppd[8556]: PAP authentication failed
Apr  8 14:03:10 michael-laptop pppd[8556]: Connection terminated.
Apr  8 14:03:10 michael-laptop pppd[8556]: Modem hangup
Apr  8 14:03:14 michael-laptop pppd[8168]: PPP session is 3787
Apr  8 14:03:14 michael-laptop pppd[8168]: Connected to 00:30:88:01:a2:12 via interface eth0
Apr  8 14:03:14 michael-laptop pppd[8168]: Using interface ppp0
Apr  8 14:03:14 michael-laptop pppd[8168]: Connect: ppp0 <--> eth0
Apr  8 14:03:14 michael-laptop pppd[8168]: Remote message: [Code 9]: MAC address out of setting range
Apr  8 14:03:14 michael-laptop pppd[8168]: PAP authentication failed
ifconfig gives:

代码: 全选

michael@michael-laptop:~$ ifconfig ppp0
ppp0      Link encap:Protocole Point-à-Point  
          POINTOPOINT NOARP MULTICAST  MTU:1492  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:3 
          Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B)
And:

代码: 全选

michael@michael-laptop:~$ lspci | grep -i net
03:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
The first eth (eth0) of the destop computer doesn't work too (I use the second one for internet) and gives:

代码: 全选

~$ plog
Apr  8 14:08:07 Zeus pppd[20473]: Using interface ppp0
Apr  8 14:08:07 Zeus pppd[20473]: Connect: ppp0 <--> eth0
Apr  8 14:08:07 Zeus pppd[20473]: Remote message: [Code 9]: MAC address out of setting range
Apr  8 14:08:07 Zeus pppd[20473]: PAP authentication failed
Apr  8 14:08:07 Zeus pppd[20646]: Connection terminated.
Apr  8 14:08:07 Zeus pppd[20646]: Modem hangup
Apr  8 14:08:13 Zeus pppd[20473]: Connection terminated.
Apr  8 14:08:13 Zeus pppd[20473]: Modem hangup
Apr  8 14:08:14 Zeus pppd[6395]: Timeout waiting for PADO packets
Apr  8 14:08:14 Zeus pppd[6395]: Unable to complete PPPoE Discovery

代码: 全选

michael@Zeus:~$ lspci | grep -i net
00:0a.0 Ethernet controller: nVidia Corporation MCP67 Ethernet (rev a2)
01:05.0 Ethernet controller: ADMtek NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
Problem ②:
Wifi card: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)

Problem ③:
No idea what to do.

Help!!!

*you can answer in Chinese. My wife will translate for me. Sorry, for myself, I can't.
saiddy
帖子: 87
注册时间: 2006-04-15 23:44

Re: 英特网的问题:Wifi, Router, Ethernet

#2

帖子 saiddy » 2009-04-09 20:54

mac地址错误 你自己设置过固定的mac ?
aotianlong
帖子: 35
注册时间: 2006-06-17 19:22

Re: 英特网的问题:Wifi, Router, Ethernet

#3

帖子 aotianlong » 2009-04-09 21:00

老外也来这里问问题了。

或许得黏贴一下 pppoe的配置文件
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 英特网的问题:Wifi, Router, Ethernet

#4

帖子 wangdu2002 » 2009-04-09 21:10

大概看了下,这位老外哥们想上网,可是上不了。 :em20
坛子里的哪位老大出来,发扬下白求恩精神,帮助下这位在中国生活的洋大人。 :em06
其实我觉得,这位洋哥们应该上Ubuntu国际论坛,那里可是有百万人马的,而且水平也比我们的坛子要高些吧,至少语言障碍就没有了。 :em09
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
saiddy
帖子: 87
注册时间: 2006-04-15 23:44

Re: 英特网的问题:Wifi, Router, Ethernet

#5

帖子 saiddy » 2009-04-09 21:16

关于第一个问题

1 你可能需要联系一下你的internet接入提供商
似乎你的mac地址不在允许范围内(如果你确定你没有自己更改过mac地址,或者换了一个网卡)
2 或者你自己的路由器设置了MAC白名单或者黑名单
3 是否设置了网关,路由器用的路由模式还是桥接模式?拨号连接后,查看命令“ route -n ”的输出并贴出来看看
Sultan Rahi
帖子: 3
注册时间: 2009-04-09 20:07

Re: 英特网的问题:Wifi, Router, Ethernet

#6

帖子 Sultan Rahi » 2009-04-09 22:56

Hum...

My wife is a bit lost :em06. Me too.

So: I didn't change the Mac Address.

On the desktop computer:

代码: 全选

~$ sudo pppoe
pppoe: Interface eth0 has MTU of 576 -- should be 1500.  You may have serious connection problems.
pppoe: Timeout waiting for PADO packets

代码: 全选

michael@Zeus:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
59.55.64.1      0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
For the laptop, nothing for route -n
When connected to the router:

代码: 全选

[code]michael@Zeus:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0      0.0.0.0         255.255.255.255 U    2      0        0 wlan0
169.254.0.0      0.0.0.0         255.255.255.255 U    1000      0        0 wlan0
0.0.0.0         192.168.1.1         0.0.0.0         UG     0      0        0 wlan0
I sent the same message to the English forum and to the French one (in French). No answers.
Thanks for your replies.
saiddy
帖子: 87
注册时间: 2006-04-15 23:44

Re: 英特网的问题:Wifi, Router, Ethernet

#7

帖子 saiddy » 2009-04-10 0:56

你的 route -n 的输出:

代码: 全选

michael@Zeus:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0      0.0.0.0         255.255.255.255 U    2      0        0 wlan0
169.254.0.0      0.0.0.0         255.255.255.255 U    1000      0        0 wlan0
0.0.0.0         192.168.1.1         0.0.0.0         UG     0      0        0 wlan0
在网关(Gateway)栏出现了 ADSL 调制解调器的默认 IP 地址 192.168.1.1,也就是多出一行来,那是绝对不允许的,它会和远程服务器上的真实网关冲突。而且你的子网掩码(Genmask)都有问题。

(1)关闭已存在的拨号连接(如果你有拨号的话)

(2)重新配置你的网络,只需要填写下面两项,不要填写网关! 例如:
IP 地址: 192.168.1.6
子网掩码: 255.255.255.0

(3)保存设置,然后重启网络服务,或者重新启动你的电脑.

现在重新拨号试试。
Sultan Rahi
帖子: 3
注册时间: 2009-04-09 20:07

Re: 英特网的问题:Wifi, Router, Ethernet

#8

帖子 Sultan Rahi » 2009-04-10 12:25

I will give it a try tomorrow. Thanks. I will tell you if it works.

:em11 The modem (①) is working. I change the MAC like that:

sudo ifconfig eth0 hw ether 00:e0:e2:00:c5:21

I suppose I will have to do it again after a reboot, but it's ok for me. I will ask the school to add this address if it's possible.

Still don't know how to use the router though.

So:
① Yes.
② Maybe.
③ No.
poet
帖子: 2841
注册时间: 2006-09-11 22:47

Re: 英特网的问题:Wifi, Router, Ethernet

#9

帖子 poet » 2009-04-10 13:01

如果希望同时上网的话,我的建议是“不要在本机配置pppoeconf”,使用你的Modem路由器进行拨号,此后,你的Wifi和台式机都是直接接入就可上网,不需做任何额外设置。

通常来说,Modem设置可以通过直接登录到路由器的IP地址的http网页来实现。
回复