Start with
opkg update
opkg install relayd
vi /etc/init.d/relayd enable /etc/config/network
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config globals 'globals' option ula_prefix 'fd37:7ec5:def1::/48' config interface 'lan' option type 'bridge' option ifname 'eth1' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option ip6assign '60' option gateway '10.0.0.1' config interface 'wan' option ifname 'eth0' option proto 'dhcp' config switch option name 'switch0' option reset '1' option enable_vlan '1' config switch_vlan option device 'switch0' option vlan '1' option ports '0 1 2 3 4' config interface 'wwan' option proto 'static' option ipaddr '10.0.0.2' #IP WWAN match you main router network 192.168.x.254 option netmask '255.255.255.0' option gateway '10.0.0.1' #your main router's IP config interface 'stabridge' option proto 'relay' option network 'lan wwan' option ipaddr '10.0.0.2' #Same IP as in WWAN
vi /etc/config/wireless
config wifi-device radio0 option type mac80211 option channel 11 # Original channel of main router option hwmode 11g option path 'pci0000:00/0000:00:00.0' option htmode HT20 option disabled 0 config wifi-iface option ssid chang_1 # SSID of main router option encryption psk2 # Set wep, psk or psk2 for WEP, WPA or WPA2 option device radio0 option mode sta option network wwan option key lechangue # Main router password config wifi-iface option device radio0 option mode ap option ssid chang_2 # SSID of repeater router option encryption psk option key lechangue # Repeater router password option network lan
vi /etc/config/dhcp
config dhcp lan option interface lan option start 100 option limit 150 option leasetime 12h option ignore 1 config dhcp wan option interface wan option ignore 1
Stop firewall:
/etc/init.d/firewall stop
/etc/init.d/firewall disable