cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
303
Views
0
Helpful
3
Replies

How does it know?

jerry.mcrae
Level 1
Level 1

i have two routers sitting on the same LAN. the first router provides the interface with ISP and PAT for outgoing traffic - router two has the static NAT entries for our www servers. Since both routers have routes to the www servers (10.10.10.x)how does the first (ISP) router know to send the traffic from the ISP to the dedicated NAT router.

if we have a www server that needs a static NAT we set the default gateway to the static NAT router rather than the ISP facing router.

i cant figure out why the ISP router doesnt send the packet directly to the www server and by passing the NAT router.

thanks in advance.

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

Hi Jerry

Just to confirm - the static NAT entries are done on router two.

So router 1 & router 2 both have an interface into your LAN 10.10.10.x. But when the traffic is coming from outside to your www server it is a natted address. Router 1 receives the packet but the destination is not a 10.10.10.x address because it hasn't been natted back by router 2 yet.

So router 1 arps out for the NAT address and router 2 responds, the packet gets sent to router 2 and then router 2 NATs to back to 10.10.10.x and sends it to the www server.

Hope this makes sense

Jon

View solution in original post

3 Replies 3

Jon Marshall
Hall of Fame
Hall of Fame

Hi Jerry

Just to confirm - the static NAT entries are done on router two.

So router 1 & router 2 both have an interface into your LAN 10.10.10.x. But when the traffic is coming from outside to your www server it is a natted address. Router 1 receives the packet but the destination is not a 10.10.10.x address because it hasn't been natted back by router 2 yet.

So router 1 arps out for the NAT address and router 2 responds, the packet gets sent to router 2 and then router 2 NATs to back to 10.10.10.x and sends it to the www server.

Hope this makes sense

Jon

"So router 1 arps out for the NAT address"

router 1 arps looking for the private ip of the unNATted public ip?

thanks.

i got it!

(ARP) is the standard method for finding a host's hardware address when only its network layer address is known.

thanks.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card