Community discussions

MikroTik App
 
volga629
newbie
Topic Author
Posts: 39
Joined: Tue Nov 19, 2013 6:21 am

BGP VRF broken on CHR v7 rc4

Fri Oct 08, 2021 2:18 am

Hello Everyone,
I am trying configure BGP with VRF and it use wrong source IP to establish BGP session were in BGP configuration explicitly set SOURCE IP

As you can see it following default gateway configuration and NOT vrf addressing.


Mikrotik IP
admin@MikroTik] /routing/bgp/connection> /ip/dhcp-client/print 
Columns: INTERFACE, USE-PEER-DNS, ADD-DEFAULT-ROUTE, STATUS, ADDRESS
# INTERFACE  USE-PEER-DNS  ADD-DEFAULT-ROUTE  STATUS  ADDRESS         
0 ether1     yes           yes                bound   10.41.100.154/24
[admin@MikroTik] /routing/bgp/connection> 


BGP configuration
[admin@MikroTik] /routing/bgp/connection> print detail 
Flags: D - dynamic, X - disabled, I - inactive 
 0   name="overlay-192.0.2.2" 
     remote.address=192.0.2.2 .as=65530 
     local.address=192.0.2.1 .role=ebgp 
     connect=yes listen=yes routing-table=OVERLAY vrf=OVERLAY router-id=192.0.2.1 templates=overlay as=65366 nexthop-choice=force-self multihop=yes address-families=ip 
     output.default-originate=always 
     
 admin@MikroTik] /routing/bgp/connection> /routing/bgp/template/print 
Flags: * - default; X - disabled, I - inactive 
 0 *  name="default" routing-table=main as=65530 

 1    name="overlay" routing-table=OVERLAY vrf=OVERLAY router-id=OVERLAY as=65366 nexthop-choice=force-self multihop=yes address-families=ip 
      output.default-originate=always


Connections Tracking
[admin@MikroTik] /routing/bgp/connection> /ip/firewall/connection/print 
Flags: S - SEEN-REPLY; A - ASSURED; C - CONFIRMED
Columns: PROTOCOL, SRC-ADDRESS, DST-ADDRESS, TCP-STATE, TIMEOUT, ORIG-RATE, REPL-RATE, ORIG-PACKETS, REPL-PACKETS, ORIG-BYTES, REPL-BYTES
#     PROTOCOL  SRC-ADDRESS          DST-ADDRESS       TCP-STATE    TIMEOUT    ORIG-RATE  REPL-RATE  ORIG-PACKETS  REPL-PACKETS  ORIG-BYTES  REPL-BYTES
0 SAC tcp       10.41.100.153:40512  10.41.100.154:22  established  1d         4.9kbps    6.2kbps           1 847         1 149     143 180     251 608
1   C tcp       10.41.100.154:50844  192.0.2.2:179     syn-sent     3s         480bps     0bps                  3             0         180           0
2 SAC tcp       10.41.100.153:36344  10.41.100.154:80  established  23h59m49s  0bps       0bps                 96            95       5 873       5 319
3   C tcp       10.41.100.154:57098  192.0.2.3:179     syn-sent     3s         480bps     0bps                  3             0         180           0
[admin@MikroTik] /routing/bgp/connection> 

Who is online

Users browsing this forum: hzdrro and 5 guests