IOS-XE では、VRF 環境での ip nat outside の add-route オプションはサポートされておりません。以下のように設定しましてもルーティングテーブルには追加されませんので、スタティックルートを設定ください。
ip nat outside source static 172.16.1.100 192.168.1.200 vrf VRFTEST add-route |
ASR# show ip route vrf VRFTEST
<省略>
Routing Table: VRFTEST
<省略>
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/24 is directly connected, GigabitEthernet0/0/3.100
L 172.16.1.1/32 is directly connected, GigabitEthernet0/0/3.100
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, GigabitEthernet0/0/2.100
L 192.168.1.1/32 is directly connected, GigabitEthernet0/0/2.100
グローバルルーティングテーブルでは使用可能です。
ip nat outside source static 172.16.1.100 192.168.1.200 add-route |
ASR# show ip route
<省略>
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/24 is directly connected, GigabitEthernet0/0/3.1
L 172.16.1.1/32 is directly connected, GigabitEthernet0/0/3.1
192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks
C 192.168.1.0/24 is directly connected, GigabitEthernet0/0/2.1
L 192.168.1.1/32 is directly connected, GigabitEthernet0/0/2.1
S 192.168.1.200/32 [1/0] via 172.16.1.100