我们正在使用 VRF 并查看 NVI NAT 配置。如果没有 VRF,我们可以配置以下内容:
ip nat source static tcp 10.0.0.2 80 interface Dialer1 80
ip nat source static tcp 10.0.0.3 80 interface Dialer1 8080
我可以使用 WAN 接口而不必更新配置以防万一 WAN IP 发生变化。但是,如果我使用该接口,我将无法再定义 VRF:
roTST02(config)#ip nat source static tcp 10.0.0.2 80 interface Dialer1 80 ?
<cr>
如果我使用 WAN IP,我可以设置一个 vrf:
roTST02(config)#ip nat source static tcp 10.0.0.2 80 4.4.4.4 80 ?
extendable Extend this translation when used
no-alias Do not create an alias for the global address
no-payload No translation of embedded address/port in the payload
vrf Specify vrf
<cr>
有解决方案吗?从我的角度来看,使用 VRF 不应限制 NAT 的可能性。在 IOS 15.6(2)T & 15.7(3)M4a 上测试