FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12657 questions

15038 answers

24075 comments

46989 members

0 votes
182 views 2 comments
by
We have a lot of rutx12 which configured to use mGRE (DMVPN) tunnels for both installed sim cards. Through the CLI (vtysh) we can configure prepend's for the second sim card (dmvpn tunnel). It's necessary for prioritize traffic through first sim card (dmvpn tunnel). But after reboot, any information about prepend's was lost. Do you have any suggestion how can we leave this configuration active after reboot.

router bgp 65001

 bgp router-id 10.1.9.1

 neighbor mPEER01 peer-group

 neighbor mPEER01 remote-as 65001

 neighbor mPEER01 advertisement-interval 10

 neighbor mPEER02 peer-group

 neighbor mPEER02 remote-as 65001

 neighbor mPEER02 advertisement-interval 15

 neighbor 10.254.3.254 peer-group mPEER01

 neighbor 10.254.7.254 peer-group mPEER02

 !

 address-family ipv4 unicast

  network 10.1.0.9/32

  network 10.1.9.0/24

  neighbor mPEER01 soft-reconfiguration inbound

  neighbor mPEER02 soft-reconfiguration inbound

  neighbor mPEER02 route-map two-prepends in

  neighbor mPEER02 route-map two-prepends out

 exit-address-family

!

access-list vty permit 127.0.0.0/8

access-list vty deny any

!

route-map two-prepends permit 10

 set as-path prepend 65001 65001

!

1 Answer

0 votes
by
Hi,

I would suggest inserting these commands into a script, that would be executed on every start-up, to do that - read about rc.local.

https://openwrt.org/docs/techref/initscripts

Once you've done that, shut off the tunneling service and start it again (include commands of these into rc.local too).

EB.
by
Do you have any examples for frr?
by
If you have compiled frr into build you should have set of commands you're using to manipulate routes.

For this, I will not have direct examples, but you should be able to execute any commands with rc.local as long as they're working.

EB.