ppp手工拨号 AND 脚本拨号问题

lijk2002
ppp手工拨号 AND 脚本拨号问题

我在fc6上通过minicom,pppd等应用程序,手工拨号成功.  用脚本ppp-on拨号好象也是成功的.为什么ping [url]www.sohu.com[/url] 不能ping 通.诚恳望各位朋友指点:


手动拨号后信息:

[root@localhost ~]#
[root@localhost ~]#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1E:EC:0E:BC:C9  
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:ecff:fe0e:bcc9/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:10023 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1478 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3146291 (3.0 MiB)  TX bytes:169798 (165.8 KiB)
          Interrupt:19

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:1471 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1471 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3542817 (3.3 MiB)  TX bytes:3542817 (3.3 MiB)

ppp0      Link encap: Point-to-Point Protocol  
          inet addr:61.169.170.72  P-t-P:61.152.66.86  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:56 (56.0 b)  TX bytes:58 (58.0 b)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:10533 (10.2 KiB)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:C0:00:01  
          inet addr:172.16.152.1  Bcast:172.16.152.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:C0:00:08  
          inet addr:192.168.178.1  Bcast:192.168.178.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[root@localhost ~]#route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
61.152.66.86    *               255.255.255.255 UH    0      0        0 ppp0
192.168.178.0   *               255.255.255.0   U     0      0        0 vmnet8
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
172.16.152.0    *               255.255.255.0   U     0      0        0 vmnet1
192.168.122.0   *               255.255.255.0   U     0      0        0 virbr0
default         *               0.0.0.0         U     0      0        0 ppp0

[root@localhost ~]#ping [url]www.sohu.com[/url]
PING pgctcsht01.a.sohu.com (222.73.123.3) 56(84) bytes of data.
64 bytes from 222.73.123.3: icmp_seq=1 ttl=55 time=276 ms
64 bytes from 222.73.123.3: icmp_seq=2 ttl=55 time=254 ms
64 bytes from 222.73.123.3: icmp_seq=3 ttl=55 time=250 ms

--- pgctcsht01.a.sohu.com ping statistics ---
4 packets transmitted, 3 received, 25% packet loss, time 2999ms
rtt min/avg/max/mdev = 250.132/260.319/276.541/11.602 ms
[root@localhost ~]#
[root@localhost ~]#killall pppd


用ppp-on自动拨号:
[root@localhost ~]#
[root@localhost ~]#ppp-on
[root@localhost ~]#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1E:EC:0E:BC:C9  
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:ecff:fe0e:bcc9/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:10023 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1478 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3146291 (3.0 MiB)  TX bytes:169798 (165.8 KiB)
          Interrupt:19

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:1471 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1471 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3542817 (3.3 MiB)  TX bytes:3542817 (3.3 MiB)

ppp0      Link encap: Point-to-Point Protocol  
          inet addr:61.169.144.199  P-t-P:61.152.64.86  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:2 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:96 (96.0 b)  TX bytes:98 (98.0 b)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:10533 (10.2 KiB)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:C0:00:01  
          inet addr:172.16.152.1  Bcast:172.16.152.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:C0:00:08  
          inet addr:192.168.178.1  Bcast:192.168.178.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[root@localhost ~]#route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
61.152.64.86    *               255.255.255.255 UH    0      0        0 ppp0
192.168.178.0   *               255.255.255.0   U     0      0        0 vmnet8
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
172.16.152.0    *               255.255.255.0   U     0      0        0 vmnet1
192.168.122.0   *               255.255.255.0   U     0      0        0 virbr0
default         *               0.0.0.0         U     0      0        0 ppp0


[root@localhost ~]#ping [url]www.sohu.com[/url]
PING pgcnczjt07.a.sohu.com (61.135.179.160) 56(84) bytes of data.

--- pgcnczjt07.a.sohu.com ping statistics ---
14 packets transmitted, 0 received, 100% packet loss, time 12999ms

[root@localhost ~]#

[[i] 本帖最后由 lijk2002 于 2008-6-25 11:05 编辑 [/i]]