找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1088|回复: 5

[k2p] 请问K2P官改,怎么定时宽带账号重播?

[复制链接]
发表于 2019-7-29 10:52 | 显示全部楼层 |阅读模式
我DDNS和宽带换IP的不同步。我想每天晚上0点K2P重拨切换IP然后再DDNS解析,这样就不会有重拨后DDNS解析不了的情况了。
我在论坛搜的那个重启的方法。感觉不靠谱
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-7-29 10:56 | 显示全部楼层
官改的右上角有定时任务 自己去设置

点评

我主要不知道什么命令。。  详情 回复 发表于 2019-7-29 10:58
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-7-29 10:58 | 显示全部楼层
北方困难群众 发表于 2019-7-29 10:56
官改的右上角有定时任务 自己去设置

我主要不知道什么命令。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-29 11:11 | 显示全部楼层
0 0 * * * /sbin/ifup wan

点评

我试了没有用额 16 11 * * * /sbin/ifup wan  详情 回复 发表于 2019-7-29 11:18
Mon Jul 29 11:16:01 2019 cron.info crond[2139]: crond: USER root pid 15566 cmd /usr/bin/sharedwifi_daemon.sh Mon Jul 29 11:16:01 2019 cron.info crond[2139]: crond: USER root pid 15567 cmd /sbin/ifup  详情 回复 发表于 2019-7-29 11:18
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-7-29 11:18 | 显示全部楼层

Mon Jul 29 11:16:01 2019 cron.info crond[2139]: crond: USER root pid 15566 cmd /usr/bin/sharedwifi_daemon.sh
Mon Jul 29 11:16:01 2019 cron.info crond[2139]: crond: USER root pid 15567 cmd /sbin/ifup wan
Mon Jul 29 11:16:01 2019 daemon.info pppd[13796]: Terminating on signal 15
Mon Jul 29 11:16:01 2019 daemon.info pppd[13796]: Connect time 1.2 minutes.
Mon Jul 29 11:16:01 2019 daemon.info pppd[13796]: Sent 15939475 bytes, received 1704629 bytes.
Mon Jul 29 11:16:01 2019 daemon.notice netifd: Network device 'pppoe-wan' link is down
Mon Jul 29 11:16:01 2019 daemon.err miniupnpd[14566]: Failed to get IP for interface pppoe-wan
Mon Jul 29 11:16:01 2019 daemon.warn miniupnpd[14566]: SendNATPMPPublicAddressChangeNotification: cannot get public IP address, stopping
Mon Jul 29 11:16:01 2019 daemon.notice pppd[13796]: Connection terminated.
Mon Jul 29 11:16:01 2019 daemon.info pppd[13796]: Exit.
Mon Jul 29 11:16:01 2019 daemon.notice netifd: Interface 'wan' is now down
Mon Jul 29 11:16:01 2019 daemon.notice netifd: Interface 'wan' is disabled
Mon Jul 29 11:16:01 2019 daemon.notice netifd: Interface 'wan' is enabled
Mon Jul 29 11:16:01 2019 daemon.notice netifd: Interface 'wan' is setting up now
Mon Jul 29 11:16:01 2019 daemon.notice netifd: Network device 'eth1' link is down
Mon Jul 29 11:16:01 2019 daemon.notice netifd: Interface 'wan' has link connectivity loss
Mon Jul 29 11:16:01 2019 daemon.notice netifd: Network device 'eth1' link is up
Mon Jul 29 11:16:01 2019 daemon.notice netifd: Interface 'wan' has link connectivity
Mon Jul 29 11:16:01 2019 kern.warn kernel: [  504.752000] eth1: ===> VirtualIF_close
Mon Jul 29 11:16:01 2019 kern.warn kernel: [  504.760000] GDMA2_MAC_ADRH -- : 0x0000747d
Mon Jul 29 11:16:01 2019 kern.warn kernel: [  504.768000] GDMA2_MAC_ADRL -- : 0x245332f4
Mon Jul 29 11:16:01 2019 kern.info kernel: [  504.780000] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
Mon Jul 29 11:16:01 2019 kern.warn kernel: [  504.792000] GDMA2_MAC_ADRH -- : 0x0000747d
Mon Jul 29 11:16:01 2019 kern.warn kernel: [  504.800000] GDMA2_MAC_ADRL -- : 0x245332f4
Mon Jul 29 11:16:01 2019 kern.warn kernel: [  504.808000] eth1: ===> VirtualIF_open
Mon Jul 29 11:16:01 2019 daemon.info pppd[15700]: Plugin rp-pppoe.so loaded.
Mon Jul 29 11:16:01 2019 daemon.info pppd[15700]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Mon Jul 29 11:16:01 2019 daemon.notice pppd[15700]: pppd 2.4.7 started by root, uid 0
Mon Jul 29 11:16:01 2019 daemon.err pppd[15700]: Interface eth1 has MTU of 1488 -- should be at least 1500.
Mon Jul 29 11:16:01 2019 daemon.err pppd[15700]: This may cause serious connection problems.
Mon Jul 29 11:16:01 2019 daemon.info pppd[15700]: Sent PADT
Mon Jul 29 11:16:01 2019 daemon.info pppd[15700]: PPP session is 53612
Mon Jul 29 11:16:02 2019 daemon.warn pppd[15700]: Connected to e0:28:61:2b:40:12 via interface eth1
Mon Jul 29 11:16:02 2019 daemon.info pppd[15700]: Using interface pppoe-wan
Mon Jul 29 11:16:02 2019 daemon.notice pppd[15700]: Connect: pppoe-wan <--> eth1
Mon Jul 29 11:16:02 2019 daemon.info pppd[15700]: Remote message: 0;User(18971080231) Authenticate OK, Request Accept by hb.cn
Mon Jul 29 11:16:02 2019 daemon.notice pppd[15700]: PAP authentication succeeded
Mon Jul 29 11:16:02 2019 daemon.notice pppd[15700]: peer from calling number E0:28:61:2B:40:12 authorized
Mon Jul 29 11:16:02 2019 daemon.err miniupnpd[14566]: Failed to get IP for interface pppoe-wan
Mon Jul 29 11:16:02 2019 daemon.warn miniupnpd[14566]: SendNATPMPPublicAddressChangeNotification: cannot get public IP address, stopping
Mon Jul 29 11:16:02 2019 daemon.err miniupnpd[14566]: Failed to get IP for interface pppoe-wan
Mon Jul 29 11:16:02 2019 daemon.warn miniupnpd[14566]: SendNATPMPPublicAddressChangeNotification: cannot get public IP address, stopping
Mon Jul 29 11:16:02 2019 daemon.notice pppd[15700]: local  IP address 171.113.56.108
Mon Jul 29 11:16:02 2019 daemon.notice pppd[15700]: remote IP address 171.113.56.1
Mon Jul 29 11:16:02 2019 daemon.notice pppd[15700]: primary   DNS address 202.103.24.68
Mon Jul 29 11:16:02 2019 daemon.notice pppd[15700]: secondary DNS address 202.103.44.150
Mon Jul 29 11:16:02 2019 daemon.warn dnsmasq[14436]: no servers found in /tmp/resolv.conf.auto, will retry
Mon Jul 29 11:16:02 2019 daemon.notice netifd: Network device 'pppoe-wan' link is up
Mon Jul 29 11:16:02 2019 daemon.notice netifd: Interface 'wan' is now up
Mon Jul 29 11:16:04 2019 daemon.info dnsmasq[14436]: reading /tmp/resolv.conf.auto
Mon Jul 29 11:16:04 2019 daemon.info dnsmasq[14436]: using local addresses only for domain lan
Mon Jul 29 11:16:05 2019 user.notice firewall: Reloading firewall due to ifup of wan (pppoe-wan)
Mon Jul 29 11:16:10 2019 daemon.info dnsmasq[14436]: exiting on receipt of SIGTERM
Mon Jul 29 11:16:13 2019 daemon.info dnsmasq[16030]: started, version 2.71 cachesize 150
Mon Jul 29 11:16:13 2019 daemon.info dnsmasq[16030]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack ipset no-auth no-DNSSEC
Mon Jul 29 11:16:13 2019 daemon.info dnsmasq-dhcp[16030]: DHCP, IP range 192.168.2.100 -- 192.168.2.250, lease time 1d
Mon Jul 29 11:16:13 2019 daemon.info dnsmasq[16030]: using local addresses only for domain lan
Mon Jul 29 11:16:13 2019 daemon.info dnsmasq[16030]: reading /tmp/resolv.conf.auto
Mon Jul 29 11:16:13 2019 daemon.info dnsmasq[16030]: using local addresses only for domain lan
Mon Jul 29 11:16:13 2019 daemon.info dnsmasq[16030]: read /etc/hosts - 5 addresses
Mon Jul 29 11:16:13 2019 daemon.info dnsmasq[16030]: read /tmp/hosts/dhcp - 1 addresses
Mon Jul 29 11:16:14 2019 daemon.info dnsmasq-dhcp[16030]: read /etc/ethers - 0 addresses
Mon Jul 29 11:16:14 2019 daemon.notice miniupnpd[14566]: shutting down MiniUPnPd
Mon Jul 29 11:16:14 2019 daemon.err miniupnpd[14566]: sendto(udp_shutdown=-1): Bad file descriptor
Mon Jul 29 11:16:14 2019 daemon.err miniupnpd[14566]: sendto(udp_shutdown=-1): Bad file descriptor
Mon Jul 29 11:16:14 2019 daemon.err miniupnpd[14566]: sendto(udp_shutdown=-1): Bad file descriptor
Mon Jul 29 11:16:14 2019 daemon.err miniupnpd[14566]: sendto(udp_shutdown=-1): Bad file descriptor
Mon Jul 29 11:16:14 2019 daemon.err miniupnpd[14566]: sendto(udp_shutdown=-1): Bad file descriptor
Mon Jul 29 11:16:14 2019 daemon.err miniupnpd[14566]: sendto(udp_shutdown=-1): Bad file descriptor
Mon Jul 29 11:16:14 2019 daemon.err miniupnpd[14566]: sendto(udp_shutdown=-1): Bad file descriptor
Mon Jul 29 11:16:14 2019 daemon.err miniupnpd[14566]: sendto(udp_shutdown=-1): Bad file descriptor
Mon Jul 29 11:16:14 2019 daemon.err miniupnpd[14566]: sendto(udp_shutdown=-1): Bad file descriptor
Mon Jul 29 11:16:14 2019 daemon.err miniupnpd[14566]: sendto(udp_shutdown=-1): Bad file descriptor
Mon Jul 29 11:16:14 2019 daemon.err miniupnpd[14566]: sendto(udp_shutdown=-1): Bad file descriptor
Mon Jul 29 11:16:14 2019 daemon.notice miniupnpd[16123]: HTTP listening on port 5000
Mon Jul 29 11:16:14 2019 daemon.warn miniupnpd[16123]: no HTTP IPv6 address, disabling IPv6
Mon Jul 29 11:16:14 2019 daemon.notice miniupnpd[16123]: Listening for NAT-PMP/PCP traffic on port 5351
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-7-29 11:18 | 显示全部楼层

我试了没有用额
16 11 * * * /sbin/ifup wan
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-21 00:25

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表