The subnet of the pool cannot be overlapped with that of other pools.

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan batch 500 501
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]int vlanif 500

[Huawei-Vlanif500]ip add 192.168.200.1 28
[Huawei-Vlanif500]int vlanif 501
[Huawei-Vlanif501]ip add 192.168.200.17 27
Info: A similar IP subnet already exists. Please verify the current IP subnet design.
[Huawei-Vlanif501]dis th
#
interface Vlanif501
 ip address 192.168.200.17 255.255.255.224
#
return
[Huawei-Vlanif501]q
[Huawei]ip pool 500
Info:It's successful to create an IP address pool.
[Huawei-ip-pool-500]gate    
[Huawei-ip-pool-500]gateway-list 192.168.200.1
[Huawei-ip-pool-500]net    
[Huawei-ip-pool-500]network 192.168.200.0 mask 255.255.255.240
[Huawei-ip-pool-500]q
[Huawei]ip pool 501
Info:It's successful to create an IP address pool.
[Huawei-ip-pool-501]gateway-list 192.168.200.17
[Huawei-ip-pool-501]network 192.168.200.16 mask 255.255.255.224
Error:The subnet of the pool cannot be overlapped with that of other pools.

 

子网划分

①、确定子网掩码的长度。

②、确定子网下的主机可用地址范围(第一个可用IP和最后一个可用IP)。

③、确定网络地址(主机位全为0)和广播地址(主机位全为1),不能分配计算机主机用。

等长子网和变长子网划分

子网划分分为等长子网和变长子网两种,后者相对灵活。

1、等长子网划分

等长子网划分就是将一个有类网络等分成多个网络,也就是等分成多个子网,所有子网的子网掩码都相同。

2、变长子网划分

VLSM规定了如何在一个进行了子网划分的网络中,不同子网使用不同的子网掩码。这对于网络内部不同网段需要不同大小子网的情形来说很有效,这种划分子网的方式叫变长子网划分。

变长子网划分其实就是在等长子网的划分上,分别取不同等分子网中的某个或者多个子网。

这个就是报错The subnet of the pool cannot be overlapped with that of other pools的原因!!!


 

Sure, I can help you create a simple Node.js script to perform a single-ping check with a timeout of 100 milliseconds on IP addresses within the 192.168.19.0/24 subnet. Here's an example using the `net` and `child_process` modules: ```javascript const net = require('net'); const { exec } = require('child_process'); // Define the target subnet and timeout const subnet = '192.168.19.'; const timeoutMs = 100; function pingHost(ip) { const cmd = `ping -c 1 -w ${timeoutMs} ${ip}`; return new Promise((resolve, reject) => { exec(cmd, (error, stdout, stderr) => { if (error) { console.log(`Failed to ping ${ip}:`, error); reject(error); } else { // Check if ping was successful (no "Request timed out" in output) if (!stdout.includes('Request timed out')) { resolve(true); // Ping succeeded } else { resolve(false); // Ping timed out } } }); }); } async function scanSubnet() { try { for (let i = 1; i <= 254; i++) { const address = `${subnet}${i}`; await pingHost(address); } } catch (error) { console.error('Error scanning subnet:', error); } } scanSubnet(); ``` This script defines a function `pingHost` that sends a single ping command with a given timeout and checks if it succeeds or times out. The `scanSubnet` function iterates through all possible IP addresses in the 192.168.19.0/24 range and calls `pingHost` for each one. Keep in mind that this script assumes you have a Unix-like system with `ping` utility installed. If your environment is different, you might need to adjust the command accordingly.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

刘林锋blog

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值