I've coded comms software before but this network thing is a whole new kettle of fish.
The config is as follows and it is not correct - my fixed lan connections are not connecting with this:
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 'fdee:bdcf:b059::/48'
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'
option dns '192.168.1.1'
config interface 'wan'
option ifname 'eth1.2'
option ipv6 '0'
option proto 'pppoe'
option keepalive '3 5'
option username 'USERNAME'
option password 'PASSWORD'
option mtu '1480'
config interface 'wan6'
option ifname 'eth1.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
option blinkrate '2'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '5t'
config switch_port
option device 'switch0'
option port '1'
option led '6'
config switch_port
option device 'switch0'
option port '2'
option led '9'
config switch_port
option device 'switch0'
option port '5'
option led '2'
I thought I would have to separate the LAN and WAN by going them each their own vlan but as it is now, the hardwired connections don't work.
I tried changing the lan interface to 'eth0.2' and then the fixed ports work. But I think there might be contention somehow as the wifi dropped out at some stage.
Would any network guru be able to help?
Thanks Ron