cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
684
Views
4
Helpful
4
Replies

NAT two hops after

bkoum
Level 1
Level 1

hello ppl

there is a sw3550 hosting a lan 10.1.1.0 which is connected with another sw3550 miles away with FO which is hosting a lan 10.2.2.0 which is connected with a router into a fasthernet interface...

Also there is routing on both 3550 enabled and all three devices are in a row.

That fast ethernet interface from the router has already a NAT for the 10.2.2.0 lan but i want to add the first lan too 10.1.1.0 .

Because those lans connected in a row is there any conflict when the get nated at the same nat inside interace...

Its not so clear to me if the packets comes from the 10.1.1.0 looks like the generated from the second lan or they recognized as ip source 10.2.2.0 .

thanks a lot

1 Accepted Solution

Accepted Solutions

Hi

Can you explain what you mean by first network passes through second.

Where are the routed interfaces for the

10.1.1.0/24 network

10.2.2.0/24 network

IP packets always keep the same source IP unless your are natting but natting does not encapsulate the packet.

If you are tunneling you would be using encapsulation but it doesn't sound from your description as though that is what you are doing.

Jon

View solution in original post

4 Replies 4

Jon Marshall
Hall of Fame
Hall of Fame

Hi

If i understand correctly you just want to NAT both the 10.1.1.0 & the 10.2.2.0 networks as they pass through the router.

Yes this is fine and there should be no problem unless i have misunderstood your topology. The router always keeps a record of the source IP address and port so it will know whether the packet is from 10.1.1.x or 10.2.2.x.

HTH

Jon

hi Jon

this can work althought the first network pass throught the second? i thought that the packets comes from the first network encapsulated with new frame from the second and it would be impposible to be recognized the ititial ip source....

Hi

Can you explain what you mean by first network passes through second.

Where are the routed interfaces for the

10.1.1.0/24 network

10.2.2.0/24 network

IP packets always keep the same source IP unless your are natting but natting does not encapsulate the packet.

If you are tunneling you would be using encapsulation but it doesn't sound from your description as though that is what you are doing.

Jon

its a fiber optical which connect to lans using sw3550 and after these switches its the router where i want to put the nat and drime me to the internet. the routed interfaces are the Gi interfaces from 3550 switches .

I was thinking that tha packets comes from the network 10.1.1.0 directed throught the 10.2.2.0 at the router changed the ip source addresses from the routing proccess and so the nat would recognize only one network and not the two .

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