Академический Документы
Профессиональный Документы
Культура Документы
UBNT SUPPORT
Search
Overview
Readers will learn how to con gure Policy-Based Routing (PBR) on an EdgeRouter.
Back to Top
Using PBR, the traf c from the hosts on VLAN10 will be forwarded to ISP1 and the traf c from VLAN20
will be forwarded to ISP2.
Policy-Based Routing (PBR) in EdgeOS works by matching source IP address ranges using rewall rules
and forwarding the traf c using different routing tables. The routing tables that will be used in this
example are:
CLI: Access the Command Line Interface. You can do this using the CLI button in the GUI or
by using a program such as PuTTY.
configure
2. Make sure that two default routes are added to the main routing table.
NOTE: This step is necessary to allow hosts to use the main routing table in case one of the
ISPs is down.
3. Add two default routes for routing table 11 and table 12.
NOTE: When using a point-to-point interface (PPPoE or OpenVPN, for example), you can
also use an interface-route instead:
set protocols static table <table-number> interface-route 0.0.0.0/0 next-hop-interface
<interface-id>
4. Exclude the Inter-VLAN traf c (between VLAN10 and VLAN20) from PBR.
NOTE: This step allows the VLAN10 and VLAN20 hosts to communicate with each other
using the main routing table.
5. Create the modify rewall policy that matches on the VLAN source IP address ranges.
6. Apply the rewall policy in the inbound/in direction on the eth2 VLAN interfaces.
commit ; save
You can use the following operational mode commands to verify the routing tables and rewall
statistics:
show ip route
show ip route table 11
show ip route table 12
show firewall modify PBR statistics
Related Articles
Back to Top
Feedback
Don’t see what you are looking for? Get advice from our Community or Submit a Help Ticket.
EDGEMAX COMMUNITY
SUBMIT A REQUEST
Community Downloads
Connect with thousands of experts Find the latest software for all of
around the world! your products.
Can't find what you're looking for?
https://help.ubnt.com/hc/en-us/articles/204952274-EdgeRouter-Policy-Based-Routing 4/6
04/07/2019 EdgeRouter - Policy-Based Routing – Ubiquiti Networks Support and Help Center
Subscribe to Newsletter
Email Address
Submit