|
My DSL/WiFi router provided by my ISP has an internal IP address of 10.0.0.138 , the addresses provided by DHCP are in the format of 10.0.0.xxx .
Now, I want to start using static IP addresses on my local network, and I don't know what to provide for ...
Started by torbengb on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at superuser):
A subnet mask is used to tell the network devices (whether it be the computer or any are remote....
A subnet mask refers to the practice logical networks.
Most probably, you are after a subnet mask of 255.255.255.0.
|
|
I have an IPaddress and subnet mask, both in unsigned long; how can I AND both of these and check whether my incoming ipaddress (ip2) belongs to the same subnet or not?
like:
if (ip1 & subnet == ip2 & subnet) then same subnet.
Started by Ashish on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Just like you did it:
if ((ip1 & subnet....
The original code was effectively the same as:
if (ip1 & (subnet == ip2) & subnet) ...
Use parentheses - the precedence levels are confusing:
if ((ip1 & subnet) == (ip2 & subnet)) ...
|
|
How to get Subnet mask address of local system using java programming.?
Answer Snippets (Read the full thread at stackoverflow):
You can calculate the subnet mask from this if you would rather() in several network application APIs returns subnet mask in java.net.InetAddress form for specified IP.
Suggests, the network prefix length.
|
Ask your Facebook Friends
|
How do I create valid IP ranges given an IP address and Subnet mask in Perl? I understand the concept of generating the IP ranges but need help writing in Perl. For example, if I AND the IP address and subnet mask I get the subnet number. Adding 1 to ...
Answer Snippets (Read the full thread at stackoverflow):
IPv4Addr Quick & dirty way to find the subnet mask:
use Socket; my $subnet_mask = inet_ntoa(inet_aton($ip_str) & inet_aton($mask_str)):
If you want to play with bitwise operators yourself, it becomes.
|
|
You are given the network 192.168.157.0 with subnet mask 255.255.255.0 to represent your organisation. If it is decided that 3 bits are going to be "borrowed" for subnetting purposes, how many hosts can each subnet have?
I need help on this question -...
Started by dave on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at serverfault):
The 0s in the mask indicate of thirty-two minus the number of bits of subnet mask, minus two (the "all ones" and "all zeros is the given ip address....
Your subnet mask is 255.255.255.0, or....
.10101000.101010111.
|
|
I'd like to find a way to do a SQL query that will calculate the cidr (bit representation) of a subnet mask stored in the database. So for example, I've got either 255.255.255.0 or its decimal value (4294967040) stored in the database. I'd like to do ...
Started by Matt P on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
CREATE TABLE cidr ( bits INT UNSIGNED PRIMARY KEY, mask), (25), (26), (27), (28),....
In cases like this, it makes sense to create a small table that stores these 32 masks and the associated CIDR number.
Possible subnet masks.
|
|
Our network is currently working on a 192.168.0.x subnet, all controlled through DHCP, except for the few main servers who have hard-configured IP address settings.
What would I kill if I changed the DHCP-published subnet mask from 255.255.255.0 to 25...
Started by Philip on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
If you....
Already.
A Simple Way:
A simple way works by subnet masks, you could always cut the subnet in half with a mask of 255.255.255.128.
Range using the same subnet mask would be 192.168.4.1 to 192.168.7.254.
|
|
I confess - I'm a tad lost.
Our ISP has provided us with several additional IP addresses for our ADSL2 account. The email they sent specified ip addresses with subnet 255.255.255.240:
203.214.69.1/28 to 203.214.69.14/28 gw: 203.206.182.192
I'm attempting...
Started by chickeninabiscuit on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at serverfault):
When adding aliases in our firewall's connection configuration should I use 28 or 32 as the subnet mask?
If I where in your shoes I would that on a network....
Is a CIDR notation that describes a subnet mask of 255.255.255.240.
|
|
On a consumer-grade router, if I set a subnet mask to limit the number of concurrent users (for example, 255.255.255.248), could this cause problems for those users (accessing the web, etc)? Do I have to be aware of anything upstream at the ISP, or does...
Started by Nathan Long on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
If you are using publicly routable address space, then using an incorrect mask could....
The big part about subnet masks is that all the members of the subnet have to agree what the mask to the rest of the world.
|
|
I followed these instructions on www.hottonetworking.com to set up VPN on a clean install of Windows Server 2008 SP2 (not R2 yet).
When I then establish a VPN connection to that machine from a client machine (running Windows 7 RC), everything succeeds...
Started by Philipp Schmid on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Or interfaces) you are using are fully configured for TCP/IP v4 with IPs, Subnet Mask on my laptop, and all of them work and are assigned the 255.255.255.255 subnet mask, so I beleive.
|