V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
GrantChen
V2EX  ›  问与答

终端路由表设置

  •  
  •   GrantChen · May 15, 2017 · 2015 views
    This topic created in 3280 days ago, the information mentioned may be changed or developed.
    我有一个 4G 网络的终端,这个终端里我目前使用 PPTP 接口( ppp100 )连上了我们的云服务器,目前想在云服务器上使用这个 PPTP 接口访问外网,这样的访问外网的话,就是相当于使用了 4G 网络的 IP 了。

    但目前遇到问题是我在云服务器上,通过 ping -Ippp100 baidu.com 这个无法 Ping 通网络, 终端里面绝对是可以 4G 上网的, ping 任何网址畅通无阻。

    感觉应该是终端路由表没配置对,有网络路由配置高手帮忙吗?

    终端里面的操作系统是 Openwrt
    2 replies    2017-05-15 20:19:27 +08:00
    pheyx
        1
    pheyx  
       May 15, 2017
    请贴一下 Openwrt、云服务器的路由表和 iptables-save 输出
    GrantChen
        2
    GrantChen  
    OP
       May 15, 2017
    ## Openwrt

    pptp-vpn Link encap:Point-to-Point Protocol
    inet addr:172.16.2.2 P-t-P:172.16.2.1 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
    RX packets:112 errors:0 dropped:0 overruns:0 frame:0
    TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:11687 (11.4 KiB) TX bytes:11622 (11.3 KiB)

    3g-wan6 Link encap:Point-to-Point Protocol
    inet addr:10.48.185.54 P-t-P:10.64.64.65 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
    RX packets:156 errors:0 dropped:0 overruns:0 frame:0
    TX packets:502 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:12723 (12.4 KiB) TX bytes:38709 (37.8 KiB)

    ## 云服务器

    ppp1 Link encap:Point-to-Point Protocol
    inet addr:172.16.2.1 P-t-P:172.16.2.2 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1496 Metric:1
    RX packets:105 errors:0 dropped:0 overruns:0 frame:0
    TX packets:114 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:11622 (11.6 KB) TX bytes:11855 (11.8 KB)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5615 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 08:24 · PVG 16:24 · LAX 01:24 · JFK 04:24
    ♥ Do have faith in what you're doing.