Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Ubuntu 12.04 installation DHCP Server     - Ubuntu installed racing game Speed Dreams 2.1 (Linux)

- Linux systems use logwatch log file monitoring (Linux)

- Use this one-time password via SSH secure login Linux (Programming)

- CentOS 6.5 start ActiveMQ being given to solve (Server)

- Vim plugin installation YouCompleteMe (Linux)

- Linux environmental performance data acquisition system (Linux)

- Java polymorphic methods inside constructors complete analysis (Programming)

- Android 4.2 compilation notes (Programming)

- Atlassian Linux Shell Scripting the confluence remote backup methods (Linux)

- Based Corosync + Pacemaker + DRBD + LNMP Web server to achieve high availability cluster (Server)

- 11 you Linux Terminal Command (Linux)

- VMware 8 installation configuration Win7, CentOS-7 Wizard (Linux)

- Installation under Linux Mint system guidelines for Gtk (Linux)

- Oracle 11g user rights management study notes (Database)

- Inherent limitations of Linux systems network security (Linux)

- Java call by value and by reference (Programming)

- Oracle create user authorization and in PLSQL (Database)

- Debian GNU / Linux service list acquisition, shutting down services or run (Linux)

- quotacheck command file can not be created aquota.user and aquota.group solutions (Linux)

- Oracle View index and use indexes Precautions (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!
- Win7 + Ubuntu Kylin + CentOS 6.5 installed three systems (Linux)
- Rails project prepared some tips small experience (Linux)
- Broadcom transplanted to OpenWrt summary (Programming)
- Multipath configuration under Linux (Linux)
- Oracle capability i / o (stress test database server i / o performance) (Database)
- Redis Linux system installation guide (Database)
- Quickly locate the mistakes by gdb location (Programming)
- How to Install Sticky Notes on Ubuntu and Derivatives (Linux)
- Linux user management (Linux)
- There is sort of a directed acyclic graph topology (Programming)
- Denyhosts prevent hackers using SSH scanning (Linux)
- ARP spoofing prevent Linux environment LAN (Linux)
- Ubuntu Froxlor Server Administration panel installation (Server)
- Linux performance monitoring and common commands Introduction (Linux)
- Linux, set and view environment variables (Linux)
- Install Web-based monitoring tool: Linux-Dash (Server)
- Github Getting Started Basic Course (Linux)
- Linux systems dmesg command processing failures and system information collected seven usage (Linux)
- Alternative methods of intrusion bundled executable file new thinking (Linux)
- Based kubernetes Construction Docker Cluster Management Comments (Server)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.