I use WRT1200 as my gargoyle device.
I want to create a separate network/vlan on one of the switch ports.
i tried to switch vlan on with swconfig but then router lost all connections.
Maybe someone can help me out with this?
Thanks

Moderator: Moderators
Code: Select all
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'xxxxxxxxxxx'
config interface 'lan'
option ifname 'eth1'
option force_link '1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option dns '208.67.222.222 208.67.220.220'
option ipaddr '192.168.x.x'
config interface 'wan'
option ifname 'eth0'
option dns '208.67.222.222 208.67.220.220'
option peerdns '0'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.x.x'
option gateway '192.168.x.x'
config interface 'wan6'
option ifname 'eth0'
option proto 'dhcpv6'
Code: Select all
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 6t'
config switch_vlan
option device 'switch0'
option vlan '100'
option ports '4 5t'
config interface 'lan'
option ifname 'eth1.1'
option force_link '1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option dns '208.67.222.222 208.67.220.220'
option ipaddr '192.168.0.254'
config interface 'privat_lan'
option ifname 'eth1.2'
option force_link '1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option dns '208.67.222.222 208.67.220.220'
option ipaddr '192.168.1.254'