Community discussions

MikroTik App
 
jmginer
Member Candidate
Member Candidate
Topic Author
Posts: 155
Joined: Tue Dec 11, 2012 4:56 am
Contact:

How to advertise the default route?

Tue Dec 12, 2017 8:02 pm

Hello,

we want send default route to a particular peer.

In BGP peer, we have tried to set

default-originate=always

or

default-originate=if-installed

without success.

The only workaround that we have found is to create a out filter with discard action

/routing filter add action=discard chain=peer-out

But with this rule, the peer dont receive any rute.

What is the correct way to send refault route?

Thanks!
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: How to advertise the default route?

Wed Dec 13, 2017 9:44 am

Advertise to this specific peer 0.0.0.0/0 outbound and discard any other.
 
jmginer
Member Candidate
Member Candidate
Topic Author
Posts: 155
Joined: Tue Dec 11, 2012 4:56 am
Contact:

Re: How to advertise the default route?  [SOLVED]

Wed Dec 13, 2017 10:36 am

Thanks @Anumrak

works if I set with prefix-length=0
/routing filter
add action=accept chain=Peer-OUT prefix=0.0.0.0/0 prefix-length=0
add action=discard chain=Peer-OUT
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: How to advertise the default route?

Wed Dec 13, 2017 11:22 am

Thanks @Anumrak

works if I set with prefix-length=0
/routing filter
add action=accept chain=Peer-OUT prefix=0.0.0.0/0 prefix-length=0
add action=discard chain=Peer-OUT
Not necessary set prefix length.

Who is online

Users browsing this forum: andrewrmack and 45 guests