【一个C类的ip段中,有多少个可用的ip地址?192.168.0.1/24是什么意思?】分享给互联网从爱好者学习参考。
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-align: left; text-indent: 34px; background-color: rgb(255, 251, 0);">一、ip段/数字-如192.168.0.1/24是什么意思?
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-align: left; text-indent: 34px; background-color: rgb(255, 251, 0);">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">后面这个24表示了我们的网络号的位数,也就是子网掩码中前位为1。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">192.168.1.1 /24 这个24就是告诉我们网络号是24位。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">也就相当于告诉我们了。
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">子网掩码是:11111111 11111111 11111111 00000000
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">即:255.255.255.0</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant;">又例如:
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">172.16.10.33/27 中的/27</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">也就是说子网掩码是255.255.255.224 即27个全1</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">11111111 11111111 11111111 11100000</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">即子网掩码是:255.255.255.224</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-align: left; text-indent: 34px; background-color: rgb(255, 251, 0);">二、一个C类的ip段中,有多少个可用的ip地址?
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">C类的ip地址在实际项目中是用的最多的,任何一个C类地址都能容纳下254台主机,为什么只有254呢,不是256呢?</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant;">例如:
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">192.168.1.0-192.168.1.255,子网掩码为24位,从0-255总共有256个ip地址,其中其中0是网络ID(网段),255是广播地址,可用的ip地址只有:</em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">192.168.1.1-192.168.1.254</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant;">也就是:
</em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">192.160.1.0是网络地址,192.168.1.255是广播地址,他们不能用于分配。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant;">那么你可能会有疑问?网络id与广播地址有什么用途呢?
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">网络地址:</em>portant; overflow-wrap: break-word !im<em></em>portant;">是识别网络ID用的,告诉你ip地址的网段。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">广播地址的作用:</em>portant; overflow-wrap: break-word !im<em></em>portant;">是专门用于同时向网络中所有工作站进行发送的一个地址,不能被路由转发。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-align: left; text-indent: 34px; background-color: rgb(255, 251, 0);">三、什么是公网ip?
</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-align: left; text-indent: 34px; background-color: rgb(255, 251, 0);">什么是内网ip?
</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-align: left; text-indent: 34px; background-color: rgb(255, 251, 0);">为什么ip地址通常以192.168开头?
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">我们平台在内部组网时用的比较多,比如监控项目与公司内部电脑ip设置,用的多的就是192.168.xx。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant;">为什么使用这个?
</em>portant; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(34, 34, 34) !im<em></em>portant; line-height: 1.76 !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">不要朋友多次问到, 网络中的主机需要通信,需要使用一个IP地址。</em>portant; overflow-wrap: break-word !im<em></em>portant;">在IPv4地址中预留了3个IP地址段,作为私有地址,供家庭、企业、学校等内部组网使用。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; text-align: center; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">私网地址</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; text-align: center; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-align: left; text-indent: 34px; background-color: rgb(255, 251, 0);">四、如何用私网地址访问公网?
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">我们知道,ipv4地址是有限的,作为普通用户,很少拥有公网ip地址,私网地址是不能出现在互联网上的。那么私网地址如何访问互联网呢?这就需要用到NAT地址转换,将内网地址映射到外网地址。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>seline; widows: 1;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">而</em>portant; overflow-wrap: break-word !im<em></em>portant;">
NAT地址转换
</em>portant; overflow-wrap: break-word !im<em></em>portant;">它实现内网的IP地址与公网的地址之间的相互转换,将大量的内网IP地址转换为一个或少量的公网IP地址,减少对公网IP地址的占用。</em>seline; widows: 1;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">一般普遍使用端口映射的方式,NAT的核心是一张映射表(源IP地址,源端口,目的IP地址,目的端口),将内网源IP地址和端口映射到同一个公网地址的不同端口,如下图所示。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; text-align: center; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">端口映射可以在路由器中设置,在这个远程网络或远程监控项目中是有应用的。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-align: left; text-indent: 34px; background-color: rgb(255, 251, 0);">五、交换机如何连接,进入配置界面?
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant; font-family: 微软雅黑, 宋体, 黑体, Arial, Helvetica, sans-serif; font-size: 15px; letter-spacing: 2px; text-align: left; text-indent: 30px; color: rgb(217, 33, 66);">其实这个过程有两个步骤:</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-family: 微软雅黑, 宋体, 黑体, Arial, Helvetica, sans-serif; font-size: 15px; letter-spacing: 2px; text-align: left; text-indent: 30px;">第一步就是用线连接交换机与pc。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-family: 微软雅黑, 宋体, 黑体, Arial, Helvetica, sans-serif; font-size: 15px; letter-spacing: 2px; text-align: left; text-indent: 30px;">第二步就是用超级终端软件登陆。
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">1、准备好Console通信线缆连接交换机与pc。
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">如果你的PC是笔记本或者没有串口的电脑,那么就需要准备USB转串口的转接线,并按照说明书安装相关的驱动。 </em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; text-align: center; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; text-align: center; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; text-align: center; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">通过Console口连接设备</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; text-align: center; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">2、用PC终端仿真软件登陆交换机
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">目前用的多的就两款,secureCRT,xshell使用用户都很多,前面的文章我们介绍过了,这次就不多说了。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">这里就以</em>portant; overflow-wrap: break-word !im<em></em>portant; font-size: 15px; letter-spacing: 2px; text-indent: 30px; color: rgb(217, 33, 66);">
secureCRT
</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">远程终端为例,在pc电脑上安装好SecureCRT,然后进行创建新的连接。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; text-align: center; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">点击连接后,会提示用户输入用户名和密码。各牌子交换机的初始密码不一样,输入进去就行了,就会进入配置界面了。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; background-color: rgb(255, 251, 0);">六、同一vlan间的通信与不同vlan间的通信需要什么条件?</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px; background-color: rgb(255, 251, 0);">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">1、同一个vlan的两台主机通信</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-align: justify; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">同一个vlan间的两台主机通信可以不需要路由器,用二层交换机可以完成。
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; text-align: center; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">同一个vlan中,A与B,这一过程完全可以在二层交换机进行,不需要路由器的参与。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">2、不同vlan间的两台主机通信
</em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant; color: rgb(84, 84, 84); font-size: 15px; letter-spacing: 2px; text-indent: 30px;">不同vlan间的两台主机通信是需要有路由功能。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; text-align: center; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">所</em>portant; overflow-wrap: break-word !im<em></em>portant;">以我们在项目中,如果涉及到不同vlan间的通信,是需要有三层交换机,或者单臂路由。</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;"></em>portant; overflow-wrap: break-word !im<em></em>portant;">
</em>inkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; white-space: normal; box-sizing: border-box !im<em></em>portant; overflow-wrap: break-word !im<em></em>portant;">