Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
clemilton
Participant
Jump to solution

Switch ISPs via Default IPv4 Static Route

Hi guys.

I have 3 ISPs. All of them are UP and connectivity is working fine.

I have a default ipv4 route pointing to the first ISP. I tried to add the other 2 ISPs gateways on this route and switching the internet navigation from one to another ISP by just changing the priority of the gateways. It didnt work out.

I dont want ISP redundancy. I just want to manually switch between ISPs.

Can anyone help me?

 

Thanks!

0 Kudos
1 Solution

Accepted Solutions
RamGuy239
Advisor
Advisor

I'm not entirely sure what you are implying here?

If you have three external interfaces on the firewall and you don't want to utilise ISP redundancy as you want to switch ISP manually when need all you need to do is simply switch the default gateway when needed?

Have a small txt-file with your changes, let's call it changeroute.txt

set static-route default nexthop gateway address OLD-DEF-GW-IP off
set static-route default nexthop gateway address NEW-DEF-GW-IP on

 

In expert mode run "dos2unix changeroute.txt" just to make sure we don't have any formatting issues on the file.

When you want to switch you simply run this in expert mode:
clish -c 'lock database override'
clish -f changeroute.txt -i -s

This will write your two commands into gaia and save it, deleting your old default route and adding the new one.

Certifications: CCSA, CCSE, CCSM, CCSM ELITE, CCTA, CCTE, CCVS, CCME

View solution in original post

0 Kudos
2 Replies
RamGuy239
Advisor
Advisor

I'm not entirely sure what you are implying here?

If you have three external interfaces on the firewall and you don't want to utilise ISP redundancy as you want to switch ISP manually when need all you need to do is simply switch the default gateway when needed?

Have a small txt-file with your changes, let's call it changeroute.txt

set static-route default nexthop gateway address OLD-DEF-GW-IP off
set static-route default nexthop gateway address NEW-DEF-GW-IP on

 

In expert mode run "dos2unix changeroute.txt" just to make sure we don't have any formatting issues on the file.

When you want to switch you simply run this in expert mode:
clish -c 'lock database override'
clish -f changeroute.txt -i -s

This will write your two commands into gaia and save it, deleting your old default route and adding the new one.

Certifications: CCSA, CCSE, CCSM, CCSM ELITE, CCTA, CCTE, CCVS, CCME
0 Kudos
clemilton
Participant

Thanks so much for your help!! I was able to solve the problem using your tips! 🙂

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events