OpenWRT routers: Difference between revisions
Appearance
Content deleted Content added
No edit summary Tags: Mobile edit Mobile web edit |
Packages Tags: Mobile edit Mobile web edit |
||
| (4 intermediate revisions by the same user not shown) | |||
| 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. |
|||
With WAN VLAN: |
With WAN VLAN: |
||
config |
config switch_vlan |
||
option device 'switch0' |
option device 'switch0' |
||
option vlan '2' |
option vlan '2' |
||
option ports '0t 1t' |
option ports '0t 1t' |
||
option vid '911' OR '101' |
option vid '911' OR '101' |
||
Without WAN VLAN: |
Without WAN VLAN: |
||
config |
config device |
||
option |
option name 'eth0.2' |
||
option |
option macaddr 'aa.bb.cc.dd.ee.ff' |
||
| ⚫ | |||
And for both configurations: |
|||
| ⚫ | |||
config interface 'wan' |
|||
option device 'eth0.2' OR 'eth0.911' OR 'eth0.101' |
|||
| ⚫ | |||
option username 'xxnn@a.1' |
|||
option password 'ItIsASecret' |
|||
| ⚫ | |||
== On new "Distributed Switch Architecture" versions == |
== On new "Distributed Switch Architecture" versions == |
||
| Line 72: | Line 81: | ||
* 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. |
* 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 |
* 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'' should look like the following. If you do not have Luci installed, make these edits to "/etc/config/network". |
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". |
||
| Line 167: | Line 176: | ||
default from 2001:8b0:xyz:4520::/60 via fe80::9e89:1eff:fe2e:0 dev pppoe-wan metric 512 |
default from 2001:8b0:xyz:4520::/60 via fe80::9e89:1eff:fe2e:0 dev pppoe-wan metric 512 |
||
... |
... |
||
= Installing packages = |
|||
One of OpenWrt's key features is being able to install extra software packages. For example, you can install a VPN server on the router, or add SFTP support to the SSH server. |
|||
On the Luci web interface go to "System","Software", and click "Update lists...". You can then search for and install packages. ''openssh-sftp-server'' might be useful, or the ''nano'' text editor for in-situ changes to the configuration. |
|||
From the command line, ''opkg'' is the tool to manage packages. "opkg update" to update the lists, "opkg find openssh*" to search, "opkg install wireguard-tools" to install. |
|||
= Advanced configuration of the local network = |
= Advanced configuration of the local network = |
||