Examples: Configuring Filter-Based Forwarding
Configure a filter to direct traffic to ISP1 or ISP2 based on source address matching:
family inet {
filter classify-customers {
term isp1-customers {
from {
source-address 10.1.1.0/24;
source-address 10.1.2.0/24;
}
then {
routing-instance isp1-route-table;
}
}
term isp2-customers {
from {
source-address 10.2.1.0/24;
source-address 10.2.2.0/24;
}
then {
routing-instance isp2-route-table;
}
}
term default {
then {
accept;
}
}
}
}
No comments:
Post a Comment