❗️Toto je původní verze internetového fóra ISPforum.cz do února 2020 bez možnosti registrace nových uživatelů. Aktivní verzi fóra naleznete na adrese https://telekomunikace.cz

CRS112 a management IP ve VLANě

Návody a problémy s konfigurací.
the.max
Příspěvky: 1306
Registrován: 18 years ago
Bydliště: Sudetten land
Kontaktovat uživatele:

CRS112 a management IP ve VLANě

Příspěvekod the.max » 7 years ago

Ahoj, už nějakou dobu zápasím s konfigurací CRS112. Po SFP12 mi do switche prijde trunk s několika VLANama, které si dokážu rozhodit na porty jak potřebuji, to funguje. Problém je s management IP adresou pro switch. Vycházim z manuálu na wiki, ale asi něco dělám blbě a nevidím to.
sfp12 vstup trunk
ether1 vlan68 netagovaná
ether2 vlan68 a vlan109 tagovaná
ether3 vlan68 a vlan108 tagovaná
ether8 vlan108 netagovná
IP adresa switche dostupná z vlan68 je 100.66.0.2/24

Verze je 6.42.1, relevantní část konfigurace je tady:

Kód: Vybrat vše

/interface bridge
add name=bridge1 protocol-mode=none
/interface vlan
add interface=bridge1 name=vlan68_mgmnt vlan-id=68
/interface ethernet switch
set drop-if-invalid-or-src-port-not-member-of-vlan-on-ports=ether1,ether2,ether3,ether8,sfp12,switch1-cpu
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether8
add bridge=bridge1 interface=sfp12
/interface ethernet switch egress-vlan-tag
add tagged-ports=switch1-cpu,ether2,ether3,ether4,sfp12 vlan-id=68
add tagged-ports=ether2,sfp12 vlan-id=109
add tagged-ports=ether3,sfp12 vlan-id=108
/interface ethernet switch ingress-vlan-translation
add customer-vid=0 new-customer-vid=68 ports=ether1
add customer-vid=0 new-customer-vid=108 ports=ether8
/interface ethernet switch vlan
add ports=ether1,ether2,ether3,sfp12 vlan-id=68
add ports=ether2,sfp12 vlan-id=109
add ports=ether3,ether8,sfp12 vlan-id=108
/ip address
add address=100.66.0.2/24 interface=vlan68_mgmnt network=100.66.0.0


Vidíte tam někde chybu?

Díky.
0 x
Vysoce odborných omylů se dopouští jen specialisté.

Jednou jsem se dotkl ukazováčkem UBNT a slezl mi z něho nehet. Od té doby na UBNT nesahám.

MSfanousek
Příspěvky: 12
Registrován: 12 years ago

Příspěvekod MSfanousek » 7 years ago

cpučko bys měl mít v té vlaně i v /interface ethernet switch vlan
0 x

the.max
Příspěvky: 1306
Registrován: 18 years ago
Bydliště: Sudetten land
Kontaktovat uživatele:

Příspěvekod the.max » 7 years ago

Jop, díky, taky jsem už na to přišel.
Správně tedy má být:

Kód: Vybrat vše

/interface bridge
add name=bridge1 protocol-mode=none
/interface vlan
add interface=bridge1 name=vlan68_mgmnt vlan-id=68
/interface ethernet switch
set drop-if-invalid-or-src-port-not-member-of-vlan-on-ports=ether1,ether2,ether3,ether8,sfp12,switch1-cpu
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether8
add bridge=bridge1 interface=sfp12
/interface ethernet switch egress-vlan-tag
add tagged-ports=switch1-cpu,ether2,ether3,ether4,sfp12 vlan-id=68
add tagged-ports=ether2,sfp12 vlan-id=109
add tagged-ports=ether3,sfp12 vlan-id=108
/interface ethernet switch ingress-vlan-translation
add customer-vid=0 new-customer-vid=68 ports=ether1
add customer-vid=0 new-customer-vid=108 ports=ether8
/interface ethernet switch vlan
add ports=switch1-cpu,ether1,ether2,ether3,sfp12 vlan-id=68
add ports=ether2,sfp12 vlan-id=109
add ports=ether3,ether8,sfp12 vlan-id=108
/ip address
add address=100.66.0.2/24 interface=vlan68_mgmnt network=100.66.0.0


Třeba to také někomu pomůže.
0 x
Vysoce odborných omylů se dopouští jen specialisté.

Jednou jsem se dotkl ukazováčkem UBNT a slezl mi z něho nehet. Od té doby na UBNT nesahám.