packetix VPN 连接后的ADSL 拨号问题
发表于 : 2013-09-15 21:28
ubuntu12.04,用本地可以正常上网,用packetix VPN和远程电脑创建VPN连接,然后用远程电脑的ADSL拨号。plog显示ADSL已经连上,但是死活不能上网。ping 也不通,不管ping网址还是IP。
以下是我电脑的信息:
1 用packetix 创建虚拟网卡的信息,显示为Connected
VPN Connection Setting Name |my
Status |Connected
VPN Server Hostname |xx.xx.cn:443 (Direct TCP/IP Connection)
Virtual Hub |vpn
Virtual Network Adapter Name|0
The command completed successfully.
2 pon dsl-provider 后用ifconfig查看的信息
eth0 Link encap:Ethernet HWaddr 00:30:18:aa:d4:af
inet addr:192.168.1.111 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::230:18ff:feaa:d4af/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:92643 errors:0 dropped:0 overruns:0 frame:0
TX packets:41699 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:112768802 (112.7 MB) TX bytes:4049122 (4.0 MB)
eth1 Link encap:Ethernet HWaddr 00:e0:4c:50:c3:91
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)
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:65536 Metric:1
RX packets:2681 errors:0 dropped:0 overruns:0 frame:0
TX packets:2681 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:311645 (311.6 KB) TX bytes:311645 (311.6 KB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:1.82.33.108 P-t-P:1.82.32.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:298614 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2717 (2.7 KB) TX bytes:212274667 (212.2 MB)
vpn_0 Link encap:Ethernet HWaddr 00:ac:4e:3a:6a:4b
inet6 addr: fe80::2ac:4eff:fe3a:6a4b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7630 errors:0 dropped:307 overruns:0 frame:0
TX packets:725915 errors:0 dropped:133019 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:1329948 (1.3 MB) TX bytes:530502924 (530.5 MB)
3 ADSL 连接前本地能正常上网 route, route -n 查看到的信息:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.99 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 1000 0 0 eth0
192.168.1.0 * 255.255.255.0 U 1 0 0 eth0
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.99 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
4 ADSL 连接后route,route -n 查看到的信息:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 0.0.0.0 U 0 0 0 ppp0
1.82.52.1 * 255.255.255.255 UH 0 0 0 ppp0
169.254.0.0 * 255.255.0.0 U 1000 0 0 eth0
192.168.1.0 * 255.255.255.0 U 1 0 0 eth0
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
1.82.52.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
5 连接ADSL后ping百度显示:
root@yz1-desktop:/home/yz1# ping http://www.baidu.com
PING http://www.a.shifen.com (115.239.210.27) 56(84) bytes of data.
--- http://www.a.shifen.com ping statistics ---
18 packets transmitted, 0 received, 100% packet loss, time 17136ms
6 resolv.conf 文件的内容:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 61.134.1.4
nameserver 218.30.19.40
nameserver 127.0.0.1
nameserver 218.85.157.99
nameserver 218.85.152.99
7 nsswitch.conf 文件的内容
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: dns
networks: dns
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
8 用nslookup 命令可以解析:
> http://www.baidu.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
http://www.baidu.com canonical name = http://www.a.shifen.com.
Name: http://www.a.shifen.com
Address: 115.239.210.26
Name: http://www.a.shifen.com
Address: 115.239.210.27
> sina.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
Name: sina.com
Address: 12.130.132.30
以下是我电脑的信息:
1 用packetix 创建虚拟网卡的信息,显示为Connected
VPN Connection Setting Name |my
Status |Connected
VPN Server Hostname |xx.xx.cn:443 (Direct TCP/IP Connection)
Virtual Hub |vpn
Virtual Network Adapter Name|0
The command completed successfully.
2 pon dsl-provider 后用ifconfig查看的信息
eth0 Link encap:Ethernet HWaddr 00:30:18:aa:d4:af
inet addr:192.168.1.111 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::230:18ff:feaa:d4af/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:92643 errors:0 dropped:0 overruns:0 frame:0
TX packets:41699 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:112768802 (112.7 MB) TX bytes:4049122 (4.0 MB)
eth1 Link encap:Ethernet HWaddr 00:e0:4c:50:c3:91
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)
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:65536 Metric:1
RX packets:2681 errors:0 dropped:0 overruns:0 frame:0
TX packets:2681 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:311645 (311.6 KB) TX bytes:311645 (311.6 KB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:1.82.33.108 P-t-P:1.82.32.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:298614 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2717 (2.7 KB) TX bytes:212274667 (212.2 MB)
vpn_0 Link encap:Ethernet HWaddr 00:ac:4e:3a:6a:4b
inet6 addr: fe80::2ac:4eff:fe3a:6a4b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7630 errors:0 dropped:307 overruns:0 frame:0
TX packets:725915 errors:0 dropped:133019 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:1329948 (1.3 MB) TX bytes:530502924 (530.5 MB)
3 ADSL 连接前本地能正常上网 route, route -n 查看到的信息:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.99 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 1000 0 0 eth0
192.168.1.0 * 255.255.255.0 U 1 0 0 eth0
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.99 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
4 ADSL 连接后route,route -n 查看到的信息:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 0.0.0.0 U 0 0 0 ppp0
1.82.52.1 * 255.255.255.255 UH 0 0 0 ppp0
169.254.0.0 * 255.255.0.0 U 1000 0 0 eth0
192.168.1.0 * 255.255.255.0 U 1 0 0 eth0
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
1.82.52.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
5 连接ADSL后ping百度显示:
root@yz1-desktop:/home/yz1# ping http://www.baidu.com
PING http://www.a.shifen.com (115.239.210.27) 56(84) bytes of data.
--- http://www.a.shifen.com ping statistics ---
18 packets transmitted, 0 received, 100% packet loss, time 17136ms
6 resolv.conf 文件的内容:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 61.134.1.4
nameserver 218.30.19.40
nameserver 127.0.0.1
nameserver 218.85.157.99
nameserver 218.85.152.99
7 nsswitch.conf 文件的内容
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: dns
networks: dns
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
8 用nslookup 命令可以解析:
> http://www.baidu.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
http://www.baidu.com canonical name = http://www.a.shifen.com.
Name: http://www.a.shifen.com
Address: 115.239.210.26
Name: http://www.a.shifen.com
Address: 115.239.210.27
> sina.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
Name: sina.com
Address: 12.130.132.30