12-13-2012 01:00 AM - edited 03-04-2019 06:23 PM
Hi,
Have a router with multiple LAN and WAN Ints, only single default GW.
Desired outcome is (For example):
gige0/0.1 (LAN) to NAT via IP assigned to gige0/1.1(WAN)
gige0/0.2 (LAN) to NAT via IP assigned to gige0/1.2(WAN)
gige0/0.3 (LAN) to NAT via IP assigned to gige0/1.3(WAN)
And the default GW is via gige0/1.2
I've tried enabling ip nat inside and outside on each of the "LAN + WAN" Ints, then
ip nat inside source route-map DMZ1 interface GigabitEthernet0/1.1 overload
ip nat inside source route-map DMZ2 interface GigabitEthernet0/1.3 overload
route-map DMZ1 permit 10
match ip address 110
match interface GigabitEthernet0/1.1
!
route-map DMZ2 permit 10
match ip address 111
match interface GigabitEthernet0/1.3
access-list 110 remark ACL to force DMZ1 LAN via DMZ1 WAN for NAT
access-list 110 permit ip 10.11.98.0 0.0.0.255 any
access-list 111 remark ACL to force DMZ2 LAN via DMZ2 WAN for NAT
access-list 111 permit ip 10.11.99.0 0.0.0.255 any
But testing (From the router itself, by pinging with source ip of one of the LAN Ints) is not working - i.e. sh ip nat trans is not getting hits, but I do get hits on the ACL's....so I assume it's trying to throw the traffic out via the default GW, hence no NAT is occurring.....Do I need route-map and set ip next hop on each LAN int forcing it via the designated(nat) WAN Ints next hop IP?
Thanks in advance
Solved! Go to Solution.
12-13-2012 04:12 AM
Hi,
Do I need route-map and set ip next hop on each LAN int forcing it via the designated(nat) WAN Ints next hop IP?
Yes you need this.
Regards.
Alain
Don't forget to rate helpful posts.
12-13-2012 04:12 AM
Hi,
Do I need route-map and set ip next hop on each LAN int forcing it via the designated(nat) WAN Ints next hop IP?
Yes you need this.
Regards.
Alain
Don't forget to rate helpful posts.
12-14-2012 05:27 PM
Thanks for the confirmation - Ugly solution then the more Ints that are introduced...
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