Associate
- Joined
- 14 Jan 2015
- Posts
- 1
Hello everyone,
I would need to quickly change the ip disabling and reenabling wan.
With the modem I had before there was a button on the web page.
With Asus DSL-N55U I go into advanced settings> wan> pvc edit and select first enable wan no, then yes.
I could use to create a script like this:
option explicit
Dim oShell
September oShell = WScript.CreateObject (“WScript.Shell”)
oShell.Run “telnet”
WScript.Sleep 3000
oShell.Sendkeys “open 192.168.1.1 ~”
WScript.Sleep 3000
oShell.Sendkeys “admin ~”
WScript.Sleep 3000
oShell.Sendkeys “mypassword ~”
WScript.Sleep 3000
oShell.Sendkeys “reboot ~”
WScript.Sleep 3000
oShell.Sendkeys “~”
Wscript.Quit
Using telnet I could reboot as the script (reboot) and to disable and re-enable the wireless (radio off – radio on) but I can not find the command to disable and re-enable the wan.
Thank you for your help
——————————
ASUSWRT DSL-N55U_3.0.0.4 Thu Aug 22 10:00:42 UTC 2013
admin@DSL-N55U:/tmp/home/root# uname -a
Linux DSL-N55U 2.6.2219 #26 Thu Aug 22 18:00:51 CST 2013 mips GNU/Linux
admin@DSL-N55U:/tmp/home/root# ls /*bin /*/*bin
/tmp/trx_hdr.bin
/bin:
ash dd grep login nvram rt2860apd touch
ated df gunzip ls pidof rtinicapd true
busybox dmesg gzip mkdir ping sdparm umount
cat echo hw_nat mknod ping6 sed uname
chmod ecmh ionice more ps sh usleep
chown egrep iwconfig mount pwd sleep vi
comgt fgrep iwpriv mv rm spectrum watch
cp flash kill netstat rmdir sync wscd
date fsync ln nice rstats tar zcat
/sbin:
ATE lsmod
FREAD mdev
FWRITE mkdosfs
add_account mke2fs
add_folder mkfs.ext2
add_multi_routes mkfs.ext3
arp mkfs.vfat
asus_lp mkswap
asus_sd mod_account
asus_sg mod_folder
asus_sr modify_if_exist_new_folder
asus_tty modprobe
asus_usb_interface mtd-erase
asus_usbbcm mtd-unlock
asuscfe_2g mtd-write
asuscfe_5g ntp
auto_macclone ots
autodet pc
blkid radio
chk_app_state rc
console rcheck
convert_dsl_wan_settings read_sms
create_if_no_var_files reboot
ddns_updated restart_wireless
del_account rmmod
del_folder route
dhcp6c-state rtkswitch
disk_monitor run_app_script
disk_remove run_pptpd
dosfsck run_telnetd
e2fsck send_sms
ejusb service
fdisk set_permission
firmware_check setconsole
free_caches setup_dnsmq
fsck.ext2 sigmon
fsck.ext3 stainfo_2g
fsck.minix stainfo_5g
fsck.msdos swapoff
fsck.vfat swapon
gen_ralink_config syslogd
get_account_list tcpcheck
get_all_folder test_disk1
get_apps_name test_disk2
get_folder_list test_if_exist_account
get_permission test_if_exist_share
get_phy_speed test_of_var_files
get_phy_status test_share
get_var_file_name tune2fs
halt udevtrigger
hotplug udhcpc
hotplug2 usb_notify
how_many_layer usbled
ifconfig vconfig
init wanduck
initial_all_var_file watchdog
initial_folder_list wlcconnect
initial_var_file wlcscan
insmod wpsaide
ipv6aide wpsfix
klogd write_smb_conf
led_ctrl zcip
/usr/bin:
[ dirname free nohup strings unzip
[[ du head nslookup tail uptime
awk env killall printf test wc
basename ether-wake less readlink top wget
clear expr logger renice tr which
cmp find lsusb smbpasswd traceroute
cut flock md5sum sort traceroute6
/usr/sbin:
3ginfo.sh chpasswd nmbd
adslate chpasswd.sh nozip_webs_update.sh
app_base_library.sh crond nozip_webs_upgrade.sh
app_base_link.sh cru ntpclient
app_base_packages.sh dhcp6c pppd
app_cancel.sh dhcp6s pppoe-relay
app_check_folder.sh dnsmasq pptpctrl
app_check_pool.sh ebtables pptpd
app_fsck.sh ez-ipupdate radvd
app_fsck_all.sh httpd req_dsl_drv
app_get_field.sh hub-ctrl scsi-start
app_init_run.sh igmpproxy scsi-stop
app_install.sh infosvr smbd
app_move_to_pool.sh ip sysinfo
app_remove.sh ip6tables tc
app_set_enabled.sh ip6tables-restore telnetd
app_stop.sh ip6tables-save tp_init
app_switch.sh iptables u2ec
app_update.sh iptables-restore udpxy
app_upgrade.sh iptables-save usb_modeswitch
arpstorm l2tp-control vsftpd
auto_det l2tpd webs_update.sh
bcrelay lld2d webs_upgrade.sh
brctl lpd wpa_cli
chat miniupnpd wpa_supplicant
check_spectrum.sh netstat-nat zip_webs_update.sh
chkntfs networkmap zip_webs_upgrade.sh
I would need to quickly change the ip disabling and reenabling wan.
With the modem I had before there was a button on the web page.
With Asus DSL-N55U I go into advanced settings> wan> pvc edit and select first enable wan no, then yes.
I could use to create a script like this:
option explicit
Dim oShell
September oShell = WScript.CreateObject (“WScript.Shell”)
oShell.Run “telnet”
WScript.Sleep 3000
oShell.Sendkeys “open 192.168.1.1 ~”
WScript.Sleep 3000
oShell.Sendkeys “admin ~”
WScript.Sleep 3000
oShell.Sendkeys “mypassword ~”
WScript.Sleep 3000
oShell.Sendkeys “reboot ~”
WScript.Sleep 3000
oShell.Sendkeys “~”
Wscript.Quit
Using telnet I could reboot as the script (reboot) and to disable and re-enable the wireless (radio off – radio on) but I can not find the command to disable and re-enable the wan.
Thank you for your help
——————————
ASUSWRT DSL-N55U_3.0.0.4 Thu Aug 22 10:00:42 UTC 2013
admin@DSL-N55U:/tmp/home/root# uname -a
Linux DSL-N55U 2.6.2219 #26 Thu Aug 22 18:00:51 CST 2013 mips GNU/Linux
admin@DSL-N55U:/tmp/home/root# ls /*bin /*/*bin
/tmp/trx_hdr.bin
/bin:
ash dd grep login nvram rt2860apd touch
ated df gunzip ls pidof rtinicapd true
busybox dmesg gzip mkdir ping sdparm umount
cat echo hw_nat mknod ping6 sed uname
chmod ecmh ionice more ps sh usleep
chown egrep iwconfig mount pwd sleep vi
comgt fgrep iwpriv mv rm spectrum watch
cp flash kill netstat rmdir sync wscd
date fsync ln nice rstats tar zcat
/sbin:
ATE lsmod
FREAD mdev
FWRITE mkdosfs
add_account mke2fs
add_folder mkfs.ext2
add_multi_routes mkfs.ext3
arp mkfs.vfat
asus_lp mkswap
asus_sd mod_account
asus_sg mod_folder
asus_sr modify_if_exist_new_folder
asus_tty modprobe
asus_usb_interface mtd-erase
asus_usbbcm mtd-unlock
asuscfe_2g mtd-write
asuscfe_5g ntp
auto_macclone ots
autodet pc
blkid radio
chk_app_state rc
console rcheck
convert_dsl_wan_settings read_sms
create_if_no_var_files reboot
ddns_updated restart_wireless
del_account rmmod
del_folder route
dhcp6c-state rtkswitch
disk_monitor run_app_script
disk_remove run_pptpd
dosfsck run_telnetd
e2fsck send_sms
ejusb service
fdisk set_permission
firmware_check setconsole
free_caches setup_dnsmq
fsck.ext2 sigmon
fsck.ext3 stainfo_2g
fsck.minix stainfo_5g
fsck.msdos swapoff
fsck.vfat swapon
gen_ralink_config syslogd
get_account_list tcpcheck
get_all_folder test_disk1
get_apps_name test_disk2
get_folder_list test_if_exist_account
get_permission test_if_exist_share
get_phy_speed test_of_var_files
get_phy_status test_share
get_var_file_name tune2fs
halt udevtrigger
hotplug udhcpc
hotplug2 usb_notify
how_many_layer usbled
ifconfig vconfig
init wanduck
initial_all_var_file watchdog
initial_folder_list wlcconnect
initial_var_file wlcscan
insmod wpsaide
ipv6aide wpsfix
klogd write_smb_conf
led_ctrl zcip
/usr/bin:
[ dirname free nohup strings unzip
[[ du head nslookup tail uptime
awk env killall printf test wc
basename ether-wake less readlink top wget
clear expr logger renice tr which
cmp find lsusb smbpasswd traceroute
cut flock md5sum sort traceroute6
/usr/sbin:
3ginfo.sh chpasswd nmbd
adslate chpasswd.sh nozip_webs_update.sh
app_base_library.sh crond nozip_webs_upgrade.sh
app_base_link.sh cru ntpclient
app_base_packages.sh dhcp6c pppd
app_cancel.sh dhcp6s pppoe-relay
app_check_folder.sh dnsmasq pptpctrl
app_check_pool.sh ebtables pptpd
app_fsck.sh ez-ipupdate radvd
app_fsck_all.sh httpd req_dsl_drv
app_get_field.sh hub-ctrl scsi-start
app_init_run.sh igmpproxy scsi-stop
app_install.sh infosvr smbd
app_move_to_pool.sh ip sysinfo
app_remove.sh ip6tables tc
app_set_enabled.sh ip6tables-restore telnetd
app_stop.sh ip6tables-save tp_init
app_switch.sh iptables u2ec
app_update.sh iptables-restore udpxy
app_upgrade.sh iptables-save usb_modeswitch
arpstorm l2tp-control vsftpd
auto_det l2tpd webs_update.sh
bcrelay lld2d webs_upgrade.sh
brctl lpd wpa_cli
chat miniupnpd wpa_supplicant
check_spectrum.sh netstat-nat zip_webs_update.sh
chkntfs networkmap zip_webs_upgrade.sh