Well, I’ve been fiddling with OpenWRT to replace my crappy Vodafone Easybox 602. Up till now I had DD-WRT on the DIR-615’s (yes, two) however recently (I think due to the Synology DiskStation in combination with a WDS setup) I had to filter SSDP broadcasts storms (which in turn kill the Easybox), which isn’t quite so easy on DD-WRT, but rather easy on OpenWRT.
Today I went thinking about VLAN-Tagging and stuff, and I had to figure out the physical to logical port mapping for the DIR-615. So let’s run swconfig dev rt305x show on the DIR-615 after plugging in the RJ45 cable to a port.
Out came this nifty table, which’ll hopefully help me, wrapping my head around this whole VLAN thing.
physical port | CPU | WAN | WLAN | LAN 1 | LAN 2 | LAN 3 | LAN 4 |
logical port | 6* | 5 | 4 | 3 | 2 | 1 | 0 |
Keep in mind, the CPU port (or the backplane port, connected with 1000 Base-T FD) is by default in both VLANs as a tagged port.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
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 ifname 'eth0.1' option type 'bridge' option proto 'static' option ipaddr '172.31.76.10' option netmask '255.255.255.0' # option ip6addr 'fixme/64' option gateway 172.31.76.1 option broadcast 172.31.76.255 option dns 172.31.76.30 config interface 'wan' option ifname 'eth0.2' option proto 'dhcp' config switch option name 'rt305x' option reset '1' option enable_vlan '1' config switch_vlan option device 'rt305x' option vlan '1' option ports '0 1 2 3 6t' config switch_vlan option device 'rt305x' option vlan '2' option ports '4 6t' # # IPv6 tunnelbroker.net # #config interface 'henet' # option proto '6in4' # option peeraddr '216.66.80.30' # option ip6addr 'fixme/64' # option tunnelid 'fixme' # option username 'fixme' # option password 'fixme' config interface 'vpn' option proto 'none' option auto '1' option ifname 'tun0' |