zhaojt 发表于 2010-3-5 00:07:03

ml and opensuse's 的网络设置(dsl modem influence)

从ml1.2,2.0,2.1,2.5b,都用过,上网设置很方便,一次就能设置成功。担是在opensuse11.2上,yast2->dsl里面再怎么折腾,google无数,就是上不了网,真是郁闷。希望能指点一二啊,不知道问题在哪里!

[ 本帖最后由 zhaojt 于 2010-3-19 00:26 编辑 ]

zy_sunshine 发表于 2010-3-5 00:35:02

给出你的网络拓扑

ifconfig
route
cat /etc/resolv.conf

zhaojt 发表于 2010-3-6 22:49:39

1、在dsl设置过程中,除了dsl帐号和密码设定外,其它全部一路next下去的话,得到的ifconfig -a如下:
br0       Link encap:EthernetHWaddr 00:1D:7D:AE:D8:04
          inet6 addr: fe80::21d:7dff:feae:d804/64 Scope:Link
          UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
          RX packets:18 errors:0 dropped:0 overruns:0 frame:0
          TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1956 (1.9 Kb)TX bytes:16380 (15.9 Kb)

eth0      Link encap:EthernetHWaddr 00:1D:7D:AE:D8:04
          inet6 addr: fe80::21d:7dff:feae:d804/64 Scope:Link
          UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
          RX packets:23 errors:0 dropped:0 overruns:0 frame:0
          TX packets:118 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2508 (2.4 Kb)TX bytes:36180 (35.3 Kb)
          Interrupt:27 Base address:0xe000

lo      Link encap:Local Loopback
          inet addr:127.0.0.1Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNINGMTU:16436Metric:1
          RX packets:80 errors:0 dropped:0 overruns:0 frame:0
          TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4752 (4.6 Kb)TX bytes:4752 (4.6 Kb)
2,如果在dsl设置过程中,除了dsl帐号密码、静态设置网卡IP为192.168.1.211,gateway设为192.168.1.1外,其它一路next的话,ifconfig -a得到的是:
br0       Link encap:EthernetHWaddr 00:1D:7D:AE:D8:04
          inet6 addr: fe80::21d:7dff:feae:d804/64 Scope:Link
          UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
          RX packets:40 errors:0 dropped:0 overruns:0 frame:0
          TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2027 (1.9 Kb)TX bytes:9702 (9.4 Kb)

eth0      Link encap:EthernetHWaddr 00:1D:7D:AE:D8:04
          inet addr:192.168.1.211Bcast:192.168.1.255Mask:255.255.255.0
          inet6 addr: fe80::21d:7dff:feae:d804/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICASTMTU:1500Metric:1
          RX packets:245 errors:0 dropped:0 overruns:0 frame:0
          TX packets:521 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:24151 (23.5 Kb)TX bytes:154079 (150.4 Kb)
          Interrupt:27 Base address:0xe000

lo      Link encap:Local Loopback
          inet addr:127.0.0.1Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNINGMTU:16436Metric:1
          RX packets:138 errors:0 dropped:0 overruns:0 frame:0
          TX packets:138 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:9528 (9.3 Kb)TX bytes:9528 (9.3 Kb)
在此情况下,ping 192.168.1.211可以ping得通,但是192.168.1.1却ping不通。
3、route是空的,没有路由表,在ping192.168.1.211的时候,跟踪如下:
linux-fl2i:/home/oatt # route
Kernel IP routing table
Destination   Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0   *               255.255.255.0   U   0      0      0 eth0
link-local      *               255.255.0.0   U   0      0      0 eth0
loopback      *               255.0.0.0       U   0      0      0 lo
default         192.168.1.1   0.0.0.0         UG    0      0      0 eth0
4、DNS,
resolve.conf文件中是202.103.24.68202.103.44.150

情况就是上面这些了,XP下是没问题的,XP下将IP改为静态的192.168.1.xxx,时,流览器中上192.168.1.1就是DSL的管理网页了。openSUSE11.2下却上不了,也ping不通。

zy_sunshine 发表于 2010-3-6 22:55:28

删除你的default路由,重新添加
相关命令
route del default gw 192.168.1.1 dev eth0
#netmask参数可选
route add default gw 192.168.1.1 netmask 255.255.255.0 dev eth0

这样设定你的默认路由的掩码,应该可以ping通192.168.1.1
如果有dhcp服务的话直接用dhclient试试

zy_sunshine 发表于 2010-3-6 23:03:47

前提是在第二种情况下若不是就修改一下ip
ifconfig eth0 192.168.1.211 netmask 255.255.255.0

zhaojt 发表于 2010-3-7 00:08:54

还是不行啊

zy_sunshine 发表于 2010-3-7 00:16:03

resolve.conf文件中是202.103.24.68202.103.44.150
应该是:
nameserver 202.103.24.68
nameserver 202.103.44.150

按照那个设置应该是可以ping通了吧?再ping不通就是人品了
...

zhaojt 发表于 2010-3-7 00:57:49

是的,DNS内容跟你说的一样,但就是ping不通。
郁闷、

zhaojt 发表于 2010-3-7 01:40:37

用pppoe-setup, pppoe-start也老是time out.

zhaojt 发表于 2010-3-19 00:21:37

ok , by searching baidu, I find that the problem maybe focus on my ZXDSL 531B( white version) modem. I find a way to resolve this problem. Following the "http://zhidao.baidu.com/question/115697377.html?si=10", I set my username and password in the 531B and change the modem to be a router.Now , I connect to internet after power ondirectly without pppoe steps.

So my computer has nothing to do with the dsl. Just set mynotebook's wireless netcard ip and desktop computer's wired netcard ip to be something like 192.168.1.33, the routeway to be 192.168.1.1, the DNS to be 202.103.24.68.(hubei telecom's DNS). Now my computers locate in a really LAN, they visit web through 531B router. A strange thing is that the desktop computer's netcard name must be eth0, other names won't work.

Really, this method does work. I now post this message on opensuse at the first time.
It seems that scim doesn't exist on suse, I had to write some E.

Maybe it is helpful to you!

[ 本帖最后由 zhaojt 于 2010-3-19 00:25 编辑 ]

zhaojt 发表于 2010-3-19 00:32:43

想了一下,可能问题是出在eth0的名字上,如果前些天将网卡名字改为eth0的话可能就能ping通192.168.1.1了。因为刚才就是把名字由suse随机取的名字改回eth0后就突然能ping通192.168.1.1了。
但是现在即然能上网了,就不想再折腾了,前段时间已整得够呛了。

[ 本帖最后由 zhaojt 于 2010-3-19 00:34 编辑 ]
页: [1]
查看完整版本: ml and opensuse's 的网络设置(dsl modem influence)