gytisb
1
hello,
I am new here. Can any one help me to convert from Cisco command lines to RouterOS. I using RouterOS v3.24.
router bgp 65530
bgp log-neighbor-changes
neighbor 10.0.0.1 remote-as 33922
neighbor 10.0.1.1 remote-as 65510
neighbor 10.0.2.1 remote-as 64518
!
address-family ipv4
neighbor 10.0.0.1 activate
neighbor 10.0.0.1 remove-private-AS
neighbor 10.0.0.1 filter-list 3 in
neighbor 10.0.1.1 activate
neighbor 10.0.1.1 remove-private-AS
neighbor 10.0.1.1 allowas-in
neighbor 10.0.1.1 filter-list 6 in
neighbor 10.0.2.1 activate
neighbor 10.0.2.1 remove-private-AS
neighbor 10.0.2.1 allowas-in
neighbor 10.0.2.1 filter-list 5 in
exit-address-family
!
ip as-path access-list 3 permit ^33922$
ip as-path access-list 3 deny .*
ip as-path access-list 5 permit ^64518$
ip as-path access-list 5 deny .*
ip as-path access-list 6 permit ^65510$
ip as-path access-list 6 deny .*
!
thanks
I would start by reading over this page and comparing the cisco values with those you need to set on the mikrotik.
http://wiki.mikrotik.com/wiki/BGP
This should give you a general idea of how the mikrotik config is created and you should be able to replicate what you have there.
I have already made and everything works without filters. But I need a filter and it encountered a problem. Can not create these simple filters.
…
neighbor 84.32.30.65 remove-private-AS
neighbor 84.32.30.65 filter-list 3 in
…
ip as-path access-list 2 permit ^$
ip as-path access-list 3 permit ^33922$
ip as-path access-list 3 deny .*
ip as-path access-list 4 deny ^$
ip as-path access-list 5 permit ^64518$
ip as-path access-list 5 deny .*
run this and post so we can correct mistakes:
/routing filter export
Do I understand correctly these filters?
Cisco:
ip as-path access-list 3 permit ^33922$
ip as-path access-list 3 deny .*
MikroTik:
add action=discard bgp-as-path=“!^33922$” chain=filter_Rov comment=“” disabled=no invert-match=no protocol=bgp
I can not find this command “neighbor 84.32.30.65 remove-private-AS” inversion of the Mikrotik. Please help.