VLAN config ASUS

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
929rr
Posts: 2
Joined: Wed Sep 14, 2011 7:25 am

VLAN config ASUS

Post by 929rr »

I´m looking for a working VLAN config for the /etc/config/network file in a Asus WL500G Premium v1
I will use two VLAN:s, VLAN no2: LAN-port 1-3 and VLAN no5: LAN-port 4.
WiFi is not activated.
The original config looks like this:

config switch 'eth0'
option enable '1'

config switch_vlan 'eth0_0'
option device 'eth0'
option vlan '0'
option ports '1 2 3 4 5'

config switch_vlan 'eth0_1'
option device 'eth0'
option vlan '1'
option ports '0 5'

config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config interface 'lan'
option type 'bridge'
option ifname 'eth0.0'
option proto 'static'
option netmask '255.255.255.0'
option dns '10.10.10.1'
option ipaddr '10.10.10.1'

config interface 'wan'
option ifname 'eth0.1'
option proto 'dhcp'

Post Reply