OpenWRT routers: Difference between revisions
Appearance
Content deleted Content added
Restore earlier instructions |
Redefine WAN VLAN |
||
| Line 47: | Line 47: | ||
* Under "Network", "Interfaces" edit the wan interface. Change the protocol to PPPoE. Device should be "eth0.2" if you're not using a VLAN, or "eth0.911" or "eth0.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. |
* Under "Network", "Interfaces" edit the wan interface. Change the protocol to PPPoE. Device should be "eth0.2" if you're not using a VLAN, or "eth0.911" or "eth0.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 |
* Save and apply, then restart the wan interface |
||
* The wan and |
* The wan and wan_6 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'' will look like the following. |
||
| Line 53: | Line 53: | ||
With WAN VLAN: |
With WAN VLAN: |
||
config |
config switch_vlan |
||
option |
option device 'switch0' |
||
option |
option vlan '2' |
||
option |
option ports '0t 1t' |
||
option |
option vid '911' OR '101' |
||
Without WAN VLAN: |
Without WAN VLAN: |
||
config device |
config device |
||
option name 'eth0.2' |
option name 'eth0.2' |
||
option macaddr 'aa.bb.cc.dd.ee.ff' |
option macaddr 'aa.bb.cc.dd.ee.ff' |
||
| Line 68: | Line 68: | ||
config interface 'wan' |
config interface 'wan' |
||
option device 'eth0.2' OR ' |
option device 'eth0.2' OR 'eth0.911' OR 'eth0.101' |
||
option proto 'pppoe' |
option proto 'pppoe' |
||
option username 'xxnn@a.1' |
option username 'xxnn@a.1' |
||