Evo uputa kako sloziti VLAN-ove za VOIP i ACS za HT na Asusovim routerima. Konkretno, ja sam koristio ASUS RT-AX86U i stavio sam Asuswrt-Merlin FW. Možda bi radilo i s originalnim Asuswrt FW, jer ne vidim da su drastično drugačiji samo Merlin ima neke dodatne opcije. Dakle, VLANovi se mogu složiti preko konzole pa treba omogućiti SSH u postavkama i spojiti se SSH-om na router. Za podešavanje VLAN-ova postoje 2 toola, vlanctl i vconfig.
vlanctl mi se cini konkretniji ali je i kompliciraniji pa sam isao probati vconfig s kojim je bez velikog truda i proradilo.
Ja sam za početak htio odvojiti posebno LAN4 port kao port gdje ću spojiti Speedport i htio sam da bude izoliran od ostatka mreže. Pretpostavljam da se ovo može preskočiti. Napravio sam odvojeni bridge interface i stavio LAN4 unutra
Code:
# provjera stanja i izvajanje LAN4 porta u zasebni br if
brctl show
# brisemo LAN4 (eth1) port sa br0 interfacea
brctl delif br0 eth1
# stvaranje odvojenog br1 interfacea i dodavanje LAN4 porta (eth1) na if
brctl addbr br1
brctl addif br1 eth1
# provjera stanja
brctl show
# postavljanje formata imenovanja virtualnog interfacea <device-name>.<vlan-id>
</vlan-id></device-name><device-name><vlan-id> vconfig set_name_type DEV_PLUS_VID_NO_PAD</vlan-id></device-name>
<device-name><vlan-id></vlan-id></device-name>
<device-name><vlan-id> <device-name><vlan-id># setupiranje VOIP VLANA (101)<device-name><vlan-id></vlan-id></device-name><device-name><vlan-id>
</vlan-id></device-name></vlan-id></device-name></vlan-id></device-name><device-name><vlan-id><device-name><vlan-id># stvaranje virtualnog interfacea na WAN-u (eth0) i bindanje na VLAN101</vlan-id></device-name><device-name><vlan-id></vlan-id></device-name></vlan-id></device-name>
<device-name><vlan-id>vconfig add eth0 101</vlan-id></device-name><device-name><vlan-id></vlan-id></device-name>
<device-name><vlan-id> ifconfig eth0.101 up
# stvaranje virtualnog interfacea na odvojenom br1 i bindanje na VLAN101
</vlan-id></device-name><device-name><vlan-id> vconfig add br1 101</vlan-id></device-name>
<device-name><vlan-id><device-name><vlan-id>ifconfig br1.101 up</vlan-id></device-name><device-name><vlan-id></vlan-id></device-name></vlan-id></device-name>
<device-name><vlan-id><device-name><vlan-id></vlan-id></device-name></vlan-id></device-name>
<device-name><vlan-id># stvaranje novog bridge if-a i dodavanje prethodno stvorenih VLAN101 if-ova</vlan-id></device-name>
<device-name><vlan-id><device-name><vlan-id>brctl addbr vlan101</vlan-id></device-name><device-name><vlan-id></vlan-id></device-name></vlan-id></device-name>
<device-name><vlan-id>brctl addif vlan101 eth0.101</vlan-id></device-name><device-name><vlan-id></vlan-id></device-name>
<device-name><vlan-id>brctl addif vlan101 br1.101</vlan-id></device-name> <device-name><vlan-id>
</vlan-id></device-name>
<device-name><vlan-id># omoguci interface</vlan-id></device-name>
<device-name><vlan-id>ifconfig vlan101 up</vlan-id></device-name>
<device-name><vlan-id>
# isti postupak za VLAN103 tj. ACS
vconfig add eth0 103
ifconfig eth0.103 up
vconfig add br1 103
ifconfig br1.103 up
brctl addbr vlan103
brctl addif vlan103 eth0.103
brctl addif vlan103 br1.103</vlan-id></device-name><device-name><vlan-id>
</vlan-id></device-name>
<device-name><vlan-id>ifconfig vlan103 up</vlan-id></device-name>
<device-name><vlan-id>
</vlan-id></device-name>
<device-name><vlan-id>Ovako izgleda stanje nakon svega

</vlan-id></device-name>
<device-name><vlan-id>
</vlan-id></device-name>
<device-name><vlan-id>Disclaimer je da se ovo vjerojatno može napraviti i jednostavnije, al kad je proradilo više nisam dirao. VLAN100 se može složiti preko GUI-a pa ovdje nije pokriven. Nek ovo sluzi kao pomoć ako će netko sebi htjeti složiti, a ako vidi jednostavniji način možemo updateati upute.
</vlan-id></device-name>
<device-name><vlan-id>Linkovi na par materijala koje sam pratio</vlan-id></device-name>
<device-name><vlan-id>Slaganje bridgeova i prikaz kako su mapirani portovi (LANx - ethy)</vlan-id></device-name>
<device-name><vlan-id>

</vlan-id></device-name>
<device-name><vlan-id></vlan-id></device-name>
https://wu.renjie.im/blog/network/ax88u-vlan/
<device-name><vlan-id>Neki kineski blog al google translate bi trebao odraditi svoje</vlan-id></device-name>
<device-name><vlan-id>
https://www.cnblogs.com/u128393/p/11629969.html
</vlan-id></device-name>