Community discussions

MikroTik App
 
User avatar
nichky
Forum Guru
Forum Guru
Topic Author
Posts: 1275
Joined: Tue Jun 23, 2015 2:35 pm

{ASK} BGP-def route

Thu May 25, 2023 7:57 am

The topology is very simple

ISP==eBP===R1==ibgp==R2==ibgp==R3==ebgp==CPE

In this implementation i'm expecting R3 to learn default route from R1 via BGP signaling.
i'm providing export of R1 and R3

R2 has the same config with MPLS=ticked and vpn4=ticked

On v6 this is working perfectly fine , unlike v7. Can anyone assist plus?

happy to provide more details if need be
[admin@R1] > interface/list/export                             
#RouterOS 7.9
/interface list
add name=list-vrf_cpe-pub
[admin@R1] > routing/bgp/export                                
# may/25/2023 04:48:34 by RouterOS 7.9
/routing bgp template
add address-families=ip,vpnv4 as=65000 disabled=no name=AS65000 router-id=10.0.88.10 routing-table=main
/routing bgp connection
add address-families=ip as=65000 connect=yes disabled=no listen=yes local.role=ebgp name=bgp-ISP output.network=eBGP remote.address=180.22.11.1/32 .as=1011 router-id=180.22.11.2 \
    routing-table=main templates=AS65000
add address-families=ip,vpnv4 as=65000 connect=yes disabled=no listen=yes local.address=10.0.88.10 .role=ibgp name=bgp-R3 output.default-originate=always remote.address=10.0.88.3/32 .as=65000 \
    router-id=10.0.88.10 routing-table=main templates=AS65000
/routing bgp vpn
add disabled=no export.redistribute=connected,static,bgp .route-targets=150:150 import.route-targets=150:150 label-allocation-policy=per-vrf name=bgp-mpls-vpn-1 route-distinguisher=150:150 \
    vrf=vrf-cpe-pub
[admin@R1] > ip route/print detail  where dst-address=0.0.0.0/0
Flags: D - dynamic; X - disabled, I - inactive, A - active; c - connect, s - static, r - rip, b - bgp, o - ospf, d - dhcp, v - vpn, m - modem, y - bgp-mpls-vpn; H - hw-offloaded; + - ecmp 
   DAb   dst-address=0.0.0.0/0 routing-table=main gateway=180.22.11.1 immediate-gw=180.22.11.1%ether1 distance=20 scope=40 target-scope=10 suppress-hw-offload=no 

 1  As   dst-address=0.0.0.0/0 routing-table=vrf-cpe-pub pref-src="" gateway=180.22.11.1 immediate-gw=180.22.11.1%ether1 distance=1 scope=30 target-scope=10 suppress-hw-offload=no


[admin@R3] > routing/bgp/export              
# may/25/2023 04:49:35 by RouterOS 7.9
# software id = 
#
/routing bgp template
add address-families=ip,l2vpn as=65000 disabled=no name=AS65000 router-id=10.0.88.3
add address-families=ip as=65000 disabled=no name=cpe_public router-id=103.220.80.21 routing-table=vrf-CPE-Public vrf=vrf-CPE-Public
/routing bgp connection
add address-families=ip,vpnv4 as=65000 connect=yes disabled=no listen=yes local.address=10.0.88.3 .role=ibgp name=bgp-R1 nexthop-choice=default remote.address=10.0.88.10/32 .as=65000 \
    router-id=10.0.88.3 routing-table=main templates=AS65000
add address-families=ip as=65000 connect=yes disabled=no listen=yes local.role=ebgp name=bgp-CPE_pub output.default-originate=always remote.address=103.220.80.22/32 .as=100 router-id=\
    103.220.80.21 routing-table=vrf-CPE-Public templates=cpe_public vrf=vrf-CPE-Public
/routing bgp vpn
add disabled=no export.route-targets=150:150 import.route-targets=150:150 label-allocation-policy=per-vrf name=bgp-mpls-vpn-1 route-distinguisher=150:150 vrf=vrf-CPE-Public
[admin@R3] > /ip/route/print where dst-address=0.0.0.0/0
Flags: D - DYNAMIC; A - ACTIVE; b, y - BGP-MPLS-VPN
Columns: DST-ADDRESS, GATEWAY, DISTANCE
    DST-ADDRESS  GATEWAY     DISTANCE
DAb 0.0.0.0/0    10.0.88.10       200
Last edited by nichky on Thu May 25, 2023 9:06 am, edited 1 time in total.
 
User avatar
nichky
Forum Guru
Forum Guru
Topic Author
Posts: 1275
Joined: Tue Jun 23, 2015 2:35 pm

Re: {ASK} BGP-def route

Thu May 25, 2023 8:15 am

further on that:
i have replaced R1 with v6, just for testing, and yes it does send the default route via BGP signaling to R3 -VRF table
 
wiseroute
Member
Member
Posts: 352
Joined: Sun Feb 05, 2023 11:06 am

Re: {ASK} BGP-def route

Thu May 25, 2023 8:22 am

hello nichky,

what do you mean by

ebgp==cpe?

which router actually hold the 0/0? r1? r3?
 
User avatar
nichky
Forum Guru
Forum Guru
Topic Author
Posts: 1275
Joined: Tue Jun 23, 2015 2:35 pm

Re: {ASK} BGP-def route

Thu May 25, 2023 8:32 am

1. eBGP to the client

2. R1
 
wiseroute
Member
Member
Posts: 352
Joined: Sun Feb 05, 2023 11:06 am

Re: {ASK} BGP-def route

Thu May 25, 2023 8:44 am

aa.. you mean your pe as bgp to ce?

ok. so, from which router this pe has the bgp peering info? directly to rr or just from regular neighbors?
 
User avatar
nichky
Forum Guru
Forum Guru
Topic Author
Posts: 1275
Joined: Tue Jun 23, 2015 2:35 pm

Re: {ASK} BGP-def route

Thu May 25, 2023 9:05 am

1- yes

2- see the topology

pretty sure that this is not implemented on v7 , but i want someone to confirm them.
 
wiseroute
Member
Member
Posts: 352
Joined: Sun Feb 05, 2023 11:06 am

Re: {ASK} BGP-def route

Thu May 25, 2023 9:21 am

hello,
2- see the topology
well, i just want to make sure your network topology.

more over i saw that you already made it worked. from the second code.

i don't think i can give you any confirmation about your v7 thoughts since I have left the industry long enough. now I'm just sharing what I used to know with the community

maybe @mrz or others could give some light 👍🏻
 
User avatar
spippan
Member
Member
Posts: 333
Joined: Wed Nov 12, 2014 1:00 pm
Location: Austria

Re: {ASK} BGP-def route

Mon Sep 04, 2023 3:36 pm

is VRF import/export from one VRF to anothet VRF on the same router finally working on rOS v7??
 
User avatar
nichky
Forum Guru
Forum Guru
Topic Author
Posts: 1275
Joined: Tue Jun 23, 2015 2:35 pm

Re: {ASK} BGP-def route

Mon Sep 04, 2023 8:18 pm

was there any issues, i haven't noticed anything like that
 
User avatar
spippan
Member
Member
Posts: 333
Joined: Wed Nov 12, 2014 1:00 pm
Location: Austria

Re: {ASK} BGP-def route

Mon Sep 04, 2023 9:25 pm

was there any issues, i haven't noticed anything like that
since ros 7.9+ till 7.12b3 BGP VPN (VRF import/export) does not work

if anything of that helps... the routes are not getting propagated among the VRFs/routing tables


[admin@RRZ] > ip vrf export terse 
# 2023-09-04 18:18:58 by RouterOS 7.12beta3
# software id = 
#
/ip vrf add interfaces="e1.151(rz),Lo0" name=rz
/ip vrf add interfaces="e1.1113(39390)" name=39390
/ip vrf add interfaces="e1.1125(39496)" name=39496
/ip vrf add interfaces="e1.1128(39510)" name=39510


[admin@RRZ] > rou bg vpn export terse 
# 2023-09-04 18:19:37 by RouterOS 7.12beta3
# software id = 
#
/routing bgp vpn add disabled=no export.route-targets=65990:39390 import.route-targets=65990:1,65990:39390 \
 .router-id=39390 label-allocation-policy=per-prefix name=39390 route-distinguisher=65990:39390 vrf=39390
/routing bgp vpn add disabled=no export.route-targets=65990:39496 import.route-targets=65990:1,65990:39496 \
 .router-id=39496 label-allocation-policy=per-prefix name=39496 route-distinguisher=65990:39496 vrf=39496
/routing bgp vpn add disabled=no export.route-targets=65990:39510 import.route-targets=65990:1,65990:39510 \
 .router-id=39510 label-allocation-policy=per-prefix name=39510 route-distinguisher=65990:39510 vrf=39510
/routing bgp vpn add disabled=no export.route-targets=65990:1 import.route-targets=65990:1,65990:39390,65990:39496,65990:39510 \
 .router-id=rz label-allocation-policy=per-prefix name=rz route-distinguisher=65990:1 vrf=rz


[admin@RRZ] > rou rou pri
Flags: A - ACTIVE; c - CONNECT, s - STATIC, d - DHCP; H - HW-OFFLOADED
Columns: DST-ADDRESS, GATEWAY, AFI, DISTANCE, SCOPE, TARGET-SCOPE, IMMEDIATE-GW
DST-ADDRESS               GATEWAY               AFI   DISTANCE  SCOPE  TARGET-SCOPE  IMMEDIATE-GW            
Ad  0.0.0.0/0                 192.168.77.1          ip4        111     30            10  192.168.77.1%ether5-mgmt
Ac  192.168.77.0/24           ether5-mgmt           ip4          0     10                ether5-mgmt             
Ac  172.16.122.0/29           e1.1125(39496)@39496  ip4          0     10                e1.1125(39496)          
Ac  172.16.121.152/29         e1.1128(39510)@39510  ip4          0     10                e1.1128(39510)          
As  10.58.2.88/32             e1.1113(39390)@39390  ip4          1     30            10  e1.1113(39390)          
Ac  172.16.121.208/29         e1.1113(39390)@39390  ip4          0     10                e1.1113(39390)          
As  0.0.0.0/0                 192.168.77.1          ip4          1     30            10  192.168.77.1%ether5-mgmt
Ac  10.58.151.0/24            e1.151(rz)@rz         ip4          0     10                e1.151(rz)              
Ac  172.16.105.1/32           Lo0@rz                ip4          0     10                Lo0                     
Ac  fe80::%ether1-RBGK/64     ether1-RBGK           ip6          0     10                ether1-RBGK             
Ac  fe80::%ether2/64          ether2                ip6          0     10                ether2                  
Ac  fe80::%ether3/64          ether3                ip6          0     10                ether3                  
Ac  fe80::%ether4/64          ether4                ip6          0     10                ether4                  
Ac  fe80::%ether5-mgmt/64     ether5-mgmt           ip6          0     10                ether5-mgmt             
Ac  fe80::%e1.1125(39496)/64  e1.1125(39496)@39496  ip6          0     10                e1.1125(39496)          
Ac  fe80::%e1.1128(39510)/64  e1.1128(39510)@39510  ip6          0     10                e1.1128(39510)          
Ac  fe80::%e1.1113(39390)/64  e1.1113(39390)@39390  ip6          0     10                e1.1113(39390)          
Ac  fe80::%e1.151(rz)/64      e1.151(rz)@rz         ip6          0     10                e1.151(rz)              
Ac  fe80::%Lo0/64             Lo0@rz                ip6          0     10                Lo0                     
A H ether1-RBGK                                     link         0                                               
A H ether2                                          link         0                                               
A H ether3                                          link         0                                               
A H ether4                                          link         0                                               
A H ether5-mgmt                                     link         0                                               
A H e1.1125(39496)                                  link         0                                               
A H e1.1113(39390)                                  link         0                                               
A H e1.151(rz)                                      link         0                                               
A H Lo0                                             link         0                                               



[admin@RRZ] > ip add pri
Flags: D - DYNAMIC
Columns: ADDRESS, NETWORK, INTERFACE
#   ADDRESS            NETWORK         INTERFACE     
0   172.16.121.209/29  172.16.121.208  e1.1113(39390)
1   172.16.122.1/29    172.16.122.0    e1.1125(39496)
2   172.16.121.153/29  172.16.121.152  e1.1128(39510)
3   10.58.151.3/24     10.58.151.0     e1.151(rz)    
4   172.16.105.1/32    172.16.105.1    Lo0           
5 D 192.168.77.138/24  192.168.77.0    ether5-mgmt   

 
User avatar
spippan
Member
Member
Posts: 333
Joined: Wed Nov 12, 2014 1:00 pm
Location: Austria

Re: {ASK} BGP-def route

Mon Sep 04, 2023 9:33 pm

here the rOS v7.8 in contrast with the same configuration


[admin@RRZ] > ip vrf export terse 
# sep/04/2023 18:28:37 by RouterOS 7.8
# software id = 
#
/ip vrf add interfaces="e1.151(rz),Lo0" name=rz
/ip vrf add interfaces="e1.1113(39390)" name=39390
/ip vrf add interfaces="e1.1125(39496)" name=39496
/ip vrf add interfaces="e1.1128(39510)" name=39510




[admin@RRZ] > rou bg vpn export terse 
# sep/04/2023 18:28:44 by RouterOS 7.8
# software id = 
#
/routing bgp vpn add disabled=no export-route-targets=65990:39390 import-route-targets=65990:1,65990:39390 label-allocation-policy=per-prefix route-distinguisher=65990:3
9390 vrf=39390
/routing bgp vpn add disabled=no export-route-targets=65990:39496 import-route-targets=65990:1,65990:39496 label-allocation-policy=per-prefix route-distinguisher=65990:3
9496 vrf=39496
/routing bgp vpn add disabled=no export-route-targets=65990:39510 import-route-targets=65990:1,65990:39510 label-allocation-policy=per-prefix route-distinguisher=65990:3
9510 vrf=39510
/routing bgp vpn add disabled=no export-route-targets=65990:1 import-route-targets=65990:1,65990:39390,65990:39496,65990:39510 label-allocation-policy=per-prefix route-d
istinguisher=65990:1 vrf=rz




[admin@RRZ] > rou rou pri
Flags: A - ACTIVE; c, s, d, y, a - SLAAC; H - HW-OFFLOADED
Columns: DST-ADDRESS, GATEWAY, AFI, DISTANCE, SCOPE, TARGET-SCOPE, IMMEDIATE-GW
    DST-ADDRESS                    GATEWAY               AFI   DISTANCE  SCOPE  TARGET-SCOPE  IMMEDIATE-GW            
Ad  0.0.0.0/0                      192.168.77.1          ip4        111     30            10  192.168.77.1%ether5-mgmt
Ac  192.168.77.0/24                ether5-mgmt           ip4          0     10                ether5-mgmt             
AyH 0.0.0.0/0                      192.168.77.1          ip4          0     30            10                          
Ay  10.58.151.0/24                 e1.151(rz)@rz         ip4          0     10             5  e1.151(rz)              
Ay  172.16.105.1/32                Lo0@rz                ip4          0     10             5  Lo0                     
Ac  172.16.122.0/29                e1.1125(39496)@39496  ip4          0     10                e1.1125(39496)          
AyH 0.0.0.0/0                      192.168.77.1          ip4          0     30            10                          
Ay  10.58.151.0/24                 e1.151(rz)@rz         ip4          0     10             5  e1.151(rz)              
Ay  172.16.105.1/32                Lo0@rz                ip4          0     10             5  Lo0                     
Ac  172.16.121.152/29              e1.1128(39510)@39510  ip4          0     10                e1.1128(39510)          
AyH 0.0.0.0/0                      192.168.77.1          ip4          0     30            10                          
As  10.58.2.88/32                  e1.1113(39390)@39390  ip4          1     30            10  e1.1113(39390)          
Ay  10.58.151.0/24                 e1.151(rz)@rz         ip4          0     10             5  e1.151(rz)              
Ay  172.16.105.1/32                Lo0@rz                ip4          0     10             5  Lo0                     
Ac  172.16.121.208/29              e1.1113(39390)@39390  ip4          0     10                e1.1113(39390)          
As  0.0.0.0/0                      192.168.77.1          ip4          1     30            10  192.168.77.1%ether5-mgmt
Ay  10.58.2.88/32                  e1.1113(39390)@39390  ip4          0     30            10  e1.1113(39390)          
Ac  10.58.151.0/24                 e1.151(rz)@rz         ip4          0     10                e1.151(rz)              
Ac  172.16.105.1/32                Lo0@rz                ip4          0     10                Lo0                     
Ay  172.16.121.152/29              e1.1128(39510)@39510  ip4          0     10             5  e1.1128(39510)          
Ay  172.16.121.208/29              e1.1113(39390)@39390  ip4          0     10             5  e1.1113(39390)          
Ay  172.16.122.0/29                e1.1125(39496)@39496  ip4          0     10             5  e1.1125(39496)          
Ac  fe80::%ether1-RBGK/64          ether1-RBGK           ip6          0     10                ether1-RBGK             
Ac  fe80::%ether2/64               ether2                ip6          0     10                ether2                  
Ac  fe80::%ether3/64               ether3                ip6          0     10                ether3                  
Ac  fe80::%ether4/64               ether4                ip6          0     10                ether4                  
Ac  fe80::%ether5-mgmt/64          ether5-mgmt           ip6          0     10                ether5-mgmt             
Ac  fe80::%e1.1125(39496)/64       e1.1125(39496)@39496  ip6          0     10                e1.1125(39496)          
Ac  fe80::%e1.1128(39510)/64       e1.1128(39510)@39510  ip6          0     10                e1.1128(39510)          
Ac  fe80::%e1.1113(39390)/64       e1.1113(39390)@39390  ip6          0     10                e1.1113(39390)          
Ac  fe80::%e1.151(rz)/64           e1.151(rz)@rz         ip6          0     10                e1.151(rz)              
Ac  fe80::%Lo0/64                  Lo0@rz                ip6          0     10                Lo0                     
Ay  65990:1                        192.168.77.1          vpn4         0     30            10  192.168.77.1%ether5-mgmt
Ay  10.58.151.0/24&65990:1         e1.151(rz)@rz         vpn4         0     10             5  e1.151(rz)              
Ay  172.16.105.1/32&65990:1        Lo0@rz                vpn4         0     10             5  Lo0                     
Ay  10.58.2.88/32&65990:39390      e1.1113(39390)@39390  vpn4         0     30            10  e1.1113(39390)          
Ay  172.16.121.208/29&65990:39390  e1.1113(39390)@39390  vpn4         0     10             5  e1.1113(39390)          
Ay  172.16.122.0/29&65990:39496    e1.1125(39496)@39496  vpn4         0     10             5  e1.1125(39496)          
Ay  172.16.121.152/29&65990:39510  e1.1128(39510)@39510  vpn4         0     10             5  e1.1128(39510)          
A H ether1-RBGK                                          link         0                                               
A H ether2                                               link         0                                               
A H ether3                                               link         0                                               
A H ether4                                               link         0                                               
A H ether5-mgmt                                          link         0                                               
A H e1.1125(39496)                                       link         0                                               
A H e1.1128(39510)                                       link         0                                               
A H e1.1113(39390)                                       link         0                                               
A H e1.151(rz)                                           link         0                                               
A H Lo0                                                  link         0                                               




[admin@RRZ] > ip add pri
Flags: D - DYNAMIC
Columns: ADDRESS, NETWORK, INTERFACE
#   ADDRESS            NETWORK         INTERFACE     
0   172.16.121.209/29  172.16.121.208  e1.1113(39390)
1   172.16.122.1/29    172.16.122.0    e1.1125(39496)
2   172.16.121.153/29  172.16.121.152  e1.1128(39510)
3   10.58.151.3/24     10.58.151.0     e1.151(rz)    
4   172.16.105.1/32    172.16.105.1    Lo0           
5 D 192.168.77.138/24  192.168.77.0    ether5-mgmt   

Who is online

Users browsing this forum: Ahrefs [Bot] and 70 guests