Ruijie Community

Title: How to configure PBR on Reyee EG? [Print this page]

Author: GTAC-Sophia    Time: 2022-8-1 13:17
Title: How to configure PBR on Reyee EG?
Scenario
Multi-egress traffic distribution is applicable to a network with two or more operator lines. It controls data from different users to pass through specified external network lines, thereby implementing distribution of Internet access traffic.
Network Topology



Configuration Planning
1. The ISP1 line is connected to the WAN0 port (WAN): the static IP address is 172.26.5.185/22, and the external network gateway is 172.26.4.1;
2. The ISP2 line is connected to the WAN1 port (WAN1): the static IP address is 192.168.34.56/24, and the external network gateway is 192.168.34.1.
3. The IP address of the Internal server is 192.168.1.200, and the gateway is 192.168.1.1
4. The EG has 2 external ISP lines, which have been configured to access the Internet normally. The requirement is to realize that the internal network server 192.168.1.200 access the Internet through the ISP1 line.
Configuration Steps


1. Configure Internet access for two external ISP lines:Select Basics >WAN, Go to WAN configuration. Select Dual-Line, configure the IP address, subnet mask, extranet gateway, and DNS for each line, and click Save.






2. Configure PBR: Select  Advanced>Routing  >PBR, click Add to configure PBR parameters.




Rule Name: Set a rule name up to 28 characters long.
Protocol Type: Select or customize a protocol.
Protocol Number: Set a protocol number for the custom protocol.
Src Port Range: Set a source port range.
Dest Port Range: Set a destination port range.
Src IP/IP Range: Set a source IP address or range. Default: all IP addresses.
Dest IP/IP Range: Set a destination IP address or range. Default: all IP addresses.
Outbound Interface: Select an interface which PPTP packets are routed over.
Status: Enable or disable a policy.
Match Order: The packet flow will be matched with the rule from up to down until there is a successful match. You can move a rule up or down.
Test
On the server 192.168.1.200 tracert external network address to test whether the route trace is correct

Note:
Route Priority: PBR > Static Routing > ISP Routing.

Author: raymondjay.beri    Time: 2023-4-23 20:52
May I ask? what happened when ISP1 is down?

will the router automatically switch it to ISP2?

Author: liuxiyang@ruiji    Time: 2023-4-24 09:26
Raymond Jay Berin replied at 2023-4-23 20:52
May I ask? what happened when ISP1 is down?

will the router automatically switch it to ISP2?

Hi Raymond,

Yes, when ISP1 is down, it will automatically switch to ISP2.

Author: Muhammad Ahmed    Time: 2023-9-15 14:02
GTAC-Steve replied at 2023-4-24 09:26
Hi Raymond,

Yes, when ISP1 is down, it will automatically switch to ISP2.

In my case, i don't want that like it switches automatically to ISP2 ,what can be the solution?

Author: GTAC-Jayden    Time: 2023-9-15 14:47
Muhammad  Ahmed replied at 2023-9-15 14:02
In my case, i don't want that like it switches automatically to ISP2 ,what can be the solution?

Dear sir,

When you configure PBR, you can disable Traffic Assurance so that when the outbound interface is down, the traffic of this PBR will not be automatically switched to the other functional interface (please note you need to upgrade the EG to the latest firmware version):



Best regards,
Jayden

Author: Muhammad Ahmed    Time: 2023-9-15 15:07
GTAC-Jayden replied at 2023-9-15 14:47
Dear sir,

When you configure PBR, you can disable Traffic Assurance so that when the outbound int ...

i am using EG105G and there is no sort of options like that, you can see in the pic below:


Author: GTAC-Jayden    Time: 2023-9-15 15:35
Muhammad  Ahmed replied at 2023-9-15 15:07
i am using EG105G and there is no sort of options like that, you can see in the pic below:

Dear sir,

If the device model is EG105G, unfortunately, it will not be supported because only firmware version ReyeeOS 1.237 and later versions can support this feature. The latest firmware version available for EG105G is only ReyeeOS 1.202.

Best regards
Jayden

Author: witawat57@gmail    Time: 2023-10-2 21:59
How to config PBR mode by domain name on cdn ?



Author: guominxiang@rui    Time: 2023-10-7 10:56
Witawat Piyarattanavong replied at 2023-10-2 21:59
How to config PBR mode by domain name on cdn ?

The PBR can write only IP addresses, but not domain names, sorry for your inconvenience.







Welcome to Ruijie Community (https://community.ruijienetworks.com/) Powered by Discuz! X3.2