[問題] 3g上網,IP變動問題

看板Linux作者 (~我愛夏天~)時間11年前 (2013/07/22 20:11), 編輯推噓2(208)
留言10則, 3人參與, 最新討論串1/1
我有一台ubuntu server的機器,透過華為的3g網卡上網 網卡資訊 http://www.pcstore.com.tw/sogynet/M10266362.htm 網卡直接接在主機的usb插槽上 但是連上網路之後卻發現,ppp0取得的ip 和我用curl ifconfig取得的ip不一致 現在ubuntu出的去,但是我卻無法ssh進去 不知道有經驗的板友都是怎麼連線的呢? 麻煩各位了~謝謝~ 補充 eth0 Link encap:Ethernet HWaddr 08:00:27:63:68:cd UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1360 errors:0 dropped:0 overruns:0 frame:0 TX packets:868 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 KB) Interrupt:17 Base address:0xc000 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:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) ppp0 Link encap:Point-to-Point Protocol inet addr:42.72.90.213 P-t-P:10.64.64.64 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:9610 errors:0 dropped:0 overruns:0 frame:0 TX packets:11509 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:16479 (16.4 MB) TX bytes:14705 (14.7 KB) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 42.73.10.11

07/22 20:23, , 1F
最少簡介一下網路環境(有沒有在NAT後面之類),不然把ifconfig
07/22 20:23, 1F

07/22 20:23, , 2F
的內容弄上來吧 = =
07/22 20:23, 2F
文中提到我是網卡直接接在主機的usb插槽上 所以就沒有在NAT後面了,直接透過3g上網的 再次麻煩了,感謝~ ※ 編輯: blackspace98 來自: 42.73.10.11 (07/22 21:04)

07/22 22:20, , 3F
因為現在Mobile 用的IP,都是CGNAT!!!!
07/22 22:20, 3F

07/22 22:20, , 4F
想想用來做SERVER的別想了,
07/22 22:20, 4F

07/22 22:36, , 5F
所以就是沒有直接連上去的辦法了,是嗎?
07/22 22:36, 5F

07/22 22:37, , 6F
那我可能要試看看用vpn 或 no-ip的方式了
07/22 22:37, 6F

07/22 22:37, , 7F
謝謝嘍~
07/22 22:37, 7F

07/22 22:51, , 8F
NO-IP沒機會了,VPN 還有可能
07/22 22:51, 8F

07/22 22:52, , 9F
你可以google CGNAT
07/22 22:52, 9F

07/22 23:00, , 10F
謝謝!!剛剛我就在看這方面的資訊^^
07/22 23:00, 10F
文章代碼(AID): #1HxI5MwA (Linux)