Skip to content

Well tested AsusWRT-Merlin Configurations and Options

Notifications You must be signed in to change notification settings

RavenSystem/AsusWRT-Merlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RavenSystem's AsusWRT-Merlin configuration

Donate

Twitter

Chat

This is the configuration from my AsusWRT routers, with AsusWRT-Merlin firmware installed.

I have tested different Asus router models, and I have experience developing some AsusWRT-Merlin Addons. My setup manages more than 70+ network connected devices (60+ wifi devices).

Check AsusWRT-Merlin supported devices

Under Config you will find all config options and screenshots.

Remember to check AMTM plugins and options, included with AsusWRT-Merlin.

Router VPN Server for Apple devices: AAH: Always At Home

Tips

Some scripts options to customize your router. Please, before read AsusWRT-Merlin User Scripts to know how they works.

Check and customize SWAP

If your router has a SWAP file installed by AMTM, you can check and customize it.

To check it, run this command and see value:

cat /proc/sys/vm/swappiness

If value is 0, or if you want to use a different value, run or add this line with your new value (72 is an example)...

echo 72 > /proc/sys/vm/swappiness

... into this file...

/jffs/scripts/post-mount

... after line:

swapon /tmp/mnt/pendrive/myswap.swp # Added by amtm

Remove Asus proprietary connection diagnostic tool

This is a service used to check router ports and show their status in WebUI. It is useless because under Tools menu you can see ports status, and can be disabled to save RAM.

To disable it, add this line...

service stop_conn_diag

... to the end of this file...

/jffs/scripts/services-start

... and restart router.

Enable Link Aggregation to AiMesh node Ethernet Uplink

By default, only WAN port can be used as uplink to main router or core switch. But if your node supports Link Aggregation, you can use it as uplink.

Enable link aggregation in Aimesh node

  • Under WebUI AiMesh Menu, select your AiMesh Node, Manage, and enable Link Aggregation. If this option is not available, you can stop here because your node doesn't support it.

Enable link aggregation in main router

  • Under WebUI LAN Menu, select Switch Control tab, and enable Link Aggregation. If this option is not available, you can stop here because your main router doesn't support it.

Add custom script to node

  • Enter to your node using SSH.
  • Edit this file:
/jffs/scripts/init-start
  • Add these commands to remove eth3 (LAN2) and add eth0 (WAN) to bond0 (Link Aggregation Interface):
#!/bin/sh
ifconfig bond0 down
echo "-eth3" > /sys/class/net/bond0/bonding/slaves
brctl addif br0 eth3
brctl delif br0 eth0
ifconfig eth0 down
echo "+eth0" > /sys/class/net/bond0/bonding/slaves
ifconfig bond0 up
  • Set file permissions:
chmod a+x /jffs/scripts/init-start
  • Enable User Scripts:
nvram set jffs2_scripts=1
nvram commit
  • Restart node.
  • Connect main router LAN1 and LAN2 ports to node WAN and LAN1 ports.

Customize Link Aggregation Policy (Optional)

LACP Policy can be changed using:

echo 2 > /sys/class/net/bond0/bonding/xmit_hash_policy

Sponsor this project

Languages