WIKI
ABOUT
Login
Remember
Register
FOR TIPS, gUIDES & TUTORIALS
subscribe to our Youtube
GO TO YOUTUBE
Recent
Questions
Popular
Unanswered
Tags
Members
about
wiki
Search
Search
12657
questions
15038
answers
24075
comments
46989
members
Most popular tags
rut955
rut240
rut950
rutx11
vpn
rms
to
openvpn
wifi
sms
trb140
not
rutx09
firmware
ipsec
rutx12
-
modbus
on
connection
Does rutx12 have bgp prepend command
0
votes
182
views
2
comments
asked
Feb 22, 2021
by
DGlova
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
!
rutx12
vpn
dmvpn
routing
bgp
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 22, 2021
by
ErnestasB
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.
commented
Feb 22, 2021
by
anonymous
Do you have any examples for frr?
commented
Feb 22, 2021
by
ErnestasB
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.
Please
log in
or
register
to add a comment.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
Ok
Read more
×
Subscribe
aa@aa.com
NETWORKING
Newsletter
Product change notifications
Your personal data will be processed in accordance with the
privacy policy
I agree
Submit