Stránka 1 z 1

HW VLANy + wifi na Omnitiku

Napsal: 05 Apr 2019 21:04
od the.max
Zdar ve spolek,

narazil jsem na drobný problém při konfiguraci jednoho Omnitika.
Když pominu, že Omnitik je zlo, potřeboval bych vyřešit následující:

Do Omnitika mi do ether1 vedou 2 tagované VLANy. Na switchi mám nastaveno, že tagované zase odchází ven skrz ether1 a ether2. Na ether5 je pak jedna VLANa už netagovaná. Zároveň je v téhle VLANě i IP Omnitika pro jeho management. To mi funguje.

Mám ale problém, jak druhou VLANu propojit i wlan1. Pokud ve Switch > VLAN u té druhé VLANy přidám i port switch1_cpu a k bridge1 přidám softwaeovou VLANu s daným ID, kterou následně dám do bridge s wlan1, tak mi to nefunguje.
Jak to udělat správně ?

Relevantní část konfigurace:

Kód: Vybrat vše

/interface ethernet
set [ find default-name=ether1 ] name=ether1_uplink
set [ find default-name=ether2 ] name=ether2_60G
set [ find default-name=ether3 ] name=ether3_922
set [ find default-name=ether5 ] name=ether5_MGMNT
/interface bridge
add name=bridge1
add name=bridge2_AP
/interface vlan
add interface=bridge1 name=vlan68_MGMNT vlan-id=268
add interface=bridge1 name=vlan104_Prazska vlan-id=304
/interface ethernet switch port
set 0 default-vlan-id=1 vlan-header=add-if-missing vlan-mode=secure
set 1 default-vlan-id=1 vlan-header=add-if-missing vlan-mode=secure
set 2 default-vlan-id=304 vlan-header=always-strip vlan-mode=secure
set 4 default-vlan-id=268 vlan-header=always-strip vlan-mode=secure
set 5 vlan-header=add-if-missing vlan-mode=secure
/interface bridge port
add bridge=bridge1 interface=ether1_uplink
add bridge=bridge1 interface=ether2_60G
add bridge=bridge1 interface=ether3_922
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5_MGMNT
add bridge=bridge2_AP interface=wlan1
add bridge=bridge2_AP interface=vlan304_Prazska
/interface ethernet switch vlan
add independent-learning=no ports=ether1_uplink,ether2_60G,ether3_922, ether5_MGMNT,switch1-cpu switch=switch1 vlan-id=268
add independent-learning=no ports=ether1_uplink,ether2_60G,ether3_922 switch=switch1 vlan-id=304
/ip address
add address=100.200.200.400/24 interface=vlan268_MGMNT network=100.200.300.0

Re: HW VLANy + wifi na Omnitiku

Napsal: 05 Apr 2019 21:43
od the.max
tak už dobrý, už jsem na to přišel.

wlan1 přidat do bridge1. V bridge ports wlan1 na kartě VLAN místo 1 zapsat správné PVID a následně ve wireless wlan1 na kartě wireless změnit vlan mode na use tag a pod to do VLAN ID zapsat potřebné ID VLANy. Bridge2 ani druhá softwarová VLANa není potřeba.

...snad to někomu pomůže.