Quote:
Originariamente inviato da hamoble
Another thing I do not understand.
in WAN-> Advanced, select pppoe_relay, I get marked with an X, save.
in telnet
cat / proc / driver / PPPoE / pppoe_relay_enable
I get 0.
Reboot.
in WAN-> Advanced pppoe_relay, I get marked with an X.
in telnet
cat / proc / driver / PPPoE / pppoe_relay_enable
I get 0.
I'm doing wrong?.
|
in the help of the wan advanced page there is a little explanation of that
pppoe-relay depends on the existence of the nas interface; the nas interface in the 4000 goes down when the ppp connection goes down
so, pppoe-relay is launched if and only if the 4000 has a ppp connection, which means that /proc entry is set to 1 when the pppoe-relay amod service is started and it is started only after the 4000 establishes a ppp connection
but, you don't really need pppoe-relay, you just need that /proc option to be 1, so, deselect that pppoe-relay option
create the file
/etc/amod/conf/rcS1.user
nano /etc/amod/conf/rcS1.user
Codice:
#!/bin/sh
echo 1 >/proc/driver/pppoe/pppoe_relay_enable
make it executable
chmod +x /etc/amod/conf/rcS1.user
run it for the first time
/etc/amod/conf/rcS1.user
now, at every boot the file /etc/amod/conf/rcS1.user will be called at the end of the boot and it will set /proc/driver/pppoe/pppoe_relay_enable to 1 for you