Mikrotik VRF Lite

#Mikrotik#VRF#Lite

/interface ethernet
set [ find default-name=ether2 ] name=ether2-WAN
set [ find default-name=ether3 ] name=ether3-LAN-1
set [ find default-name=ether4 ] name=ether4-LAN-2

/routing bgp instance
add client-to-client-reflection=no name=GGC redistribute-connected=yes redistribute-other-bgp=yes router-id=192.168.24.1 routing-table=GGC

/ip address
add address=192.168.10.242/24 interface=ether1 network=192.168.10.0
add address=192.168.23.1/30 interface=ether3-LAN-1 network=192.168.23.0
add address=192.168.24.1/30 interface=ether4-LAN-2 network=192.168.24.0
add address=192.168.12.2/30 interface=ether2-WAN network=192.168.12.0

/ip route vrf
add interfaces=ether3-LAN-1,ether4-LAN-2,ether2-WAN route-distinguisher=1:1 routing-mark=GGC

/routing bgp peer
add instance=GGC name=peer-4 nexthop-choice=force-self remote-address=192.168.24.2 remote-as=65531 ttl=default
add instance=GGC name=peer-1 nexthop-choice=force-self remote-address=192.168.12.1 remote-as=65529 ttl=default

You may also like...

Leave a Reply

Your email address will not be published.