# NAT with two outside interfaces

**URL:** <https://forum.networklessons.com/t/nat-with-two-outside-interfaces/1022>\
**Category:** Lessons Discussion\
**Created:** [December 26, 2016, 6:16pm UTC](https://forum.networklessons.com/t/nat-with-two-outside-interfaces/1022 "2016-12-26T18:16:13Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![nocspti](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/n/45deac/32.png) [@nocspti](https://forum.networklessons.com/u/nocspti)\
**Post date:** [October 6, 2020, 1:04am UTC](https://forum.networklessons.com/t/nat-with-two-outside-interfaces/1022/18 "2020-10-06T01:04:04Z")

</div>

Hi guys,

I really dont get it. Depends where i ping from and the message for the ping that i get, the packet go for one route or another, this is right or i did something wrong?

NAT inside & Route map config

```
ip nat inside source route-map ISP1 interface Ethernet0/1 overload
ip nat inside source route-map ISP2 interface Ethernet0/2 overload
ip route 0.0.0.0 0.0.0.0 192.168.12.2
ip route 0.0.0.0 0.0.0.0 192.168.14.2
!
access-list 1 permit 192.168.10.0 0.0.0.255
!
route-map ISP2 permit 10
 match ip address 1
 set interface Ethernet0/2
!
route-map ISP1 permit 10
 match ip address 1
 set interface Ethernet0/1

```

 ![image](https://cdn-forum.networklessons.com/uploads/default/original/2X/6/6643f70e2708efe937cbaefbd640a4031b22db11.png)

 ![image](https://cdn-forum.networklessons.com/uploads/default/original/2X/b/b960afe97acdb8e7ba2eb6a4d4f2c0973f0c5922.png)

ip route output

```
NAT#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is 192.168.14.2 to network 0.0.0.0

S* 0.0.0.0/0 [1/0] via 192.168.14.2
                [1/0] via 192.168.12.2
      192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, Ethernet0/0
L 192.168.10.2/32 is directly connected, Ethernet0/0
      192.168.12.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.12.0/24 is directly connected, Ethernet0/1
L 192.168.12.1/32 is directly connected, Ethernet0/1
      192.168.14.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.14.0/24 is directly connected, Ethernet0/2
L 192.168.14.1/32 is directly connected, Ethernet0/2

```

Thanks in advance.

---

_[View the full topic](https://forum.networklessons.com/t/nat-with-two-outside-interfaces/1022)._
