Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Ubuntu 12.04 installation DHCP Server     - GlusterFS distributed storage deployment (Server)

- Upgrading to Debian 7.6 glibc 2.15 (Linux)

- CentOS 6.5 boot automatically mount the hard drive (Linux)

- CentOS / Linux kernel upgrade (Linux)

- RedHat Linux 6.4 install Oracle 10g error (Database)

- To delete the directory and all specified files under the Mac (Linux)

- MySQL server after an unexpected power outage can not start (Database)

- Shell scripts get a snapshot of the page and generates thumbnails (Linux)

- Nodejs nano library to handle couchdb: need a timeout (Database)

- Ubuntu 14.10 Install Ubuntu Touch Music App 2.0 (Linux)

- Linux process or thread is bound to a CPU (Programming)

- Vim plugin installation YouCompleteMe (Linux)

- Linux System Getting Started Learning: Change the name of the network interface on CentOS7 (Linux)

- It is time to upgrade your gulp 4.0 (Programming)

- GitLab remote backup of Linux Shell Scripting (Linux)

- Linux command execution judge sentences -;, &&, || (Linux)

- Xtrabackup creates a slave node without downtime (Database)

- Git bulk delete remote tag (Linux)

- Android Application Development: Genymotion can not start solving (Linux)

- Hadoop 2.0 Detailed Configuration Tutorial (Server)

 
         
  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

INTERFACES = "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 192.168.1.1;
subnet 192.168.1.0 netmask 255.255.255.0 {
      range 192.168.1.10 192.168.1.100;
      option domain-name-servers 192.168.1.1;
      option broadcast-address 192.168.1.255;
}

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
        address 192.168.1.111
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # Dns- * options are implemented by the resolvconf package, if installed
        dns-nameservers 8.8.8.8
        dns-search defaultdomain

iface eth0 inet static
 address 192.168.4.1
 netmask 255.255.255.0

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

INTERFACES = "eth0"

Then dhcpd.conf above all 192.168.1.X are replaced 192.168.4.X can. Restart success!
     
         
         
         
  More:      
 
- Linux process management related content (Linux)
- XenServer Virtual Machine Installation --- first ISO image file storage expansion (Linux)
- rsync + inotify to achieve real-time synchronization (Server)
- Preview function to confirm the stop resource Oracle 12c new feature crsctl (Database)
- Struts2 : combobox label use (Programming)
- Configuration based on open source Lucene Java development environment (Server)
- GNU / Linux enable Intel Rapid Start (Linux)
- Android Studio Personalization (Linux)
- Linux RPM default installation path (Linux)
- Mysql binlog resolve the garbage problem decryption (Database)
- VirtualBox virtual machine can not start to solve under Ubuntu (Linux)
- The multiplexed signal driving IO (Programming)
- Big Data Common Glossary (Linux)
- Installation of JDK and Tomcat under Linux (CentOS) (Linux)
- Construction of Android and iOS apps use Jenkins Automation (Programming)
- Android use canvas board painting (Programming)
- Ubuntu 14.04 installation and configuration environment variable JDK1.8.0_25 (Linux)
- sa weak passwords intrusion prevention (Linux)
- Java development specifications summary (Programming)
- How to use systemd timer (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.