>[оверквотинг удален]
> icmp-echo 8.8.8.8 source-interface GigabitEthernet0/0
> frequency 20
> ip sla schedule 1 life forever start-time now
> ip sla 2
> icmp-echo 8.8.4.4 source-interface GigabitEthernet0/1
> frequency 20
> ip sla schedule 2 life forever start-time now
> track 1 ip sla 1 reachability
> !
> track 2 ip sla 2 reachability ip sla 1
icmp-echo 8.8.8.8 source-interface GigabitEthernet0/0
frequency 20
ip sla schedule 1 life forever start-time now
ip sla 2
icmp-echo 8.8.4.4 source-interface GigabitEthernet0/1
frequency 20
ip sla schedule 2 life forever start-time now
track 1 ip sla 1 reachability
track 2 ip sla 2 reachability
interface GigabitEthernet0/0
description DIA
ip address 3.189.221.163 255.255.255.192
ip nat outside
interface GigabitEthernet0/1
description AVA
ip address 4.22.64.15 255.255.255.0
ip nat outside
interface GigabitEthernet0/2.10
encapsulation dot1Q 10
ip address 10.100.100.1 255.255.255.224
ip nat inside
ip policy route-map track-nat
interface GigabitEthernet0/2.129
encapsulation dot1Q 129
ip address 192.168.0.247 255.255.255.0
ip nat inside
ip policy route-map track-nat
ip route 8.8.8.8 255.255.255.255 3.189.221.166
ip route 8.8.4.4 255.255.255.255 4.22.64.1
ip nat inside source route-map dia interface GigabitEthernet0/0 overload
ip nat inside source route-map ava interface GigabitEthernet0/1 overload
access-list 1 permit 192.168.0.0 0.0.0.255
access-list 2 permit 10.100.100.0 0.0.0.31
route-map track-nat permit 10
match ip address 1
set ip next-hop verify-availability 3.189.221.166 10 track 1
set ip next-hop verify-availability 4.22.64.1 20 track 2
route-map track-nat permit 20
match ip address 2
set ip next-hop verify-availability 4.22.64.1 10 track 2
set ip next-hop verify-availability 3.189.221.166 20 track 1
route-map dia permit 10
match interface GigabitEthernet0/0
route-map ava permit 10
match interface GigabitEthernet0/1
event manager applet CLEAR-NAT
event syslog pattern "TRACKING-5-STATE: [12] rtr [12]"
action 1.0 cli command "enable"
action 1.5 cli command "clear ip nat translation *"