Два PPPoE провайдера на Cisco Router

Jul 25, 2019 16:55

Красивый конфиг для организации отказоустройчивого подключения к интернету через двух провайдеров по PPPeE.

interface GigabitEthernet0/1
no shutdown
!
interface GigabitEthernet0/1.500
encapsulation dot1q 500
pppoe-client dial-pool-number 1
!
interface GigabitEthernet0/1.600
encapsulation dot1q 600
pppoe-client dial-pool-number 2
!
interface Dialer1
encapsulation ppp
mtu 1492
dialer pool 1
ppp chap hostname user1
ppp chap password cisco123
ip address negotiated
ip tcp adjust-mss 1452
ip nat outside
!
interface Dialer2
encapsulation ppp
mtu 1492
dialer pool 2
ppp chap hostname user2
ppp chap password cisco123
ip address negotiated
ip tcp adjust-mss 1452
ip nat outside
!
track 1 interface Dialer1 ip routing
track 2 interface Dialer2 ip routing
!
ip route 0.0.0.0 0.0.0.0 Dialer1 track 1
ip route 0.0.0.0 0.0.0.0 Dialer2 track 2
!
ip access-list standard ACL-NAT
permit 10.0.0.0 0.255.255.255
!
route-map RM-NAT-D1
match interface Dialer1
match ip address ACL-NAT
!
route-map RM-NAT-D2
match interface Dialer2
match ip address ACL-NAT
!
ip nat inside source route-map RM-NAT-D1 interface Dialer1 overload
ip nat inside source route-map RM-NAT-D2 interface Dialer2 overload
!
event manager applet FlushNAT-D1
event track 1 state any
action 1.1 cli command "enable"
action 1.2 cli command "clear ip nat translation *"
!
event manager applet FlushNAT-D2
event track 2 state any
action 1.1 cli command "enable"
action 1.2 cli command "clear ip nat translation *"
!
end

cisco, eem

Previous post Next post
Up