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

Load balance dual ISP and Redundancy configurate on Router

teymur azimov
Level 1
Level 1

Hi Dears. This is my configuration. I configurated HSRP between 2 router. HSRP tracked outside interface and all of them is ok.

i have 2 ISP and this configurate  on subinterface. I want to 192.168.10.0  NAT to ISP1(PAT) and 192.168.100.0 NAT to ISP2(PAT) at the same time.

if the ISP1 is down the 192.168.10.0 go to ISP2 and if the ISP2 is down the 192.168.100.0 NAT to ISP1.

i configurate that way but how  I do the nat on redundancy?

redundancy

!

!

track timer interface 5

!

track 1 interface GigabitEthernet0/0 line-protocol ----- this used HSRP(i have no problem here)

!

track 100 ip sla 1 reachability

delay down 15 up 10

!

track 200 ip sla 2 reachability

delay down 15 up 10

!

!

!!

interface GigabitEthernet0/0

no ip address

ip virtual-reassembly

duplex auto

speed auto

!

!

interface GigabitEthernet0/0.105

description connected to ISP1

encapsulation dot1Q 105

ip address x.x.x.108 255.255.255.248

ip nat outside

ip virtual-reassembly

!

interface GigabitEthernet0/0.233

description connected to ISP2

encapsulation dot1Q 233

ip address x.x.x.234 255.255.255.248

ip nat outside

ip virtual-reassembly

!

interface GigabitEthernet0/1

ip address 10.0.0.1 255.255.255.0

ip nat inside

ip virtual-reassembly

duplex auto

speed auto

standby 1 ip 10.0.0.3

standby 1 priority 110

standby 1 preempt

standby 1 track 1 decrement 20

!

!

ip forward-protocol nd

!

no ip http server

no ip http secure-server

!

ip nat inside source route-map ISP1 interface GigabitEthernet0/0.105 overload  ---- this is my nat, this nat is work but i want the how do the redundancy nat?

ip nat inside source route-map ISP2 interface GigabitEthernet0/0.233 overload

ip route 0.0.0.0 0.0.0.0 x.x.x.110 track 100

ip route 0.0.0.0 0.0.0.0 x.x.x.233 254 track 200

ip route 192.168.10.0 255.255.255.0 10.0.0.2

ip route 192.168.100.0 255.255.255.0 10.0.0.2

!

ip sla 1

icmp-echo x.x.x.110 source-interface GigabitEthernet0/0.105

timeout 1000

threshold 40

frequency 3

ip sla schedule 1 life forever start-time now

i

ip sla 2

icmp-echo x.x.x.233 source-interface GigabitEthernet0/0.233

timeout 1000

threshold 40

frequency 3

ip sla schedule 2 life forever start-time now

access-list 101 permit ip 192.168.10.0 0.0.0.255 any

access-list 102 permit ip 192.168.100.0 0.0.0.255 any

!

!

!

!

route-map ISP2 permit 20

match ip address 102

set ip next-hop verify-availability x.x.x.233 10 track 200

set ip next-hop verify-availability x.x.x.110 20 track 100

!

route-map ISP1 permit 10

match ip address 101

set ip next-hop verify-availability x.x.x.110 10 track 100

set ip next-hop verify-availability x.x.x.233 20 track 200

2 Replies 2

MaseBarnes
Level 1
Level 1

You can change the NAT settings based on events with EEM.

Check this link:

http://www.muenz-it.de/?p=61

Marwan ALshawi
VIP Alumni
VIP Alumni

you need to have a separate route map for each nat with match interface to have the nat working, in addition to the PBR route maps

have a look at the document i wrote in here, whcih will give a step by step example and wish will help you understand and configure your router as you want

https://supportforums.cisco.com/docs/DOC-8313

good luck

if helpful Rate