03-05-2003 01:12 AM - edited 03-02-2019 05:35 AM
Can I make a single interface to bahave as NAT inside as well as NAT ouside. Can it be done by subinterfaces
03-05-2003 01:32 AM
Configuring nat inside & outside on the same interface will not be possible. The IOS interpreter will accept the last of the two commands entered and overwrite the other. However; you can use a loopback interface to serve as nat inside or outside. The trick will be to route the data through the loopback. This may complicate your config a bit and may even not be possible depending on your demands.
It solves your question but that's about it.
Regards,
Leo
03-05-2003 02:36 AM
what if I configure a subinterface as nat inside having a private ip address and another subinterface on the same interface as nat outside having a public ip address, would this provide me with the same functionality and would satisfy my motive.
03-06-2003 03:56 AM
I am not pretty sure about subinterfaces, but I have tried loopback configuration. I works perfectly, defining loopback interface and serial interface as "nat outside"; ethernet interface as "nat inside" and configuring some more stuff solved my problems. In this way, two way NAT is possible. There are various documents in Cisco TAC web site related with this issue..
03-08-2003 05:51 AM
Yes, it's possible with SUB interfaces. Why because, the sub interfaces usage
gives us virtually different ethernet interfaces. So, you can use like for "e0.1" "ip nat inside" and for "e0.2", "ip nat outside".
Regards...
Ashok.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide