It's incredable. When i add 2 section route for interface wan and reboot router, i see. Pptp config it is worked. I tested next commands: ubus call network.interface.isp up/down ubus call network.interface.wan up/down
if section route is comments. Then reboot router. Execute command 'ubus call network.interface.isp down'. Manual add route executing command "ip". Execute command 'ubus call network.interface.isp down' not work. :-( If section route uncomment and reboot router, commanda ubus call network.interface.isp up/down execute is win. Logs: # cat /etc/config/network: ... lan, wan(not changed) config interface wan option ifname eth0.2 option proto static option ipaddr 10.1.141.15 option netmask 255.255.255.192 option peerdns 1 option dns '81.28.160.1 81.28.160.111' config route option interface wan option target 192.168.0.0 option netmask 255.255.255.0 option gateway 10.1.141.1 config route option interface wan option target 81.28.160.0 option netmask 255.255.224.0 option gateway 10.1.141.1 config interface isp option 'ifname' 'ppp0' option 'device' 'ppp0' option 'proto' 'pptp' option 'username' 'username' option 'password' 'password' option 'persist' '1' option 'server' 'server.avtograd.ru' option 'keepalive' '10' option 'buffering' '1' # resolveip server.avtograd.ru 192.168.0.17 192.168.0.18 192.168.0.1 192.168.0.2 192.168.0.3 192.168.0.4 192.168.0.5 192.168.0.6 192.168.0.7 192.168.0.8 192.168.0.9 192.168.0.10 192.168.0.11 192.168.0.12 192.168.0.13 192.168.0.14 192.168.0.15 192.168.0.16 # cat /etc/resolv.conf # Interface wan nameserver 81.28.160.111 nameserver 81.28.160.1 Explain please. Why is not working version with manual adding routes? have searched for, but do not know where. :-( On Wed, Nov 7, 2012 at 9:08 PM, Илья Кучмин <ikuch...@gmail.com> wrote: > I execute command for listen status: > > # ubus call network.interface.isp status > { > "up": false, > "pending": false, > "available": false, > "autostart": true, > "proto": "pptp", > "data": { > > }, > "errors": [ > { > "subsystem": "interface", > "code": "NO_DEVICE" > } > ] > > What does the error "No Device"? > Thanks for any idea. > > > On Wed, Nov 7, 2012 at 8:19 PM, Илья Кучмин <ikuch...@gmail.com> wrote: > >> I trying resolvip in console. Is's ok. >> >> >> On Wed, Nov 7, 2012 at 6:51 PM, Daniel Golle <dgo...@allnet.de> wrote: >> >>> On 07/11/12 16:27, Илья Кучмин wrote: >>> > Any idea? Or /etc/config/network is depricated? >>> Not at all, /etc/config/network is the way. >>> Anyway, what you do there looks quite correct and given that all required >>> packages are installed (ppp-mod-pptp and stuff) it should work (and does >>> for >>> me). I never tried with empty username/password though. >>> Maybe you are affected by the bug which makes resolveip hang on some >>> platforms >>> (I got no idea if x86 is affected). >>> Please try >>> >>> resolveip www.openwrt.org >>> >>> and see if it works. >>> >>> >>> >>> nslookup www.openwrt.org >>> >>> should always work. >>> >>> >>> Cheers >>> >>> >>> Daniel >>> >> >> >
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel