子网划分时如何获取网关地址? [英] How to get gateway address when subnetting?

查看:298
本文介绍了子网划分时如何获取网关地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须从单个C类IP地址对网络进行子网划分.

I have to subnet a network from a single class C IP address.

我已经弄清楚了子网掩码和广播地址(我使用的是子网掩码/28),但是不知道如何获取网关地址.

I have figured out the subnet mask and the broadcast address (I'm using subnet mask /28) but don't understand how to get the gateway address.

有人可以帮助我吗?

推荐答案

如果子网掩码为255.255.255.248,则掩码位数为5,因此子网数=2.掩码位数的幂数= 2的幂5 = 32个子网,每个子网的主机数=2.功率(未屏蔽位或32-网络位数)= 2功率(32-29)= 8个主机/子网.

If subnet mask is 255.255.255.248 then number of masked bit will be 5, hence number of subnets = 2. The power number of masked bits = 2 the power 5 = 32 subnets, and the number of hosts per subnets = 2. The power (unmasked bit or 32- total number of network bits) = 2 the power (32-29) = 8 host/subnet.

因此:

  • 1)子网1中的IP从192.168.1.0到192.168.1.7 192.168.1.0是子网ID,而192.168.1.7是广播ID.

  • 1) IP's in subnet-1 will be from 192.168.1.0 to 192.168.1.7 where 192.168.1.0 will be subnet id and 192.168.1.7 will be broadcast id.

2)子网2中的IP从192.168.1.8到192.168.1.15

2) IP's in subnet-2 will be from 192.168.1.8 to 192.168.1.15

以此类推.........

and so on............

  • 32)子网32中的IP将从192.168.1.248到192.168.1.255 .....

网关仅是网络的网关,即该网络的第一个IP地址.

The gateway is only one for a network i.e. the first IP address of that network.

这篇关于子网划分时如何获取网关地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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