3

网络拓扑及两层 NAT 的疑问

 1 year ago
source link: https://www.v2ex.com/t/908863
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
弱电箱
|--------------------------------------------|
|                                            |                       
|   Modem1 ----> Router1(PPPoE+DHCP+NAT) ----|---> AP1 ----> Device1
|                   |                        |
|-------------------|------------------------|
                    |
                    |---------------> Device2

Modem1 和 Router1 都在弱电箱中,部分终端设备会通过墙内线连接 Router1 ,因此 Modem1 和 Router1 需要保持不变。

现在把 AP1 设备替换为网络代理(带大家都懂的一些功能,是个多网口设备)

方案及问题

方案 1:把 AP1 替换为无线路由设备 R2

  1. Device2 无法通过 R2 获得代理功能
  2. Device1 会经过两层 NAT

方案 2:把 AP1 替换为透明网关设备 G2

  1. Device1 和 Device2 都会经过两层 NAT

方案 1 和 2 都会有两层 NAT 的问题,怎么搞?或者有其他更好的方案吗?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK