cisco Catalyst 9300 Series Switch — Overlapping Networks

2. NAT module intercepts the corresponding packets and attempts to translate the packets. Based on the presence or absence of a matching NAT rule the following scenarios are possible: • If a matching static translation rule exists, then it takes precedence and the packets are translated to the corresponding global address. Otherwise, the packets are matched against dynamic translation rule and in the event of a successful match, they are translated to the corresponding global address.

NAT module inserts a fully qualified flow entry corresponding to the translated packets, into its translation database, to facilitate fast translation and forwarding of the packets corresponding to this flow, in either direction. • The packets get forwarded without any address translation in the absence of a successful rule match. • The packets get dropped in the event of failure to obtain a valid inside global address even though we have a successful rule match. • As this is a PAT configuration, transport ports help translate multiple flows to a single global address.

(In addition to source address, the source port is also subjected to translation and the associated flow entry maintains the corresponding translation mappings.) 3. The device replaces inside local source address/port 10.1.1.1/1723 and 10.1.1.2/1723 with the corresponding selected global address/port 203.0.113.2/1024 and 203.0.113.2/1723 respectively and forwards the packets. 4. Host B receives the packet and responds to Host Y by using the inside global IP address 203.0.113.2, on port 1024. Host C receives the packet and responds to Host X using the inside global IP adress 203.0.113.2, on port 1723. 5.

When the device receives the packets with the inside global IP address, it performs a NAT table lookup; the inside global address and port, and the outside address and port as keys; translates the addresses to the inside local addresses 10.1.1.1:1723 / 10.1.1.2:1723 and forwards the packets to Host Y and Host X respectively. Host Y and Host X receive the packet and continue the conversation. The device performs Steps 2 to 5 for each packet it receives. Overlapping Networks Use NAT to translate IP addresses if the IP addresses that you use are neither legal nor officially assigned.

Overlapping networks result when you assign an IP address to a device on your network that is already legally owned and assigned to a different device on the Internet or outside the network. The following figure depicts overlapping networks: the inside network and outside network both have the same local IP addresses (10.1.1.x). You need network connectivity between such overlapping address spaces with one NAT device to translate the address of a remote peer (10.1.1.3) to a different address from the perspective of the inside. Configuring Network Address Translation Overlapping Networks Configuring Network Address Translation 9