Questions tagged [netmask]

A bitwise mask that shows which part of the IP address is shared by all computers in the subnetwork and is used to identify them all together in some larger network. The IP address part that is not flagged by this mask identifies individual computers in the subnetwork.

Netmask can be specified either in quad-dotted decimal representation like 255.255.254.0 (means the seven lower bits identify computers in subnetwork) or, together with IP address, as a number of the high bits used by the larger network and not by subnetwork (192.168.80.0/23, the same).

The bitwise AND operation between mask and IP address results the address of the network itself, and the remainder identifies the computer LAN connector within that network.

81 questions
-1
votes
1 answer

Netmask and ip are incompatible in dlink dir-300

I have Dlink Dir-300 wireless router. I have to set a static ip settings there. I specify Ip as 192.168.242.3 Netmask: 255.255.0.0. When I press enter it says that the ip is invalid. Although such configuration works on another(linksys) router…
John_Doe
  • 35
  • 3
-1
votes
1 answer

Function that return a list of IP addresses for a given IP adress and subnetmask

I need help in writing a function in C/C++ that receives two parameters: IP address and subnetmask. The function needs to reutrn a list of all IP addresses that are in the associated network. For example: Given two parameters: IP address =…
RajedBuli
  • 13
  • 1
  • 3
-1
votes
1 answer

Enable interface / set IP from C++ (with Qt) and Linux

I need to bring an interface up/down from C++ running on Linux, and set the IP/netmask (And I use Qt in case that helps). I need to create the equivalent capability of the ifconfig command from within c++. Is there an interface/library available…
TSG
  • 3,545
  • 8
  • 45
  • 101
-1
votes
1 answer

Converting netmasks php

How can I convert a netmask to a specific netmask. Example: 127.0.0.0/16 Convert to /24 netmask. It should output something like: 127.0.0.0/24 127.0.1.0/24 127.0.2.0/24 127.0.2.0/24 etc. all the way up to 127.0.255.0/24. How can this be…
ChrisG
  • 646
  • 5
  • 12
-2
votes
1 answer

trouble with netmask obtained from udhcpd

I'm trying to use udhcpd, a dhcp server in busybox, to obtain IP adress. I'm working on an ARM plateform with a standard linux on it. The dhcp client IP address is ok, according to range setted in the udhcpd.conf file but the netmask is set to…
Toon
  • 3
  • 5
-3
votes
2 answers

IP Filtering/Matching by host mask with PHP & MySQL

I'm wanting to do something similar to this: Matching an IP to a CIDR mask in PHP 5? Except, I want to store a list of disallowed IP/Masks in a MySQL table and check for a match. Just like the example in the link, something like '10.2.0.0/16' would…
ShaunO
  • 233
  • 1
  • 3
  • 12
1 2 3 4 5
6