WAN DSL bridge mode

Update: After fiddling around with VLANs I managed to configure the router in a way that only the WAN-Port (internal port number 4) is bridged with the dsl modem by putting in a separate VLAN (I used vid 2). Here's the config:


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 'fd6d:a67d:a9a7::/48'

config atm-bridge 'atm'
	option vpi '1'
	option vci '32'
	option encaps 'llc'
	option payload 'bridged'

config dsl 'dsl'
	option annex 'b'
	option xfer_mode 'atm'
	option line_mode 'adsl'

config interface 'lan'
	option type 'bridge'
	option ifname 'eth0.1'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '60'

config interface 'wan'
	option type 'bridge'
	list ifname 'nas0'
#	list ifname 'eth1'
	list ifname 'eth0.2'

config device 'wan_dev'
	option name 'ptm0'
	option macaddr 'xx:xx:xx:xx:xx:xx'

config interface 'wan6'
	option ifname '@wan'
	option proto 'dhcpv6'

config switch
	option name 'switch0'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option ports '0 2 5 6t'

config switch_vlan 'eth0_2'
	option device 'switch0'
	option vlan '2'
	option ports '4 6t'

Except for the relatively high power consumption, this setup is getting really nice now...

1 Like