LAN Connection Configuration for SDconnect C4

  •  
  • Thread starterrekrut385
  • Start date
R
rekrut385
New member
Trusted
Joined
15.01.2024
Messages
10
Solutions
2
Reaction score
3
I read (saw) different meanings in different sources, it confused me.
It is clear that everyone will have their own IP address, it can be assigned arbitrarily. What about the subnet mask?

1. LAN 172.29.127.35 subnet mask (255.255.255.0 or 255.255.0.0)?
2. To configure DOIP, LAN 169.254.0.35 subnet mask (255.255.255.0 or 255.255.0.0)?
 
Solution
T
  • T
    Given by Turonet
There is no "right option".
The numbers depend on the number of devices to which a piece of information can be addressed.
You can also set the subnet mask to (255.0.0.0) and that will also work, but it will be too large.
If (255.255.255.0) works for you, use it.
Imagine connecting three devices to your home Internet. The IP of the first is 192.168.1.2, the second is 192.168.1.3 and the third is 192.168.1.4. As you can see, the first three digits are the same, but the last one changes. The subnet mask identifies each part, the fixed part is "255" and the variable part is "0". In this case, your subnet mask will be (255.255.255.0).
If your network is larger and you need to identify more than 254 devices, your subnet mask will be (255.255.0.0).
 
  • Like [+1]
Reactions:samo, rekrut385 and prcak2005
To understand subnets, you need first to understand IP. Subnetting is used to better control network traffic, allows you to classify network traffic based on network settings, and improves network security by grouping computers (hosts) into logical groups.

IP in version 4 is 32 bits long. Some bits of an IP address define the network, and other bits define the portion of the address that is used to identify network devices (hosts). Each IP address has a subnet mask. By using the subnet mask we can distinguish which part of the address is the network part and which part is the host part, or by using the subnet mask we get the network address and the broadcast address.

IP addresses are divided into several classes. The most commonly used classes are A, B, and C. Each class has a default subnet mask.
Class A has 8 bits reserved for defining the network portion of the address. That's why we mark the default subnet mask for class A as ip_address/8 (for example, 10.0.0.0/8). The remaining 24 bits are reserved for host identification.
Class B has 16 bits to define the network portion of the address. We can write it as ip_address/16 (for example, 172.16.0.0/16). The remaining 16 bits represent hosts.
Class C has 24 bits reserved for defining the network portion of the address. We can write it as ip_address/24 (for example, 192.168.1.0/24). The remaining 8 bits are reserved for host identification.

The subnet mask is a 32-bit number that has the same form as an IP address. Only clients with the same subnet mask can communicate with each other without using a router. A subnet mask is used by a group of computers and network devices.
Depending on the selected network class, it is also assigned a subnet mask by default: Class A (255.0.0.0), Class B (255.255.0.0), Class C (255.255.255.0).

To know which subnet mask to assign to a particular part of the network, we need to know what network structure is required, which parts of the network can communicate with each other, how many clients we have on the network, etc. There are subnet mask calculator programs that do this job elegantly.

So, by defining the subnet mask in your case, you are defining the entire range of IP addresses that can be accessed. But make sure that the set of subnet masks should be the same on the client and server (both sides). Perhaps for a better understanding, you can use a free online subnet calculator and see what I'm talking about (just enter your details and you'll see the options).
 
  • Like [+1]
Reactions:GFC, rekrut385 and Turonet
I looked at the settings on the video, there were different options - it confused me.
Let me clarify my question, I need to connect SDconnect C4 to my laptop via a LAN cable.
The network properties indicate a fixed IP address (mine is 172.29.127.35) and the default subnet mask for it is (255.255.0.0).
In the example with the video, another block has been added - (255.255.255.0).
I tried both options - they all work. But I want to do the only correct option.
Further in the video they write the IP address for DOIP 169.254.0.35 and the mask (255.255.255.0).
Since my network is small, I will set everything to (255.255.255.0), I hope this is correct.
Thanks for answers.
 
There is no "right option".
The numbers depend on the number of devices to which a piece of information can be addressed.
You can also set the subnet mask to (255.0.0.0) and that will also work, but it will be too large.
If (255.255.255.0) works for you, use it.
 
  • Like [+1]
Reactions:Eper and rekrut385
Solution
The subnet mask you choose, will work if you are connecting directly to the C4 or if you don't have many devices on your network. The preferred option is a direct connection to the local network, but it can also be installed through a router.
But take the easy route using just a laptop and C4 ;)
 

Similar threads

CarMan
Replies
5
Views
1K
scorpion4x4
S
Back
Top Bottom