Well, the title pretty much says is all. I would like to reconfigure Linksys WHW03 v1 (running snapshot) to work as an access point. Here's what I have right now (with minor redactions to avoid giving evidence against oneself):
root@WHW03:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether XX:XX:XX:XX:XX:6c brd ff:ff:ff:ff:ff:ff
inet6 XXXX::XXXX:XXXX:XXXX:306c/64 scope link
valid_lft forever preferred_lft forever
3: lan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether XX:XX:XX:XX:XX:6c brd ff:ff:ff:ff:ff:ff
4: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether XX:XX:XX:XX:XX:6c brd ff:ff:ff:ff:ff:ff
inet 10.42.0.85/24 brd 10.42.0.255 scope global wan
valid_lft forever preferred_lft forever
inet6 XXXX::XXXX:XXXX:XXXX:306c/64 scope link
valid_lft forever preferred_lft forever
5: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether XX:XX:XX:XX:XX:6c brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 XXXX:XXXX:XXXX::1/60 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 XXXX::XXXX:XXXX:XXXX:306c/64 scope link
valid_lft forever preferred_lft forever
root@WHW03:~# 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 'XXXX:XXXX:XXXX::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan'
config device
option name 'lan'
option macaddr 'XX:XX:XX:XX:XX:6c'
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:6c'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
If I am reading this correctly, the device has a switch at eth0
with two physical ports designated lan
and wan
. So there's one MAC address ending in 6c
for the entire wired subsystem; eth0
, lan
, br-lan
, and wan
all have the same MAC address.
So... what's the appropriate way to rewrite /etc/config/network
for access point use? My first thought is to rename lan
and wan
into lan1
and lan2
and bridge them:
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 'XXXX:XXXX:XXXX::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
config device
option name 'lan1'
option macaddr 'XX:XX:XX:XX:XX:6c'
config device
option name 'lan2'
option macaddr 'XX:XX:XX:XX:XX:6c'
config interface 'lan'
option device 'br-lan'
option proto 'dhcp'
But I am not sure whether the names lan
and wan
are in any way "magical" (predefined in code, have special significance, etc.) and thus must be retained. So I would love some guidance on this...