Title: How to achieve failover after configuring PBR on Ruijie EG? [Print this page] Author: zhangqiao@ruiji Time: 2024-10-25 11:09 Title: How to achieve failover after configuring PBR on Ruijie EG? 1. Requirements:
Vlan 10 Access the Internet through wan0 (G0/7).When wan0 fails, switch to wan1
Vlan 50 Access the Internet through wan1 (G0/6). When wan1 fails, switch to wan02 2. Topology:
3. Configuration steps:
3.1 You need configure PBR on EG first. Here is the guide for you: How to configure PBR on ruijie EG? - Wireless - Ruijie Community
3.2 Delete the existing pbr whichdeliver from web
NBR6215#conf
NBR6215(config)#route-map Gi0/0.10 permit 6
NBR6215(config-route-map)#no set ip next-hop192.168.20.1
NBR6215(config)#route-map Gi0/0.50 permit 50
NBR6215(config-route-map)#no set ip next-hop155.137.66.105
3.3 Config rns+track
NBR6215(config)#ip rns 6
NBR6215(config-ip-rns)#icmp-echo 8.8.8.8source-interface GigabitEthernet 0/6 frequency 5001
NBR6215(config)#ip rns 7
NBR6215(config-ip-rns)#icmp-echo 8.8.8.8source-interface GigabitEthernet 0/7 frequency 5001
NBR6215(config-ip-rns)#ip rns schedule 6 start-timenow life forever
NBR6215(config-ip-rns)#ip rns schedule 7 start-timenow life forever
NBR6215(config-ip-rns)#ip rnsreaction-configuration 6 react allfail action-type Track
NBR6215(config-ip-rns)#ip rnsreaction-configuration 7 react allfail action-type Track
NBR6215(config-ip-rns)#track 6 rns 6
NBR6215(config-ip-rns)#track 7 rns 7
NBR6215(config-ip-rns)#exit
NBR6215(config)#
3.4 Config acl match vlan 10 or vlan50 ip range
NBR6215(config)#access-list 11 permit 192.168.10.00.0.0.255
NBR6215(config)#access-list 50 permit 192.168.50.00.0.0.255
3.5 Config pbr policy
NBR6215(config)#route-map Gi0/0.10 permit 6
NBR6215(config-route-map)#match ip address 11
NBR6215(config-route-map)#set ip next-hop verify-availability192.168.20.1 track 7
NBR6215(config-route-map)#set ip next-hopverify-availability 155.137.66.105 track 6
NBR6215(config)#route-map Gi0/0.50 permit 50
NBR6215(config-route-map)#match ip address 50
NBR6215(config-route-map)#set ip next-hopverify-availability 155.137.66.105 track 6
NBR6215(config-route-map)#set ip next-hopverify-availability 192.168.20.1 track 7
3.6 Save the configuration:
NBR6215(config-route-map)#end
NBR6215#wr
Welcome to Ruijie Community (https://community.ruijienetworks.com/)