Community discussions

MikroTik App
just joined
Topic Author
Posts: 1
Joined: Tue Sep 13, 2022 12:20 pm

Is this translation from cisco to mikrotik correct?

Tue Sep 13, 2022 1:32 pm


I am a recent graduate in networking and the company I have just started working for has asked me to do a Cisco to Mikrotik conversion.

After some research I have made the following translation, but I don't know if it is completely correct:

The cisco code is as follow
router ospf 1
 network area 0
 network area 0
 default-information originate metric-type 1
router bgp 120523
 bgp log-neighbor-changes
 network A.A.A.A mask
 network B.B.B.B mask
 neighbor PruebaiBGP peer-group
 neighbor PruebaiBGP remote-as 120523
 neighbor PruebaiBGP shutdown
 neighbor PruebaiBGP update-source Loopback0
 neighbor PruebaiBGP next-hop-self
 neighbor PruebaiBGP route-map OnlyDefault in
 neighbor PruebaiBGP route-map OnlyDefault out
 neighbor peer-group PruebaiBGP
 neighbor peer-group PruebaiBGP
 neighbor C.C.C.C remote-as 7689
 neighbor C.C.C.C route-map OnlyDefault in
 neighbor C.C.C.C route-map OnlyPruebaPublicas out
ip forward-protocol nd
no ip http server
no ip http secure-server
ip route C.C.C.C
ip route
ip ospf name-lookup
ip prefix-list OnlyDefault_PL seq 5 permit
ip prefix-list OnlyPruebaPublicas_PL seq 5 permit A.A.A.A/21 le 24
logging origin-id hostname
logging facility local1
logging D.D.D.D
access-list 1 permit
access-list 1 permit
access-list 1 permit
access-list 1 permit E.E.E.E
access-list 1 deny   any log
access-list 2 permit
access-list 2 permit
access-list 2 permit
access-list 2 permit E.E.E.E
access-list 2 deny   any log
access-list 11 permit F.F.F.F
access-list 12 permit G.G.G.G
access-list 21 permit
access-list 21 permit
access-list 22 permit E.E.E.E
access-list 23 permit I.I.I.I
access-list 24 permit A.A.A.A
access-list 25 permit B.B.B.B
access-list 190 permit ip G.G.G.G any
access-list 190 deny   ip any any
route-map OnlyPruebaPublicas permit 10
 match ip address prefix-list OnlyPruebaPublicas_PL
route-map ip-from-isp permit 11
 match ip address 11
 set ip default next-hop C.C.C.C
route-map ip-from-isp permit 12
 match ip address 12
 set ip default next-hop H.H.H.H
route-map OnlyDefault permit 10
 match ip address prefix-list OnlyDefault_PL

The Mikrotik code I have translated is as follows:
/routing bgp instance
set default as=120523
/routing ospf instance
set [ find default=yes ] router-id=
/ip firewall filter
add action=accept chain=forward src-address=
add action=accept chain=forward src-address=
add action=accept chain=forward src-address=
add action=accept chain=forward src-address=E.E.E.E/28
add action=accept chain=forward src-address=F.F.F.F/26
add action=accept chain=forward src-address=G.G.G.G/24
add action=accept chain=forward src-address=I.I.I.I/28
add action=accept chain=forward src-address=A.A.A.A/26
add action=accept chain=forward src-address=B.B.B.B/24
add action=drop chain=forward
/ip route
add distance=1 gateway=C.C.C.C
add distance=1 dst-address= gateway=
/routing bgp network
add network=A.A.A.A/24 synchronize=no
add network=B.B.B.B/23 synchronize=no
/routing bgp peer
add in-filter=FT-IN name=OpenteliBGP3 out-filter=FT-OUT remote-address=\
    C.C.C.C remote-as=7689 ttl=default
add name=OpenteliBGP1 remote-address= remote-as=120523 ttl=default
add name=OpenteliBGP2 remote-address= remote-as=120523 ttl=default
/routing ospf network
add area=backbone network=
add area=backbone network=

Is the translation correct or am I missing some things?


Who is online

Users browsing this forum: No registered users and 2 guests