IP Address = = Network address + host address IP address is made up of 4 bytes, one byte is 8 bits, so it is a total of 32 bits, in dotted decimal notation, for example 192.168.1.1IP Address Classification:1, Class A address: IP address = = Network
Usage in Ubuntu:
Run the following command: sudo gedit/Etc/APT/sources. List
Edit/Etc/APT/sources. List, Replace with the following content:
Deb http://mirrors.ustc.edu.cn/ubuntu/Natty main restricted universe multiverseDeb
Regular Expression Basics] ": match any character or symbol in square brackets" | ": expression logic or link asterisk "*": appears 0 times or multiple times plus sign "+": appears once or multiple times hello "?" : 0 or once spent arc "{n}":
In fact, this is very simple, but I have always wanted to use the ipv6-test API to get a user IP address ...... But what JSON gets is the IP address of the local server. Forget it, don't study it, And the widgets provided by others are also quite
Ip_autoconfigParameters: 0 or 11 means the IP address of the host is obtained via RARP,BOOTP,DHCP or other protocol0 means disableIp_default_ttlParameters: 0-255The default parameter is 64, and the variable tells the kernel what the time-to-live
In many cases within the enterprise, you will encounter the following events:
1. Need to track the use of the overall IP address space;
2. Need to be urgently aware of which address is idle for quick allocation to a new device or a DNS SRV record;
Cary G.gray and David R. Cheriton 1989Translator: [Email protected] 2011-5-7Source: http://duanple.blog.163.com/blog/static/70971767201141111440789/[Order: The so-called lease (leases), in fact, is a contract, that is, the server gives the client within a certain period of time can control the modification of the operation of the power. If the server wants to modify the data, the client that owns the lease
* Mind Mapping650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/1B/wKiom1X1JSaiZEI9AAdkjP6gDGI938.jpg "title=" screen shot 2015-09-13 pm 3.06.06.png "alt=" Wkiom1x1jsaizei9aadkjp6gdgi938.jpg "/>I. Overview1. DHCP: Automatic host Configuration ProtocolThe port number is:
IPv4 corresponds to UDP67, 68
IPv6 corresponds to udp546, 547
2, the role: to achieve automatic allocation to the host IP, default gateway, DNS and other
This paper describes the paxoslease algorithm, a distributed algorithm for lease negotiation. The Paxoslease is based on the Paxos algorithm, but does not require write disk and clock synchronization. Paxoslease is used in the open source distributed replication kv storage keyspace for master lease negotiation. 1. Introduction
In concurrent programming, locks are the basic primitives that processes use to s
I,Learn about DHCP servers
Dynamic Host Configuration (DHCP)Protocol) is a protocol designed and developed by IETF (Internet team) to automatically allocate TCP/IP parameters to computers in TCP/IP networks. DHCP avoids errors caused by manual IP Address Setting and address conflicts caused by IP Address Allocation to the workstation. DHCP provides secure, reliable, and simple TCP/IP network settings, reducing the burden on configuring IP addresses.
1. How DHCP works
In the working principle of
=staticIPADDR=192.168.170.4NETMASK=255.255.255.0GATEWAY=192.168.170.4
Restart the network and DHCP service.
[Root @ mail sysconfig] # service network restart
Service dhcpd restart
VMnet1 and VMnet8 (properties-> TCP/IPv4-> check "automatically obtain IP addresses" and set the DNS server)
Network)
Ipconfig/all
(Check whether the ip address is within the ip address range just set. It is consistent with the red part below)
Note:
1. Due to the impact of
A DHCP Server Installation Package
1 yum -y install dhcp2. Corresponding Port
IPv4 udp67 and udp68
IPv6 udp546 and udp5473. File Path
Service name: DHCPD
Main configuration file:/etc/DHCP/DHCPD. conf
Template File:/usr/share/doc/DHCP */DHCPD. conf. Example
Iv. configuration file 4.1 common configuration items
1 option domain-name # Set the DNS domain 2 3 option domain-name-servers # Set the DNS server address 4 5 default-
192.168.100.188;}}Subnet 172.16.1.0 netmask 255.255.255.0 {Option routers 172.16.1.2;Range dynamic-bootp 172.16.1.100 172.16.1.200;Default-lease-time 21600;Max-lease-time 43200;}If there are other scopes, use the subnet Declaration to create them! The method is similar!10. DHCP relay proxy configuration is required for implementation and testing of Multiple DHCP scopes(Network environment required to compl
to the Ad-hoc mode.
1
iwconfig eth0 mode ad-hoc
2
iwconfig eth0 enc s:12345
3
iwconfig eth0 essid "tcc8900"
4
ifconfig eth0 up
5
ifconfig eth0 192.168.0.1
NAT implementation using iptablesIptables can implement address translation, firewall, port filtering, and other functions. Here we only use the most basic address translation, so that the PC can access the Internet.
1
iptables -t nat -A P
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.