Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Ubuntu 12.04 installation DHCP Server     - Linux Basic Course: Install the software from source code (Linux)

- To build a private Docker registry (Server)

- Linux common commands: nslookup, ls md5sum, uname, history, etc. (Linux)

- Git Tutorial Comments (Linux)

- Linux system security (Linux)

- Ubuntu 14.04 How to set up an SSH without password (Linux)

- Usage logs Python library (Programming)

- Daemon under Linux (Linux)

- Oracle database on the hit rate of query summary (Database)

- Traffic monitor Linux Python Version (Programming)

- Alien Magic: RPM and DEB Mutual Convert (Linux)

- OpenStack image production in the CentOS 6.2 (Linux)

- Oracle archive log summary (Database)

- Android and OpenCV2.4.4 build an image processing framework (2013 edition) (Linux)

- How to use Android Studio to play more package names APK (Programming)

- DRBD installation configuration, working principle and Recovery (Server)

- JDK comes with tools jinfo (Linux)

- Slow update statement Performance Analysis (Database)

- Valgrind * not * leak check tool (Linux)

- MongoDB upgrade to 2.6 (Database)

  Ubuntu 12.04 installation DHCP Server
  Add Date : 2018-11-21      
  Simple DHCP server

HDFS cluster is created when deep / etc / hosts configuration added inconvenience inconsistent easily lead to errors, a large workload.

Or create a convenient dhcp server in the LAN. Official documents: https: //help.Ubuntu.com/community/isc-dhcp-server

Create a KVM virtual machine, OS of Ubuntu 12.04.

Then install dhcp3 server

apt-get install isc-dhcp-server

Edit the file / etc / default / isc-dhcp-server

Fill eth0


Edit the file: /etc/dhcp/dhcpd.conf

Example.org modify the original settings are:

# Option definitions common to all supported networks ...
option domain-name "Hadoop.cn";
option domain-name-servers dhcp.hadoop.cn, namenode1.hadoop.cn, namenode2.hadoop.cn, datanode1.hadoop.cn, datanode2.hadoop.cn, datanode3.hadoop.cn, datanode4.had
oop.cn, datanode5.hadoop.cn, datanode6.hadoop.cn;

Increase the lease time:

default-lease-time 6000;
max-lease-time 72000;

Edit the file: /etc/dhcp/dhcpd.conf

Example.org modify the original settings are:

option routers;
subnet netmask {
      option domain-name-servers;
      option broadcast-address;

Including the router address, IP address range, DNS server IP, broadcast IP address.

Service command:

service isc-dhcp-server start

Note that the address dhcp eth0 and must be used in a network. Otherwise it will fail to start.
Created based on Virutal IP

Because I actually want to be able to use DHCP to assign addresses, so creating a new virtual IP address in another network in / etc / network / interfaces file:

Not eth0: 1 this way.

# The primary network interface
auto eth0
iface eth0 inet static
        # Dns- * options are implemented by the resolvconf package, if installed
        dns-search defaultdomain

iface eth0 inet static

Then in / etc / default / isc-dhcp-server inside


Then dhcpd.conf above all 192.168.1.X are replaced 192.168.4.X can. Restart success!
- Use Bash script write CVS version control (Server)
- Linux using RAID how to use Mdadm Tool Management Software RAID (Linux)
- Linux ps command (Linux)
- SendMail version of Java implementation with attachments (Programming)
- Create several practical points of high security PHP site (Linux)
- Linux systems dmesg command processing failures and system information collected seven usage (Linux)
- Slice MyCAT common fragmentation rules of enumeration (Database)
- Disk storage structure and file recovery experiment (FAT file system) (Linux)
- Ubuntu 14.04 installation and configuration environment variable JDK1.8.0_25 (Linux)
- The direct insertion sort algorithm (Programming)
- The principle Httpclient4.4 (execution request) (Programming)
- Python data types summary (Programming)
- Linux common network tools: batch scanning of nmap hosting service (Linux)
- RHEL / CentOS / Fedora Install Nagios 4.0.1 (Linux)
- Ubuntu 15.04 and CentOS 7 to deploy .NET, Mono and DNX (Server)
- Linux environment variable configuration and save places (Linux)
- Ubuntu under shadowsocks configuration instructions (Linux)
- Nine artifact control disk partition under Linux (Linux)
- Python context managers (Programming)
- Read the official GNU Make manual one (chapter 1-2) (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.