![ELTEX ESR-100 Скачать руководство пользователя страница 65](http://html.mh-extra.com/html/eltex/esr-100/esr-100_operation-manual_2397326065.webp)
ESR Series Routers Operation Manual
65
7.16.2
Route-map based on access control lists (Policy-based routing)
Fig. 7.18
—
Network structure
Objective 1:
Distribute traffic between Internet service providers based on user subnets.
First, do the following:
–
Assign IP address to interfaces.
Route traffic from addresses 10.0.20.0/24 through ISP1 (184.45.0.150), and traffic from addresses
10.0.30.0/24 trough ISP2 (80.16.0.23). You should monitor availability of ISP addresses (ISP connection
operational capability), and if one the connections goes down, redirect all the traffic from malfunctioning
connection to the operational one.
Solution:
Create ACL:
esr#
configure
esr(config)#
ip access-list extended sub20
esr(config-acl)#
rule 1
esr(config-acl-rule)#
match source-address 10.0.20.0 255.255.255.0
esr(config-acl-rule)#
match destination-address any
esr(config-acl-rule)#
match protocol any
esr(config-acl-rule)#
action permit
esr(config-acl-rule)#
enable
esr(config-acl-rule)#
exit
esr(config-acl)#
exit
esr(config)#
ip access-list extended sub30
esr(config-acl)#
rule 1
esr(config-acl-rule)#
match source-address 10.0.30.0 255.255.255.0
esr(config-acl-rule)#
match destination-address any
esr(config-acl-rule)#
match protocol any
esr(config-acl-rule)#
action permit
esr(config-acl-rule)#
enable
esr(config-acl-rule)#
exit
esr(config-acl)#
exit
Create a policy:
esr(config)#
route-map
PBR
Create rule 1:
esr(config-route-map)#
rule 1
Specify ACL as a filter: