is: Network address + 1 to broadcast address-1
The network scope of this example is: 192 168 100 1 to 192 168 100 254
In other words, the following address is a network segment.
192 168 100 1, 192 168, 100 2 ... 192 168 100 20 ... 192 168 100 111 ... 192 168 100 254
5 N
After knowing the IP address and subnet mask, you can calculate:
1. Network Address
2. broadcast address
3. Address range
4. Several hosts on this website
Example 1: the IP address in t
bits can be any value, when the other 22 bits are all 0 is the minimum network ID, the first byte of the IP address is 192; When the other 22 bits are all 1 o'clock the network ID is the largest, the first byte is the largest, that is 223. Class C IP Address the valid range for the first byte is 192-223, a total of 2,
class c ip address consists of a 3-byte network address and a 1-byte host address. The maximum network address must be 110 ". In Class c ip address , the network ID is 21 characters in
cacheArpExample 2: AddingArp–s IP MACExample 3: DeletingArp–d IP—————————4. IP is a powerful network configuration tool in the Iproute2 package, which can replace some traditional network management tools. For example: ifconfig, route, etc.,The above example can be fully implemented with the following IP commands, and
representation is: 10000000000000010000000000000001-10111111111111111111111111111110). There are 16,384 B-type networks available, each of which can hold 65534 hosts.3. Class C IP AddressA Class C IP address consists of a 3-byte network address and a 1-byte host address, an
Linux configuration NIC IP address command detailed introduction and some common network configuration commands 2010- A- - 0Comments Collection I want to contribute to the Linux command line under the configuration of the IP address is not as convenient as the graphical interface, completely need our manual config
, the reserved IP address space is shown in the appendix.
The reserved IP address segment is not used on the Internet. Therefore, when a router connected to the WAN processes the reserved IP address, it only discards the packet an
Address: Use 21 bits to identify the network number, 8 bits to identify the host number, the front three bits are "110". The first paragraph of the Class C address has a value between 192~223, the first, second, and third paragraphs together to represent the network number. The last segment identifies the host number on the network. Class C addresses are suitable for small networks such as campus networks,
, the reserved IP address space is shown in the appendix. Www.2cto.comThe reserved IP address segment is not used on the Internet. Therefore, when a router connected to the WAN processes the reserved IP address, it only discards t
range is from 192.0.0.0 to 223.20.255. A Class C network can contain more than 2.09 million hosts, and each network can accommodate 254 hosts.
4. Class D address: multicast address in the range of 224 to 239. the first byte of the Class d ip address is
Lll0It is a reserved
IP address and subnet mask
1. IP Address:The Internet is formed by the interconnection of different physical networks. The computer communication between different networks must have a corresponding address ID, which is called an IP addr
are divided into three categories, Class A, Class B, and class C, depending on the number of network address bytes in the IP address. Class A is used for ultra-large networks (Millions of nodes), Class B is used for medium-scale networks (Thousands of nodes), and class C is used for small networks (up to 254 nodes ).
addresses is large, which is suitable for small-scale local networks, each network can contain up to 254 computers.
In addition to the above three types of IP addresses, there are also several special types of IP addresses, the TCP/IP protocol stipulates that all the addresses starting with "11110" in the first byte o
,For convenience, you can also name the route table in/etc/iproute2/rt_tables.By default, all routes are inserted into the main table (No. 254. During route query, the kernel only uses the route table main.
7.6.ip route add-add new route entryIp route change-modify a routeIp route replace-replace existing routesAbbreviation: add, a; change, chg; replace, replExample 1: The route destined for 10.0.0/24 goes
Our router has a variety of styles of management interface, different management interface to modify the router LAN port IP address method is not the same, please combine the actual situation reference to do settings.
Note: after modifying the LAN port IP address, login the router interface again, it is recom
Because to do the static address configuration JS Check, find a lot of information found on the internet is about ip,mask validity check, no ip,submask,gateway logic judgment, write down the code for the needs of people reference.Popularization of Gateway address knowledge:is to proceed with the operation 1 with 1 with
Currently, if the IP address range is not segmented, there are a total of 254 IP addresses.
The algorithm is as follows:
IP: 192.168.1.0
Subnet Mask: 255.255.255.0
The Zookeeper format is 192.168.1.0/24.
Note: "24" indicates 255.255.0 (because the subnetmask is change
server. the IP address of this server is 192.168.10.96.
That is to say, the person using route 172.17.1.1 should be able to access 192.168.10.96 and access the Internet.
III. solutions
To solve this problem, several commands are used. you need to check the details for specific usage.
Ip route
Ip rule
Arp
Note: F
problem, several commands are used. You need to check the details for specific usage.
Ip route
Ip rule
Arp
Note: For ip command usage, please refer to the ip Chinese manual, which is available on www.google.com
1. bind an IP address
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.