回来配置了好几天.都是上不网.
首先是配置了,找不到启用的按钮,因为在网上找时,一直都是有人说这个东西非常的不好.根本都很难配置成功.
都是说要用pppoeconf.
所以有点郁闷,今天才发现原来是左键点击时它会有配置的菜单启/禁用的.郁闷了,一直只用右键,有些xp止的习惯思维看来不行.
但是在公司时,我只开启dhcp自动获取ip和dns,且输入adsl的密码/用户名就可以.启用这个pppoe配置就可以使用了.
但是回到住的地方时却发现,按在公司的配置时,无论启禁用多少次都不能上网,因为dns不行.能ping 8.8.8.8也就是ip能ping通,域名却不行.
再看看我在xp下面连接这个adsl时的dns,发现linux下面的根本都不对.总是会自动使用跟公司的那个dns一样.
心里想这应该是dns的问题.看了一下配置界面,把dhcp改成半自动的.只要ip,自设置dns.哈竟然能上网了.
太郁闷了.搞不懂为什么会这样.
虽然知道这个adsl是私人在路由中再设置一个pppoe登录的.但是应该跟直接连接到运营商那一样才是,可是却不是,郁闷了.
不明白为什么dns总是会自动获取成那个,
在公司中也是电信,在这也是电信.
可是就是不一样.
这是住处的ip
ip138.com IP查询(搜索IP地址的地理位置)您查询的IP:113.64.227.148
本站主数据:广东省广州市 电信参考数据一:广东省 电信
住处xp下面连接信息
住处xp下的本地
在linux中,住处的信息和配置,必须要手动dns才行
在上面这个配置下的信息
root@qidizi:/home/qidizi# ifconfig
eth0 Link encap:Ethernet HWaddr 64:31:50:75:5f:ed
inet6 addr: fe80::6631:50ff:fe75:5fed/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2979 errors:0 dropped:0 overruns:0 frame:0
TX packets:2548 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1137169 (1.0 MiB) TX bytes:441703 (431.3 KiB)
Interrupt:29 Base address:0xa000
lo Link encap:Local 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:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3164 (3.0 KiB) TX bytes:3164 (3.0 KiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.8.0.165 P-t-P:10.8.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:58 errors:0 dropped:0 overruns:0 frame:0
TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:11104 (10.8 KiB) TX bytes:3091 (3.0 KiB)
root@qidizi:/home/qidizi#
改成自动dhcp时
dns变了.
然后应该是连接上了,但是dns不对.
不能ping域名.
能ping ip
-------
root@qidizi:/home/qidizi# ^C
root@qidizi:/home/qidizi# ping www.google.com
PING www.l.google.com (74.125.71.103) 56(84) bytes of data.
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=1 ttl=51 time=138 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=2 ttl=51 time=24.2 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=3 ttl=51 time=90.4 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=4 ttl=51 time=48.1 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=5 ttl=51 time=46.1 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=6 ttl=51 time=35.1 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=7 ttl=51 time=13.3 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=8 ttl=51 time=13.5 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=9 ttl=51 time=12.9 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=10 ttl=51 time=15.3 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=11 ttl=51 time=13.5 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=12 ttl=51 time=13.6 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=13 ttl=51 time=13.4 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=14 ttl=51 time=22.4 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=15 ttl=51 time=21.1 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=16 ttl=51 time=23.8 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=17 ttl=51 time=74.4 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=18 ttl=51 time=81.9 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=19 ttl=51 time=118 ms
64 bytes from hx-in-f103.1e100.net (74.125.71.103): icmp_req=20 ttl=51 time=97.1 ms
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
64 bytes from 74.125.71.103: icmp_req=25 ttl=51 time=40.8 ms
64 bytes from 74.125.71.103: icmp_req=26 ttl=51 time=13.8 ms
64 bytes from 74.125.71.103: icmp_req=27 ttl=51 time=13.1 ms
64 bytes from 74.125.71.103: icmp_req=28 ttl=51 time=59.5 ms
64 bytes from 74.125.71.103: icmp_req=29 ttl=51 time=141 ms
64 bytes from 74.125.71.103: icmp_req=30 ttl=51 time=14.1 ms
64 bytes from 74.125.71.103: icmp_req=31 ttl=51 time=26.7 ms
64 bytes from 74.125.71.103: icmp_req=32 ttl=51 time=172 ms
64 bytes from 74.125.71.103: icmp_req=33 ttl=51 time=13.3 ms
64 bytes from 74.125.71.103: icmp_req=34 ttl=51 time=13.0 ms
64 bytes from 74.125.71.103: icmp_req=35 ttl=51 time=160 ms
64 bytes from 74.125.71.103: icmp_req=36 ttl=51 time=22.9 ms
64 bytes from 74.125.71.103: icmp_req=37 ttl=51 time=58.4 ms
^Z
[2]+ Stopped ping www.google.com
root@qidizi:/home/qidizi# ping www.google.com
ping: unknown host www.google.com
root@qidizi:/home/qidizi# ping 74.125.71.103
PING 74.125.71.103 (74.125.71.103) 56(84) bytes of data.
64 bytes from 74.125.71.103: icmp_req=1 ttl=51 time=26.9 ms
64 bytes from 74.125.71.103: icmp_req=2 ttl=51 time=13.3 ms
64 bytes from 74.125.71.103: icmp_req=3 ttl=51 time=24.5 ms
^Z
[3]+ Stopped ping 74.125.71.103
root@qidizi:/home/qidizi# ifconfig
eth0 Link encap:Ethernet HWaddr 64:31:50:75:5f:ed
inet6 addr: fe80::6631:50ff:fe75:5fed/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3374 errors:0 dropped:0 overruns:0 frame:0
TX packets:2942 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1207700 (1.1 MiB) TX bytes:501791 (490.0 KiB)
Interrupt:29 Base address:0xa000
lo Link encap:Local 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:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3164 (3.0 KiB) TX bytes:3164 (3.0 KiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.8.0.166 P-t-P:10.8.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:194 errors:0 dropped:0 overruns:0 frame:0
TX packets:259 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:29511 (28.8 KiB) TX bytes:33144 (32.3 KiB)
root@qidizi:/home/qidizi#
----------
但总算是能用.