Questions tagged [netmask]
41 questions
0
votes
3 answers
What netmask should be used on an aliased address in same subnet as the primary IP?
I have an interface with an IP in a class B subnet. I want to add another IP in the came class B as an alias on the same interface. What netmask should I use? Some people say to use 255.255.255.255, while others say to use the regular netmask of the…

Bart B
- 3,457
- 6
- 31
- 42
0
votes
1 answer
Why are two IP addresses within the same subnet unable to ping each other?
I was setting up ip addresses between two devices and I noticed something odd. I feel like I am missing an important fundamental here:
Context:
Device A: 10.30.0.1/12
Device B: 10.2.0.2/12
if I set up the IP like this, then A and B cannot ping each…

DSdavidDS
- 3
- 2
0
votes
1 answer
networking default gateway, default route
in ipv4 cidr notation you can have an ip address like 10.10.20.0/24
it's expanded to
network : 10.10.20.0
first ip : 10.10.20.1
last ip : 10.10.20.254
broadcast: 10.10.20.255
netmask : 255.255.255.0
That means I have a usable ip range from…

sean
- 3
- 1
0
votes
1 answer
Error: any valid prefix is expected rather than "172.31.1.102/255.255.255.8"
The command ifup from ifupdown fails when using some mask for static configuration on Ubuntu 20.04 LTS.
Example of working configuration
$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto enp1s0
iface enp1s0 inet static
address …

Clèm
- 119
- 1
- 1
- 7
0
votes
1 answer
How does a router route an ip packet if two subnets are attached with different netmasks but same prefix
Imagine we have 3 subnets attached to one router:
Host A: 192.168.1.1 Netmask: 255.255.255.0
Host B: 192.168.2.2 Netmask: 255.255.255.0
Host C: 192.168.2.3 Netmask: 255.255.0.0
If Host A sends an IP packet to the ip 192.168.2.3, how does the router…

Sebi2020
- 103
- 2
-1
votes
1 answer
Bad mask for IP 192.168.0.0 Cisco Packet Tracer
I have to do next task: connect three LAN networks with Cisco packet tracer. I have to use net addresses 192.168.0.0/24; 192.168.10.0/24; 192.168.20.0/24. When I am trying to set router address 192.168.0.0 and mask 255.255.255.0 I have error message…

IntoTheDeep
- 101
- 1
- 1
- 6
-1
votes
1 answer
Network setting for similar looking subnets
I have a CentOS 7 PC (with 2 NIC cards) and 2 servers. I'd like to access these servers from the 2 NICs in a different way. Something like one server can be reached only from NIC1, and the other server should be accessed only from NIC2. I've…

Bert
- 1,028
- 1
- 16
- 33
-1
votes
1 answer
Can 2 IP's in the same network communicate with 2 different netmask
I need to expand a network really quick and don't have time or access to change the netmask of all devices.
Can the following communicate?
IP 1 - 192.168.10.10 mask 255.255.255.0
IP 2 - 192.168.10.15 mask 255.255.0.0
Our switches we don't have the…

nennis2k4
- 19
- 1
-1
votes
2 answers
Why can't my networks reach each other?
We have two Buffalo WZR-HP-G300NH2 routers, with the default firmware, DD-WRT v24SP2-MULTI (10/31/11) std - build 17798. Each has a separate cable internet connection with a public static IP address. They are both in the 24.123.68.0/24 space.
Both…

HOLOGRAPHICpizza
- 153
- 1
- 5
-1
votes
6 answers
Is there a tool for subnetting for free?
I'd like a program that I can write in an IP address and give it the Subnet mask and have it divide the networks in C level networks.
Thanks.
Something that I can download please, not a website.
Sergio Tapia
-5
votes
2 answers
Difference between connecting from inside and outside a subnet
Let's say provider granted me IP addresses 10.20.30.1 - 10.20.30.254, so the subnet address is 10.20.30.0 and mask 255.255.255.0. I set my router to 10.20.30.1 and computers to 10.20.30.2 and higher.
Now, what is the difference between accessing…

Youda008
- 101
- 2