Community discussions

MikroTik App
 
User avatar
surfnet
Member Candidate
Member Candidate
Topic Author
Posts: 277
Joined: Wed Sep 01, 2004 6:38 pm

BGP Set-in-nexthop

Wed Mar 17, 2021 2:58 am

how does this work?
set-in-nexthop (IP address;) set gateway value to the specific IP address[es]. Valid only in incoming filters
If I create an in-filter for a downstream IP, this allows me to tell the upstream gateway?

on router with 2 gateways, 10.100.0.50 is preferred
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 161.x.x.33 10.100.0.45 20
1 ADb 0.0.0.0/0 161.x.x.33 10.100.0.50 19

Can I use the set-in-nexthop to force some traffic to use 10.100.0.45 as the gateway?
add action=accept chain=Melchin-In comment=Melchin disabled=yes prefix=162.x.x.113 set-in-nexthop=10.100.0.45

when I enable this rule, all traffic from AP stops.

what am I doing wrong?
thanks
 
User avatar
surfnet
Member Candidate
Member Candidate
Topic Author
Posts: 277
Joined: Wed Sep 01, 2004 6:38 pm

Re: BGP Set-in-nexthop

Thu Mar 18, 2021 2:16 am

can anyone help with this?

Who is online

Users browsing this forum: No registered users and 19 guests