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

Content deleted Content added
Adsb (talk | contribs)
Explain VLANs better
Adsb (talk | contribs)
Using Luci on DSA
Tags: Mobile edit Mobile web edit
Line 39: Line 39:


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.
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'' will look like the following.
The appropriate entries in ''/etc/config/network'' should look like the following. If you do not have Luci installed, make these edits to "/etc/config/network".


With VLAN:
With VLAN:
Line 47: Line 56:
option type '8021q'
option type '8021q'
option ifname 'wan'
option ifname 'wan'
option vid '911' OR '101'
option vid 'nnn' (911 or 101)
option name 'vlan0'
option name 'wan.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'
config interface 'wan'
option device 'vlan0' OR 'eth0.2'
option device 'wan' OR 'wan.nnn'
option proto 'pppoe'
option proto 'pppoe'
option username 'XXXX@a.1'
option username 'xxnn@a.1'
option password 'ItIsASecret'
option password 'ItIsASecret'
option ipv6 'auto'
option ipv6 'auto'
Line 65: Line 70:
Do not have an interface named ''wan6'', the IPv6 configuration will be handled automatically.
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.:
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'
config interface 'lan'
option device 'br-lan'
option device 'br-lan'