Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

OpenWRT routers: Difference between revisions

Using Luci on DSA
(Explain VLANs better)
(Using Luci on DSA)
Tags: Mobile edit Mobile web edit
 
ADSL users need an ADSL modem. OpenWrt doesn't support many of the modems built into normal consumer ADSL router/modems. If using an external modem then no VLAN is needed.
 
== On new "Distributed Switch Architecture" versions ==
 
Newer versions of OpenWrt do not have the "Network", "Switch" menu in Luci. To configure this version in Luci:
* Delete any wan6 interface under "Network","Interfaces"
* If needing a WAN VLAN, go to "Network","Interfaces","Devices". "Add device configuration", select device type "VLAN (801.1q)", base device "Switch port: wlan", "VLAN ID" 911 or 101 as required. This will create a device named "wan.911" or "wan.101". Save.
* Under "Network", "Interfaces" edit the wan interface. Change the protocol to PPPoE. Device should be "wan" if you're not using a VLAN, or "wan.911" or "wan.101" if you are. Enter your AAISP username and password. Under "Advanced settings", set "Obtain IPv6 address" to automatic, tick "Use default gateway". Under DHCP server, ignore this interface.
* Save and apply, then restart the wan interface
* The wan and wan6 interfaces should now come up online
The appropriate entries in ''/etc/config/network'' willshould look like the following. If you do not have Luci installed, make these edits to "/etc/config/network".
 
With VLAN:
option type '8021q'
option ifname 'wan'
option vid '911nnn' OR(911 or '101' )
option name 'vlan0wan.nnn' (911 or 101)
 
And for both non VLAN and VLAN configurations:
Without VLAN:
config device
option name 'eth0.2'
option macaddr 'aa.bb.cc.dd.ee.ff'
 
And for both configurations:
config interface 'wan'
option device 'vlan0wan' OR 'eth0wan.2nnn'
option proto 'pppoe'
option username 'XXXXxxnn@a.1'
option password 'ItIsASecret'
option ipv6 'auto'
Do not have an interface named ''wan6'', the IPv6 configuration will be handled automatically.
The ''option ipv6 auto'' line will cause a virtual interface named ''wan_6'' to be created, and an instance of the DHCPv6 client to be run on it. This will request an IPv6 Internet address, and a single Prefix to be Delegated. You can't get the DHCPv6 client started this way to accept more options. In order to use the delegated prefix, the LAN should be configured to expect it, e.g.:
 
config interface 'lan'
option device 'br-lan'
editor
501

edits