VLAN между Микротиком и Eltex

Обсуждение ПО и его настройки
Ответить
Deviant_32
Сообщения: 1
Зарегистрирован: 05 июн 2022, 19:18

Здравствуйте! Я прошу помощи, может где-то ошибся в настройке.
У меня есть стенд - коммутатор Eltex Mes2442 и Mikrotik CRS125-24G-1S-2HnD.
На Eltex у меня создан vlan10 - 7 порт acces, 3 порт тегированный.
IP vlan10 на Eltexe 192.168.40.3
На 7 порт подключен ПК.
Еще создан vlan20 - но я его не задействовал - мне бы с влан10 разобраться.

На микротике я 1 порт сделал тегированным влан10, и 8 порт аcces.
Влан10 на микротике 192.168.40.4
ПК_2 подключенный к микротику на порт 8 . айпи ПК_2 192.168.40.50.

И микротик не пингует eltex и наоборот. Где я ошибся?

Настройки микротика:
[admin@MikroTik] > export
# jan/02/1970 00:24:02 by RouterOS 6.46.4
# software id = KGA0-4QAV
#
# model = CRS125-24G-1S-2HnD
# serial number = 944B09E19106
/interface bridge
add admin-mac=B8:69:F4:54:20:36 auto-mac=no comment=defconf name=bridge
add name=bridge10
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX disabled=no distance=indoors frequency=auto installation=indoor mode=ap-bridge ssid=MikroTik-54204E wireless-protocol=802.11
/interface vlan
add interface=ether1 name=vlan10 vlan-id=10

/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge name=defconf
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=ether6
add bridge=bridge comment=defconf interface=ether7
add bridge=bridge comment=defconf interface=ether8
add bridge=bridge comment=defconf interface=ether9
add bridge=bridge comment=defconf interface=ether10
add bridge=bridge comment=defconf interface=ether11
add bridge=bridge comment=defconf interface=ether12
add bridge=bridge comment=defconf interface=ether13
add bridge=bridge comment=defconf interface=ether14
add bridge=bridge comment=defconf interface=ether15
add bridge=bridge comment=defconf interface=ether16
add bridge=bridge comment=defconf interface=ether17
add bridge=bridge comment=defconf interface=ether18
add bridge=bridge comment=defconf interface=ether19
add bridge=bridge comment=defconf interface=ether20
add bridge=bridge comment=defconf interface=ether21
add bridge=bridge comment=defconf interface=ether22
add bridge=bridge comment=defconf interface=ether23
add bridge=bridge comment=defconf interface=ether24
add bridge=bridge comment=defconf interface=sfp1
add bridge=bridge comment=defconf interface=wlan1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface bridge vlan
add bridge=bridge10 tagged=ether1,vlan10 untagged=ether8 vlan-ids=10

/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=192.168.88.0
add address=192.168.40.4 interface=bridge10 network=192.168.40.4
/ip dhcp-client
add comment=defconf disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN


Настройки элтекса:
console#show run
vlan database
vlan 10,20
exit
!
interface gigabitethernet1/0/2
switchport mode trunk
switchport trunk allowed vlan add 10,20
exit
!
interface gigabitethernet1/0/3
switchport mode trunk
switchport trunk allowed vlan add 10,20
exit
!
interface gigabitethernet1/0/6
switchport access vlan 20
exit
!
interface gigabitethernet1/0/7
switchport access vlan 10
exit
!
interface vlan 10
ip address 192.168.40.3 255.255.255.0
exit
!
interface vlan 20
ip address 192.168.41.2 255.255.255.0
exit
!
end
console#
console#show vlan
Vlan mode: Basic
Created by: D-Default, S-Static, G-GVRP, R-Radius Assigned VLAN, V-Voice VLAN

Vlan Name Tagged Ports UnTagged Ports Created by
---- ----------------- ------------------ ------------------ ----------------
1 - gi1/0/1-5, D
gi1/0/8-24,
te1/0/1-4,Po1-16
10 - gi1/0/2-3 gi1/0/7 S
20 - gi1/0/2-3 gi1/0/6 S

console#show ip route
Maximum Parallel Paths: 1 (1 after reset)
Load balancing: src-dst-mac-ip
IP Forwarding: enabled
Codes: > - best, C - connected, S - static,
R - RIP,
O - OSPF intra-area, OIA - OSPF inter-area,
OE1 - OSPF external 1, OE2 - OSPF external 2,
B - BGP


C 192.168.40.0/24 is directly connected, vlan 10

console#

Подскажите, пожалуйста, где я мог допустить ошибку?


Illinory
Сообщения: 100
Зарегистрирован: 23 окт 2019, 15:08

Удалите дефолтный конфиг.
В bridge10 вы портов не насыпали, тот же ether8 у вас в другом (дефолтном) бридже:

/interface bridge port
...
add bridge=bridge comment=defconf interface=ether8


gmx
Модератор
Сообщения: 3296
Зарегистрирован: 01 окт 2012, 14:48

Да и не включен vlan filtering на бридже...

С vlan наскоком не получится. Соберите стенд из двух микротиков и учитесь vlan.
Поймёте один раз и потом будет в е просто. Ничего особо сложного нет.

Рекомендую посмотреть видеуроки от Романа Козлова. Очень толково все рассказывает.


Ответить