Temat: VLAN dla sieci gościnnej
Cześć, proszę o wsparcie w konfiguracji sieci gościnnej odizolowanej od domowej. Temat odświeżony. Stare zapytanie skasowałem bo zmienił się sprzęt.
Główny router to Linksys EA7500v2 z Luci 21.02 od Cezarego.
Kilka AP-ków ze starych routerów.
Jeden AP to Western Digital My Net N750 z Luci 21.02 od Cezarego.
Chcę by na jednym porcie routera (lub na wszystkich) nadawany był VLAN dla sieci gościnnej tak, by AP z konfiguracja poniżej podłączony w dowolnym miejscu sieci widział ten VLAN i mógł z niego korzystać. Nie chcę wydzielać tylko jednego portu routera ale jeżeli to dużo prostsze to też zaakceptuję takie rozwiązanie.
Proszę o precyzyjne informacje co w jakiej sekcji dodać i na którym urządzeniu. Próbowałem sam ogarnąć VLANy ale poległem.
NA AP-ku WD N750 jest taki konfig:
root@Gargoyle:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdf4:8932:05ac::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0.1'
config device
option name 'eth0.1'
option macaddr '00:90:a9:0b:a0:26'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.1.5'
option gateway '192.168.1.1'
option dns '192.168.1.1'
config device
option name 'eth0.2'
option macaddr '00:90:a9:0b:a0:25'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0t 1 2 3 4'
option vid '1'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 5'
option vid '2'root@Gargoyle:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'platform/ahb/18100000.wmac'
option htmode 'HT20'
option country 'PL'
option cell_density '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option encryption 'psk2'
option key '********'
option ssid 'domowa'
config wifi-device 'radio1'
option type 'mac80211'
option channel '36'
option hwmode '11a'
option path 'pci0000:00/0000:00:00.0'
option htmode 'HT20'
option country 'PL'
option cell_density '0'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option encryption 'psk2'
option key '*******'
option ssid 'domowa'Konfiguracja ROUTERA Linksys EA7500
root@OpenWrt:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option packet_steering '1'
option ula_prefix 'fdc6:5027:e5fd::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config device
option name 'lan1'
option macaddr 'XX:XX:XX:XX:XX'
config device
option name 'lan2'
option macaddr 'XX:XX:XX:XX:XX'
config device
option name 'lan3'
option macaddr 'XX:XX:XX:XX:XX'
config device
option name 'lan4'
option macaddr 'XX:XX:XX:XX:XX'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device
option name 'wan'
option macaddr 'XX:XX:XX:XX:XX'
config interface 'wan'
option device 'wan'
option proto 'pppoe'
option username 'user'
option password '*********'
option ipv6 'auto'