#------------------------------------------------------- # Vytvoříme Bridge #------------------------------------------------------- /interface bridge add name=bridge1 igmp-snooping=no protocol-mode=none pvid=10 /interface bridge port add bridge=bridge1 interface=ether1 hw=yes add bridge=bridge1 interface=ether2 hw=yes pvid=10 add bridge=bridge1 interface=ether3 hw=yes pvid=500 add bridge=bridge1 interface=ether4 hw=yes pvid=500 add bridge=bridge1 interface=ether5 hw=yes pvid=500 add bridge=bridge1 interface=ether6 hw=yes pvid=500 add bridge=bridge1 interface=ether7 hw=yes pvid=500 add bridge=bridge1 interface=ether8 hw=yes pvid=500 add bridge=bridge1 interface=ether9 hw=yes pvid=100 add bridge=bridge1 interface=ether10 hw=yes pvid=100 add bridge=bridge1 interface=ether11 hw=yes pvid=100 add bridge=bridge1 interface=ether12 hw=yes pvid=100 add bridge=bridge1 interface=ether13 hw=yes pvid=100 add bridge=bridge1 interface=ether14 hw=yes pvid=100 add bridge=bridge1 interface=ether15 hw=yes pvid=100 add bridge=bridge1 interface=ether16 hw=yes pvid=100 add bridge=bridge1 interface=ether17 hw=yes pvid=100 add bridge=bridge1 interface=ether18 hw=yes pvid=100 add bridge=bridge1 interface=ether19 hw=yes pvid=100 add bridge=bridge1 interface=ether20 hw=yes pvid=100 add bridge=bridge1 interface=ether21 hw=yes pvid=10 add bridge=bridge1 interface=ether22 hw=yes pvid=10 add bridge=bridge1 interface=ether23 hw=yes pvid=10 add bridge=bridge1 interface=ether24 hw=yes pvid=4000 add bridge=bridge1 interface=sfp-sfpplus1 hw=yes add bridge=bridge1 interface=sfp-sfpplus2 hw=yes pvid=4000 #------------------------------------------------------- # Rozdělíme porty dle VLAN #------------------------------------------------------- /interface bridge vlan add bridge=bridge1 tagged=sfp-sfpplus1,ether1,ether22,ether23 untagged=ether9,ether10,ether11,ether12,ether13,ether14,ether15,ether16,ether17,ether18,ether19,ether20 vlan-ids=100 add bridge=bridge1 tagged=sfp-sfpplus1,ether1,ether22,ether23 vlan-ids=120 add bridge=bridge1 tagged=sfp-sfpplus1,ether1,ether22,ether23 untagged=ether3,ether4,ether5,ether6,ether7,ether8 vlan-ids=500 add bridge=bridge1 tagged=sfp-sfpplus1,ether1,ether22,ether23 untagged=ether2 vlan-ids=10 add bridge=bridge1 untagged=ether24,sfp-sfpplus2 vlan-ids=4000 #------------------------------------------------------- # Nastavíme IP adresu #------------------------------------------------------- /ip address add address=192.168.1.2/24 interface=bridge1 network=192.168.1.0 #------------------------------------------------------- # Nakonec aktivujeme filtrování VLAN #------------------------------------------------------- /interface bridge set bridge1 vlan-filtering=yes