cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
981
Views
0
Helpful
2
Replies

Multiple LAN and WAN Ints and NAT..only one default GW

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

1 Accepted Solution

Accepted Solutions

cadet alain
VIP Alumni
VIP Alumni

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.

Don't forget to rate helpful posts.

View solution in original post

2 Replies 2

cadet alain
VIP Alumni
VIP Alumni

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.

Don't forget to rate helpful posts.

Thanks for the confirmation - Ugly solution then the more Ints that are introduced...

Review Cisco Networking for a $25 gift card