Last active
January 7, 2022 20:27
-
-
Save louisvarley/4e28eafd5e3cf108f2ecb809078f806b to your computer and use it in GitHub Desktop.
BT SmartHub 2 Enable IP Subnets Outside 192.168.X.X range
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rather annoying that the BT SmartHub hub 2 cannot have IP addresses assigned which are outside the 192.168.X.X range | |
My WAN side of my network has the 10.15.0.1 while my network side has 10.25.0.1 and i did not want to change this. | |
Here is some code which will allow you to set ANY ip and DHCP range to your BT SmartHub 2 | |
1) goto the IPV4 page where you change the IP address of the router | |
2) open your browsers javascript console. Normally you can right click, anywhere on the page, and click inspect, then click the console tab | |
3) enter the following into the console changing the values as you need and hit enter. | |
########### | |
dhcpStart="10.15.0.2"; | |
dhcpEnd="10.15.0.255"; | |
gatewayIP="10.15.0.1"; | |
subnetMask="255.255.0.0"; | |
########### | |
4) now paste in the following code | |
########### | |
setCfg("ip4addr", gatewayIP); | |
setCfg("ip4mask", subnetMask); | |
setCfg("dhcp4s_eb", "1"); | |
setCfg("dhcp4pool_s", dhcpStart); | |
setCfg("dhcp4pool_e", dhcpEnd); | |
setCfg("dhcp_change", "1"); | |
sendForm("my_network.htm", "", ""); | |
sending = 1; | |
statusChange("statusSavingChange","statusChangeNTBsaved"); | |
glo_changeNeedSave=0; | |
var page = "http://"+gatewayIP; | |
setTimeout( function(){location.href =page;}, 3000); | |
############ | |
You should be redirected to your new IP. For me the first time i did this, DHCP was still assigning 192.168.X.X until i restarted the router | |
If you cannot access the BT SmartHub 2, manually set your IP on your computer to something in your new range. | |
If all else fails, just factory restore the BT SmartHub 2 and try again |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment