How does PHP implement ip2cidr (generate multiple cidr)? are there any functions that generate multiple cidr, for example, 1.120.0.0 1.159.255.255 to generate 1.120.0.0/13 1.128.0.0/11?
Reply to discussion (solution)
Function ip2cidr ($
What is the difference between 192.168.2.1/24 and 192.168.1.1/24?
Is two different network segments, the subnet mask is 24,The first value range is 192.168.2.1 ~ 255,The second value ranges from 192.168.1.1 ~ 255These are two CIDR blocks. The
No category (now)Classless Inter-Domain Routing (Classless inter-domain Routing, CIDR) is a method of classifying IP addresses for assigning IP addresses to users and for efficiently routing IP packets over the Internet.CIDR uses the variable eldest-
Do you have a great God? There are no functions that generate more than one CIDR, such as 1.120.0.0 1.159.255.255 generate 1.120.0.0/13 1.128.0.0/11
Reply to discussion (solution)
function Ip2cidr ($ip _start, $ip _end) {if (Long2ip (Ip2long (
Environment: two network segments, 192.168.1. * With 192.168.100. * The two vswitches cannot communicate with each other. 192.168.100. * There is a DNS on the network segment. One WEB server requires: 192.168.1. * access 192.168.100. * WEB server.
9.11. Network address type functions and operatorsTable 9-31 shows the operators that can be used for CIDR and inet . Operators , >>, and >>= are used to compute subnet inclusions: They only consider the network portion of two addresses, ignoring
1. Add the following content to the/etc/rc. Local file:Note: eth0 binds the Intranet IP address eth1 and the Internet IP Address################[Root @ rhnat01 root] # vi/etc/rc. Local#! /Bin/sh## This script will be executed * after * all the other
Reprinted:
Http://blog.csdn.net/zhangyang0402/archive/2010/06/25/5695050.aspx
I. Network Topology
2. Configure the network
1.Network Configuration of A, gw1, gw2, and B
A:
Eth0:
Ipaddr: 192.168.1.2
Netmask: 255.255.255.0
Gateway: 192.168.1
1. Complete parsing of Windows route tables
Time can be amazing in this way. People tend to think that computer technology is a high technology, but TCP/IP has appeared in various forms over the past thirty years and is ubiquitous. Therefore,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.