Step1:連入Web管理介面,打開JFFS功能
Administration-->JFFS Enable,啟用後要選下方的格式化/清除,否則無法 mount JFFS磁碟
CLI mode下輸入df -h查看是否已正確mount JFFS磁碟
root@Tomato:/tmp/home/root# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 5.2M 5.2M 0 100% /
tmpfs 14.0M 288.0K 13.7M 2% /tmp
devfs 14.0M 0 14.0M 0% /dev
/dev/mtdblock3 1.8M 196.0K 1.6M 11% /jffs
Step 2:安裝rp-pppoe-relay套件
# mkdir -p /tmp/pppoe
#cd /tmp/pppoe
# wget http://kamikaze.openwrt.org/8.09.2/brcm-2.4/packages/rp-pppoe-relay_3.10-1_mipsel.ipk
# tar xzf rp-pppoe-relay_3.10-1_mipsel.ipk
# tar xzf data.tar.gz
# cp usr/sbin/pppoe-relay /jffs
# cd /
# rm -rf /tmp/pppoe
# /jffs/pppoe-relay -S vlan 1 -C br0
注意:vlan1在我的機器是設定為Wan端,Lan端為br0,需依實際狀況修改對應的Vlan
Step 3:連入Web管理介面,設定開機後自動執行rp-pppoe-relay
Administration-->Scripts-->Init
加入以下指令後,存檔重開後,即可使用pppoe relay的功能
killall pppoe_relay
sleep 10 && /jffs/pppoe-relay -S vlan1 -C br0
0 回應:
張貼留言