cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1259
Views
0
Helpful
1
Replies

RV042G subnet-mask dropdown-menu

floriankraatz
Level 1
Level 1

Dear Cisco-Support,

after recovering from the PPPoE-port-forwarding-fiasco I had with the RV180 (see: https://supportforums.cisco.com/message/3766310), I decided to try again with a Small Business Router from Cisco. This time I took the RV042G, hoping that the higher age of this product comes with a more mature firmware.

So far the functions I need, work satisfying. There is only one issue: The subnet-mask is only configurable using a dropdown-menu. I've read the posts from the Cisco-Support staff saying, that this is because it is only a SMB Router. So, we are a small business and we use the 172.20.x.y net for several reasons. One of it is to distinguish and group several network devices using the third block of the IP. Eg. our printers IPs start with 172.20.5.x and so on.

My question is: Is it really impossible to change the subnet-mask dropdown-menu to a simple text-field in the frontend? Because it is possible to change the subnet to whatever one needs by a little cURL-magic:

#!/bin/bash

SET_IPADDR="172.20.1.1"

SET_NETMASK="255.255.0.0"

CISCO_IP=192.168.1.1

# CISCO_IP=192.168.1.1


LOGIN_PAGE="http://${CISCO_IP}/cgi-bin/userLogin.cgi"

LOGIN_USER="admin"

LOGIN_PASS_MD5="<the password is encoded (sniff the traffic to get it)>"

LOGIN_DATA="login=true&portalname=CommonPortal&password_expired=0&auth_key=1964300002&username=${LOGIN_USER}&password=${LOGIN_PASS_MD5}"

CONF_PAGE="http://${CISCO_IP}/network.htm"

CONF_DATA="page=network.htm&submitStatus=1&setIpMode_value=1&setIpMode=1&ipAddr=${SET_IPADDR}&lanMask=${SET_NETMASK}"

curl -c /tmp/curl_cookies --data "${LOGIN_DATA}" "${LOGIN_PAGE}"

curl -b /tmp/curl_cookies --data "${CONF_DATA}" "${CONF_PAGE}"

This sets the new subnet-mask permanently (even survives a reboot and is displayed correctly on the system-status page) and I have not discovered any problems.

The only thing is, if you change settings on the setup -> network page, the netmask is reset and you have to rerun this script.

I'd really appreciate if this would be changed, since this is a "feature" implemented more flexible in most consumer routers.

Thanks in advance!

With best regards,

Florian Kraatz

1 Reply 1

Hello, 

I know this is very old post, but if you like please tell how to execute the script and how to login to the RV042G router.