Got it

HG8245Q2 Subnet Mask change

Created: May 22, 2019 20:27:31Latest reply: Nov 13, 2019 16:32:26 2510 9 2 0 0
  Rewarded HiCoins: 1 (problem resolved)

Hello,


the "Primary Address Subnet Mask" field has first 3 octets are locked to 255. If I triy setting mask to "255.255.0.0" for 192.168.*.* range I'm getting:

"Primary address subnet mask "255.255.0.0" is invalid." error.


There is a js function ( isMaskOf24BitOrMore) in resource/common/util.js?2018013020073372553184798 that stops me from setting the correct mask:

function isMaskOf24BitOrMore(mask)
{
	var i = 0, num = 0;

	if(false == isValidSubnetMask(mask))
	{
		return false;
	}

	var maskParts = mask.split('.');

	for(i = 0;i < 3;i++)
	{
		num = parseInt(maskParts[i]);

		if(num != 255)
			return false;
	}

	return true;

}



Anyone knows why is it there ?

Featured Answers

Recommended answer

GongXiaochuan
Created May 23, 2019 00:37:40

Hi, if you want to setting for the PC dialup on the LAN side.

A maximum of 253 addresses are supported. Therefore, the mask length is 255.255.255.0
View more
  • x
  • convention:

All Answers
Hi, if you want to setting for the PC dialup on the LAN side.

A maximum of 253 addresses are supported. Therefore, the mask length is 255.255.255.0
View more
  • x
  • convention:

Hi @GongXiaochuan,

thank you for the answer. Sorry I don't understand what you mean.

For the IP range, 192.168.*.* mask "255.255.0.0" is fine, but even if I try setting something like "255.255.240" I'm getting the error.

Can you explain what do you mean by: "PC dialup" ?

Thx again, Lukasz
View more
  • x
  • convention:

PC dialup mean PC connect to ONT LAN port , and the ONT LAN port only can support 253 addresses ,so cannot configure the mask like 255.255.240.0
View more
  • x
  • convention:

it's good
View more
  • x
  • convention:

I have the same problem, can i know the answer too?
View more
  • x
  • convention:

I have the same problem, can i know the answer too?
View more
  • x
  • convention:

I have the same problem, can i know the answer too?
View more
  • x
  • convention:

I have the same problem, can i know the answer too?@GongXiaochuan
View more
  • x
  • convention:

I have the same problem, can i know the answer? i cant see it
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.