Substitue Cisco CPE device with Mikrotik

Greetings,
I’ve managed to dump the configuration of old, but still operational Cisco 800 series router, with one goal in mind - to retire it and mimic configuration to my existing Mikrotik CRS. In such a way I became “provider free” and free some space up :slight_smile: This Cisco router serves as gateway for my own router and also as a VoIP gateway for some phones obviously :slight_smile: I was expecting a trunk port and two VLAN interfaces. So far, so good, but non the less this configuration is mind boggling for me. It’s very simple, but I don’t know how to handle two pairs of VLANS and one VRF. Can anyone help translate it to Mirkrotik? So here it is stripped version.

ip vrf Voice
description Voice
rd 10.11.12.1:1
route-target export 10.11.12.1:1
route-target import 10.11.12.1:1
maximum routes 10 90

vlan 58
name Voice
!
vlan 59
name Internet

interface FastEthernet0
description port for Internet
switchport access vlan 59
!
interface FastEthernet1
description port for Voice
switchport access vlan 58

interface FastEthernet4
description 1558Voice&1559Internet
no ip address
shutdown
duplex auto
speed auto

!
interface FastEthernet4.1558
description for_Voice
encapsulation dot1Q 1558
ip vrf forwarding Voice
ip address 10.11.12.20 255.255.255.254
no cdp enable

!
interface FastEthernet4.1559
description for_Inet
encapsulation dot1Q 1559
ip address 200.201.202.2 255.255.255.254
no cdp enable

interface Vlan1
no ip address
shutdown
!
interface Vlan58
description customer Voice
ip vrf forwarding Voice
ip address 10.11.15.1 255.255.255.248
!
interface Vlan59
description customer Inet
ip address 200.201.202.3 255.255.255.252
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 FastEthernet4.1559 200.201.202.1 name default-route-for-Inet
ip route vrf Voice 0.0.0.0 0.0.0.0 FastEthernet4.1558 10.11.12.19 name default-route-for-Voice


That’s the interesting part. I’m connected behind this gate and using Vlan59 IP as default gateway. For the phones - I don’t know nothing, but I can test them using simple dialer. It’s not the first time I’m encountering VLANS, but not in a such fashion with vrfs. I’m using VLANs through bridge VLAN filtering and I’m very happy with that:) If some one can translate this configuration - please help :slight_smile: I will buy you some beer on spot :wink:

p.s it’s way more confusing with ip address.

You can accompish the same thing using simple policy based routing in mikrotik. Although with the way you obfuscated ip’s both private and public, is the worst way you could possible do, makes it 10x harder to try and follow along and offer help. Please fix if you require further help.

https://help.mikrotik.com/docs/display/ROS/Policy+Routing

Looking at this further vrf might be easier.

Just create a voice vrf and add both eth4.1558 and vlan 58 to the vrf

ip vrf add name=voice interfaces=[interfaces] place-before=0

then create your vrf route (EDITED wrong command before)

ip route add dst-address=0.0.0.0/0 gateway=10.11.12.19@voice routing-table=voice