Open https://openwrt.org/toh/d-link/dir-842#installation and select Firmware Install. At this step we need to download factory version.
- Connect to D-Link router through Ethernet cable.
- Power off the router
- Hold on the reset key and restart the router, release the reset key until you see the LED starts blinking.
- On the computer, manually assign a static IP address on the 192.168.0.xxx subnet, other than 192.168.0.1 (e.g. 192.168.0.2)
- Open a web browser and navigate to http://192.168.0.1
- Choose the firmware file you have downloaded previously and click on Upload.
- After the file has been uploaded, you should see a Device is upgrading the firmware message on the web browse
- The device will reboot automatically after the flashing process finishes
- Change to DHCP mode after the router is restarted
- The gateway by default is https://192.168.1.1 without password
System
Administration
- change router admin password
- modify interface of SSH access to LAN
- SSH Keys
- past the content of your public key file. It will be a long string starting with ssh-rsa …
Network
>Wireless
> 2.4G AP & 5G AP >Device Configuration
Advance Settings
- Country code: modify country code
Interface Configuration
- General Setup: modify ESSID
Wireless Security:
- Encryption: WPA2-PSK
- Cipher: Force CCMP
- Key: Your Wi-Fi Password
Advanced Settings
- uncheck Disassociate On Low Acknowledgement
- check Disable Inactivity Polling
- Time interval for rekeying GTK: 3600
Network
>Wireless
> 5G AP > Device Configuration- Operating frequency:
- Mode: AC
- Channel: 36
- Width: 80mhz
- Operating frequency:
Network
>Wireless
:Save & Apply
Network
>LAN
: modify gateway to 192.168.0.1 if 192.168.1.1 has conflict with upstreamNetwork
>LAN
:Save & Apply
Network
>Firewall
>General Settings
Routing/NAT Offloading
- check Software flow offloading
- check Hardware flow offloading
Save & Apply
Network
>Interfaces
> Devices: Add device configuration- Select VLAN (802.1q) as device type
- Select eth0 as base device
- Introduce 500 in VLAN ID 500 (This configuration depends on the operator)
- uncheck “Enable IPv6”
Save
Save & Apply
Network
>Interfaces
> Interface: click edit on WAN configuration- Change protocol to PPPoE
- Select Software VLAN
eth0.500
as device - Introduce PPPoE username and password
Save
Save & Apply