Is it possible to use Nat/Pat to convert a full subnet of 192.168.1.0 /24 as the inside addresses to a single address of 192.168.1.1 as the outside address?
It would require having the same subnet on two interfaces I think?
Is it possible to use Nat/Pat to convert a full subnet of 192.168.1.0 /24 as the inside addresses to a single address of 192.168.1.1 as the outside address?
It would require having the same subnet on two interfaces I think?
Most nat implementations can't handle overlapping address ranges on the inside and outside.
One workaround for this is to pass the traffic through two NATs. The first NAT converts the traffic to a subnet that doesn't overlap with anything and then the second NAT converts it to the new desired source.
You can do this in one physical box by using multiple instances of the IP stack. Vendors of expensive routers call these "vrfs", linux calls them "network namespaces".
Re: Can you have subnet overlap if the subnet is a smaller subnet?
You cannot configure overlapping subnets on a Cisco router. IOS issues error message when you attempt to enter the offending IP address.
While not recommended, you can configure a subnet on one router that overlaps with a subnet on another (different) router. For example, router R1 has 10.1.1.1/24 and R2 has 10.1.1.129/25. But this will create problems - often intermittent but problems nonetheless. Not recommended.