cisco Catalyst 9300 Series Switch — Configuring Translation of Overlapping Networks

Configuring Translation of Overlapping Networks Configure static translation of overlapping networks if your IP addresses in the stub network are legitimate IP addresses belonging to another network and you want to communicate with those hosts or routers using static translation. Note For a successful NAT outside translation, the device should be configured with a route for the outside local address. You can configure the route either manually or using the add-route option associated with ip nat outside source { static | list } command. We recommend that you use the add-route option to enable automatic creation of the route.

Procedure Configuring Network Address Translation Configuring Translation of Overlapping Networks Command or Action Purpose Step 10 show ip nat translations [verbose] Example: Device# show ip nat translations Displays active NAT. Command or Action Purpose Step 1 enable Example: Switch> enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Example: Switch# configure terminal Step 3 ip nat inside source static local-ip global-ip Example: Switch(config)# ip nat inside source static 10.1.1.1 203.0.113.2 Establishes static translation between an inside local address and an inside global address.

Step 4 ip nat outside source static local-ip global-ip Example: Switch(config)# ip nat outside source static 172.16.0.3 10.1.1.3 Establishes static translation between an outside local address and an outside global address. Step 5 interface type number Example: Switch(config)# interface ethernet 1 Specifies an interface and enters interface configuration mode. Step 6 ip address ip-address mask Example: Sets a primary IP address for an interface. Configuring Network Address Translation 22