IP与子网路 [英] IP & Subnet

查看:68
本文介绍了IP与子网路的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,在某些情况下,此问题将视为编程问题,但就我而言,它构成了某种质量.我有点理解IP的工作方式,八位位组和位,网络和主机.我知道子网划分有助于将大量主机分解为较小的可管理主机.我没有得到的是它们如何将子网与IP匹配.
我有《 Network +学习指南》(厚书),但是太多的细节使我无法接受.就像本书中提到的A,B,C类一样,但是随后我在网上阅读了一篇文章,其中arent不再使用这些类,这就是为什么要使用子网掩码的原因.
例如,它们如何匹配:

192.168.1.100

255.255.255.0

我知道这可能并不确切,但是我可以更深入地理解.

解决方案

255.255.255.0部分只是一个掩码,用来告诉IP软件地址中有多少位代表您的子网.可以使用255.255.128.0等掩码将大型lan划分为子网.所有最左边的位都用于隔离子网部分,而不匹配的位则表示该子网内的主机.

因此,在上面的示例中,您的子网是192.168.1,它允许您使用254个唯一的主机(保留地址0和255). br/>
255.255.255.0是c类的默认值ip
类别b ip的默认值为255.255.0.0 ip
255.0.0.0是a类ip的默认值

原因是您的主机和网络地址

子网的工作方式如下

255指定ip的网络部分
0指定ip的主机部分

我想我的命名正确,记不清了

但是信息是正确的,希望对您有帮助


I understand that in some cases this question would regard programming but in my case it poses as some quality. I sort of understand how IP works, its octets and its bits, the Network and the Host. I understand that subnetting helps break down the larger amounts of hosts into smaller manageable hosts. What I dont get is how they match subnet with the IP.
I have a Network+ Study Guide (Thick book), but too much detail is throwing me off. Like Class A,B,C is mentioned in the book, but then I read an article on online where classes arent used anymore, which is why subnet masking came in.

Like for example, how do they match:

192.168.1.100
with
255.255.255.0

I know that probably isnt exact, but I could use more depth to understanding. Much help would be appreciated.

解决方案

The 255.255.255.0 part is just a mask to tell the IP software how many bits in the address represent your subnet. It is possible to split large lans into subnets with masks like 255.255.128.0 etc. All the leftmost bits are used to isolate the subnet portion, and the unmatched bits represent the host within that subnet.

So in your example above your subnet is 192.168.1 which allows you 254 unique hosts (addresses 0 and 255 are reserved).


well that is where your class IP''s come in

255.255.255.0 is the default for a class c ip
255.255.0.0 is the default for class b ip
255.0.0.0 is the default for class a ip

the reason for this is your host and network address

the subnet works as follows

255 specifies the network part of the ip
0 specifies the host part of the ip

i think i have my naming correct cant remember that well

but the information is correct hope this helps


这篇关于IP与子网路的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆