Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Ubuntu 12.04 installation DHCP Server     - MySQL query plan key_len know all (Database)

- Hadoop namenode do NFS disaster recovery (Server)

- RT-11SJ run at ambient PDP-11 MACRO-11 assembly (Programming)

- Switching Virtual Machine + Ubuntu graphical interface and terminal interface (Linux)

- map and hash_map STL containers (Programming)

- Ubuntu derivative version of the user and how to install SmartGit / HG 6.0.0 (Linux)

- CentOS6 install Redis (Database)

- Handle large data problems Bit-map method (Programming)

- Linux kernel TCP / IP parameters analysis and tuning (Linux)

- Java precision four operations (Programming)

- OpenCV 3.0 + Python 2.7 installation and testing under Ubuntu 14.04 (Linux)

- Android studio multi-channel ultra-compact version of the package (Programming)

- Linux boot process and run level (Linux)

- How VMware extend disk without rebooting the system (Linux)

- C ++ runtime environment built on CentOS 6.6 and Oracle database connection (Database)

- CentOS 6.6 install Oracle 11gR2 database (Database)

- Ansible installation configuration and simple to use (Server)

- C ++ you can become a new scripting language (Programming)

- J2EE Example of Filter (Programming)

- PHP call a Python program (Programming)

  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!
- Changes in C # asynchronous programming model (Programming)
- Articles do not resolve after opening under Ubuntu WordPress setting a fixed link (Server)
- php security study (Linux)
- Oracle table space usage monitoring (Database)
- How to convert images, audio and video formats on Ubuntu (Linux)
- Android judgment toward camera pictures (Programming)
- Linux Network Programming - raw socket can do (Programming)
- Linux Shell Scripting multithreading (Programming)
- These days have been tossing in the Linux under the ASP.NET 5, on the next in the other operating systems in the ASP.NET 5 or. NET applications, in order to complete the MS VM (CoreCLR) run is not far Reach, the effect of the application.

- Use Observium to monitor your network and servers (Server)
- Linux environment variable configuration (Linux)
- Kubuntu 14.04 desktop to the user how to upgrade KDE 4.13.2 (Linux)
- Basic data types JavaScript type system and the type of packaging (Programming)
- Web server security policy (Linux)
- For the FreeBSD install Adobe Flash plug-in (Linux)
- Ubuntu system grub repair method (Linux)
- Compare Dalvik virtual machine and the JVM (Linux)
- Oracle TDE transparent data encryption (Database)
- Using Python to find a particular file extension directory (Programming)
- Ubuntu system cp: omitting directory problem (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.