R
R
Ruslan-Strannik2019-04-17 12:59:58
Mikrotik
Ruslan-Strannik, 2019-04-17 12:59:58

Communication cisco mikrotik trunk.. How to do it right?

Good afternoon.
Something I can't get out of this bunch :)
From cisco to Mikrotik, optics are stretched. it is necessary to transfer several vlans by a trunk.
on MT created vlans in the bridge
/interface bridge
add name=bridgevl5
/interface bridge port
add bridge=bridgevl5 interface=ether5 pvid=5
/interface bridge vlan
add bridge=bridgevl5 tagged=ether4 untagged=bridgevl5 vlan-ids=5
hung dhcp client on this bridge and successfully went online (connected to port 5 and from the side of cisco access mode)
Next, I also configure the necessary vlans. tagget I specify the sfp1 interface everywhere.
unchecked nonegotiate on the sfp1 interface. (I read somewhere that this is necessary)
I take the MT to the right place, I stick the sfp transceiver, the interface rises, the diode is on, but there is an abyss behind it.
from the cisco side I write
inter gi0 / 4
switchport trunk encapsulation dot1q
switchport mode trunk
no shut
in response, the interface does not rise. in the logs
%LINK-5-CHANGED: Interface GigabitEthernet0/4, changed state to administratively
down (notconnect) at the same time everything is lit on Mikrot :) I also tried a configuration like inter gi0 / 4 switchport trunk encapsulation dot1q switchport trunk allowed vlan 5,21,27,50,116
switchport mode trunk
speed nonegotiate
I do shut
no shut
and I see the same thing in the logs...
CHAYDNT? help with advice please :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Zhurkin, 2019-05-18
@Ruslan-Strannik

Here I already answered on the vlan settings, see his
Vlan, VOIP, grandstrem, mikrotik. How to isolate traffic?

R
Ruslan-Strannik, 2019-04-17
@Ruslan-Strannik

PS
sh inter status
Gi0/4 ##to gonchary notconnect 1 auto auto 1000BaseBX10-D SFP
PPS
vlans on the cisco are working. Scattered on the rest of the ports by access and also run further into the network by the trunk
The problem is solved ... There is nowhere easier - crooked hands + an unforeseen factor.
1 sfp module turned out to be non-working, after its replacement the link went up. According to Mikrotik vlans, I set it up incorrectly :) Or rather, not completely true.
As a result, the working config turned out to be the following:
From the Cisco side
interface GigabitEthernet0/4
description ##to MT
switchport trunk encapsulation dot1q
switchport mode trunk
on Mikrotik
/interface bridge
add name="bridge trunk"
add name="bridge vl5"
add name="bridge vl27"
/interface ethernet
set [ find default-name=ether1 ] speed=100Mbps
set [ find default-name=ether2 ] speed=100Mbps
set [ find default-name=ether3 ] speed=100Mbps
set [ find default-name=ether4 ] speed=100Mbps
set [ find default-name=ether5 ] speed=100Mbps
set [ find default-name=sfp1 ] advertise=10M-half,10M-full,100M-half, 100M-full,1000M-half,1000M-full
/interface vlan
add interface=sfp1 name=vlan5 vlan-id=5
add interface=ether5 name=vlan5-27 vlan-id=27
add interface=ether5 name=vlan5-5 vlan -id=5
add interface=sfp1 name=vlan27 vlan-id=27
/interface list
add name=WAN
add name=LAN
/interface bridge port
add bridge="bridge vl27" interface=wlan1 pvid=27
add bridge="bridge vl27" interface=wlan2 pvid=27
add bridge="bridge vl27" interface=ether2 pvid=27
add bridge="bridge vl27" interface=ether3 pvid=27
add bridge="bridge vl27" interface=ether4 pvid=27
add bridge="bridge vl27" interface=vlan27
add bridge="bridge vl27" interface=vlan5-27
/interface bridge vlan
add bridge="bridge vl5" tagged=sfp1,ether5 untagged="bridge vl5" vlan-ids=5
add bridge="bridge vl27" tagged=sfp1,ether5 untagged="bridge vl27"vlan-ids=27
/interface list member
add interface=sfp1 list=WAN
add list=LAN
/ip address
add address=10.xxx/24 interface="bridge vl5" network=10.xxx
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface="bridge vl27"
/ip firewall nat
add action=masquerade chain =srcnat
PS
maybe I did something superfluous, but for me the main thing is that it works :)
And with the right config, I'll figure out how to train :)
thanks for participating

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question