Stránka 1 z 1

CRS112 a management IP ve VLANě

Napsal: 20 May 2018 20:33
od the.max
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.

Re: CRS112 a management IP ve VLANě

Napsal: 20 May 2018 21:43
od MSfanousek
cpučko bys měl mít v té vlaně i v /interface ethernet switch vlan

Re: CRS112 a management IP ve VLANě

Napsal: 20 May 2018 22:05
od the.max
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.