N1盒子与RT-AC68U组合路由尝试。
warning:
这篇文章距离上次修改已过1640天,其中的内容可能已经有所变动。
AC68U,切换为AP模式,并固定IP,然后SSH进入,设置:
robocfg vlans reset vlan 1 ports "0t 2 3 4 5t" vlan 2 ports "0t 1" vlan 3 ports "5t"
开机启动文件
echo \#!/bin/sh>/jffs/scripts/services-start
echo robocfg vlans reset vlan 1 ports "0t 2 3 4 5t" vlan 2 ports "0t 1" vlan 3 ports "5t" >> /jffs/scripts/services-start
chmod a+rx /jffs/scripts/services-start
以上解释为:
vlan1 0t 2 3 4 5t
vlan2 0t 1
vlan3 5t
AC68U的默认模式是:
1: vlan1: 1 2 3 4 8t
2: vlan2: 0 8t
然后进入N1。设置好LAN为vlan eth0.1并关闭桥接,WAN口设置PPPOE拨号,并设置eth0.2。
添加防火墙代码:
iptables -t nat -I POSTROUTING -o pppoe-WAN -j MASQUERADE