Community discussions

MikroTik App
 
Sadam4090
just joined
Topic Author
Posts: 15
Joined: Fri Mar 05, 2010 2:01 pm

PPPoE over BGP based VPLS on a mesh network

Mon Jun 15, 2020 9:17 pm

Good day

I have difficulty setting up BGP based VPLS. I have one PPPoE server at my office. We currently running our hole network as a bridge network and want to implement BGP/OSPF. After weeks of struggle on OSPF with MPLS/VPLS, we didn't get it right. OSPF worked well but once I set up MPLS then I get on RouterA the MPLS LDP Neighbor of RouterB but when I check RouterB LDP neighbor there is nothing so after google'ing and struggling we decided to set up BGP with MPLS/VPLS and found the same results so I tried to set up BGP based VPLS and found out that it actually works better so far (Not sure if the is the best option if the network gets larger).

So in my config below I only added the Office, Site A, and Site B config. I can add the rest but if I can manage to sort out these three sites then I guess the rest would be easy. Site A is currently working perfectly when I plug in a PPPoE client router/CPE on ether4 where the antennas of that high site plugin. The PPPoE dialup of the client CPE did go through the dynamically added vpls to the main router at the office. But from there Site B, C, D does not want to work. What I noticed on the main router at the office, once the second site connects through the BGP peer the router add's the dynamic VPLS to the bridge-vpls-test but the PPPoE client does not want to connect.

See below the config of the 3 sites. I hope my descriptions are good enough explained.
#Main Mikrotik PPPoE Consentrator Head Office
/interface ethernet
set [ find default-name=ether6 ] comment="Link to Wireless Clients"
/interface pppoe-server server
add authentication=pap,chap default-profile="ISP Wireless Clients" disabled=no interface=bridge-vpls-test keepalive-timeout=60 max-mru=1480 max-mtu=1480 service-name="ISP Wireless Clients iBGP"
/interface bridge
add name=bridge-vpls-test protocol-mode=none
add fast-forward=no name=loopback protocol-mode=none
/ip address
add address=10.10.0.254/30 comment="iBGP Network" interface=ether6 network=10.10.0.252
add address=127.0.0.2 comment="For local Services (iBGP & VPLS)" interface=loopback network=127.0.0.2
/routing bgp instance
set default disabled=yes
add as=65534 client-to-client-reflection=no comment=ISP_Office name=bgp65534_Mikrotik_Office_SiteA router-id=127.0.0.2
/routing bgp network
add comment="SiteA" network=10.10.0.252/30 synchronize=no
add comment=Loopback network=127.0.0.2/32 synchronize=no
/routing bgp peer
add address-families=ip,l2vpn default-originate=always instance=bgp65534_Mikrotik_Office_SiteA name=peer_65533_SiteA out-filter=bgp-out remote-address=10.10.0.253 remote-as=65533 ttl=default update-source=ether6
/interface vpls bgp-vpls
add bridge=bridge-mpls-test bridge-cost=0 bridge-horizon=1 export-route-targets=1:1 import-route-targets=1:1 name=bridge-vpls route-distinguisher=1:1 site-id=2


#Site A-main
/interface bridge
add name=bridge1-172.16.3.0/24
add name=loopback protocol-mode=none
/interface ethernet
set [ find default-name=ether1 ] comment="Link to Mikrotik Office"
set [ find default-name=ether2 ] comment="Link to SiteB"
set [ find default-name=ether3 ] comment="Link to SiteC"
set [ find default-name=ether5 ] comment=Management
/routing bgp instance
set default disabled=yes
add as=65533 client-to-client-reflection=no name=bgp65533_SiteA redistribute-connected=yes router-id=127.0.0.3
/interface bridge port
add bridge=bridge1-172.16.3.0/24 interface=ether4
/interface vpls bgp-vpls
add bridge=bridge1-172.16.3.0/24 bridge-cost=0 bridge-horizon=1 export-route-targets=1:1 import-route-targets=1:1 name=bridge-vpls route-distinguisher=1:1 site-id=3
/ip address
add address=192.168.1.150/24 interface=ether5 network=192.168.1.0
add address=10.10.0.253/30 interface=ether1 network=10.10.0.252
add address=10.10.1.254/30 interface=ether2 network=10.10.1.252
add address=127.0.0.3 interface=loopback network=127.0.0.3
add address=10.10.4.254/30 interface=ether3 network=10.10.4.252
add address=172.16.3.254/24 interface=bridge1-172.16.3.0/24 network=172.16.3.0
/ip dns
set allow-remote-requests=yes servers=8.8.8.8
/ip firewall nat
add action=masquerade chain=srcnat
/routing bgp network
add comment="Mikrotik Office" network=10.10.0.252/30 synchronize=no
add comment="Site B" network=10.10.1.252/30 synchronize=no
add comment=SiteC network=10.10.4.252/30 synchronize=no
add comment=Loopback network=127.0.0.3/32 synchronize=no
add comment="172.16.3.0/24 Range" network=172.16.3.0/24 synchronize=no
/routing bgp peer
add address-families=ip,l2vpn default-originate=if-installed instance=bgp65533_SiteA name=peer_65534_mikrotik_office remote-address=10.10.0.254 remote-as=65534 ttl=default update-source=ether1
add address-families=ip,l2vpn default-originate=if-installed instance=bgp65533_SiteA name=peer_65532_site_b remote-address=10.10.1.253 remote-as=65532 ttl=default update-source=ether2
add address-families=ip,l2vpn default-originate=if-installed instance=bgp65533_SiteA name=peer_65531_site_c remote-address=10.10.4.253 remote-as=65531 ttl=default update-source=ether3
/system clock
set time-zone-name=Africa/Johannesburg
/system identity
set name="iBGP Mikrotik Site A"
/system ntp client
set enabled=yes primary-ntp=196.4.160.4 secondary-ntp=196.26.5.10
/system package update
set channel=long-term

#Site B
/interface bridge
add name=bridge1-172.16.4.0/24
add name=loopback protocol-mode=none
/interface ethernet
set [ find default-name=ether1 ] comment="Link to Site A"
set [ find default-name=ether2 ] comment="Link to Site D"
set [ find default-name=ether3 ] 
set [ find default-name=ether4 ] 
set [ find default-name=ether5 ] comment=Management
/routing bgp instance
set default disabled=yes
add as=65532 client-to-client-reflection=no name=bgp65532_SiteB redistribute-connected=yes router-id=127.0.0.4
/interface bridge port
add bridge=bridge1-172.16.4.0/24 interface=ether4
/interface vpls bgp-vpls
add bridge=bridge1-172.16.4.0/24 bridge-cost=0 bridge-horizon=1 export-route-targets=1:1 import-route-targets=1:1 name=bridge-vpls route-distinguisher=1:1 site-id=4
/ip address
add address=192.168.1.151/24 interface=ether5 network=192.168.1.0
add address=10.10.1.253/30 interface=ether1 network=10.10.1.252
add address=10.10.2.254/30 interface=ether2 network=10.10.2.252
add address=127.0.0.4 interface=loopback network=127.0.0.4
add address=172.16.4.254/24 interface=bridge1-172.16.4.0/24 network=172.16.4.0
/ip dns
set allow-remote-requests=yes servers=8.8.8.8
/ip firewall nat
add action=masquerade chain=srcnat
/routing bgp network
add network=10.10.1.252/30 synchronize=no
add network=10.10.2.252/30 synchronize=no
add network=127.0.0.4/32 synchronize=no
add network=172.16.4.0/24 synchronize=no
/routing bgp peer
add address-families=ip,l2vpn default-originate=if-installed instance=bgp65532_SiteB name=peer_65533_site_a remote-address=10.10.1.254 remote-as=65533 ttl=default update-source=ether1
add address-families=ip,l2vpn default-originate=if-installed instance=bgp65532_SiteB name=peer_65533_site_d remote-address=10.10.2.253 remote-as=65530 ttl=default update-source=loopback
/system clock
set time-zone-name=Africa/Johannesburg
/system identity
set name="iBGP Mikrotik Site B"
/system package update
set channel=long-term
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: PPPoE over BGP based VPLS on a mesh network

Tue Jun 16, 2020 12:54 am

Tried to send you a PM but seems stuck in my outbox.

Quick look of your config, it seems you are trying to do VPLS with eBGP. According to the RFC it should be possible, but I am not sure if it is supported by Mikrotik.

I can assist with the config, I am based in Randburg. Contact info under my profile
 
Sadam4090
just joined
Topic Author
Posts: 15
Joined: Fri Mar 05, 2010 2:01 pm

Re: PPPoE over BGP based VPLS on a mesh network

Tue Jun 16, 2020 3:13 pm

Tried to send you a PM but seems stuck in my outbox.

Quick look of your config, it seems you are trying to do VPLS with eBGP. According to the RFC it should be possible, but I am not sure if it is supported by Mikrotik.

I can assist with the config, I am based in Randburg. Contact info under my profile
Thank you I will give you a call tomorrow morning from the land line.
Regards

Who is online

Users browsing this forum: No registered users and 13 guests