【发布时间】:2016-08-21 07:13:26
【问题描述】:
我的静态 IP 由一个 ISP 提供,网络是:
static1 IP:2.2.2.3 (test1.office.com)
static2 IP:3.3.3.2 (test2.office.com)
路由器 g0/0:static1
路由器 fa0/0:192.168.0.5(局域网)
webserver1: 192.168.0.10 (test1.office.com)
webserver2: 192.168.0.20 (test2.office.com)
在这里我要做的是将两个静态 IP 重定向到各自的网络服务器。我已经用 static1 做到了这一点,但对如何实现 static2
感到困惑对于静态 1:
我在 g0/0 上应用了 nat,在 f0/0 上应用了 nat inside。 NAT 规则是:
ip nat inside source list 1 interface g0/0 overload
ip nat inside source static tcp 192.168.0.10 80 123.123.123.4 80
ip nat inside source static tcp 192.168.0.10 443 123.123.123.4 443
但是对于 Static2,我对如何实现感到困惑。我是否必须在路由器上添加另一个端口 g0/1 并分配 Static2,并为此使用一个 nat 规则,或者我必须采用不同的方法。这应该可以从外部互联网访问。
【问题讨论】:
标签: networking nginx routing cisco