Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Ubuntu 12.04 installation DHCP Server     - Linux iptables port mapping settings (Server)

- Let OpenCV face detection score output codes (Programming)

- TPCC-MySQL Benchmark (Database)

- JSON data normalization (normalize) (Programming)

- Ubuntu clean up unnecessary disk space usage (Linux)

- After you change the GRUB boot disk partition repair (Linux)

- Zabbix monitors Nginx status (Server)

- Xmanager Remote Desktop login CentOS 6.5 (Linux)

- Ordinary users how to use the firewall software (Linux)

- Thinking in Java study notes - everything is an object (Programming)

- Java and C / C ++ data conversion when network communication (Programming)

- Linux Getting Started tutorial: GNU C and Vim will fight the C / C ++ IDE semi-automatic (Linux)

- Upgrading to MySQL 5.7 partitioning problem solving (Database)

- Java learning problems encountered (Programming)

- How to track performance issues when using the Unity Game Development Android (Programming)

- Oracle database online redo logs are several methods of recovery of deleted (Database)

- Linux operating system Study Notes (Linux)

- Oracle how to maintain the consistency of read? (Database)

- OGG-01496 OGG-01031 Error Resolution (Database)

- Linux installed xdotool simulate keystrokes and mouse movements (Linux)

 
         
  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:      
 
- dd command: do hard disk IO performance test (Linux)
- C / C ++ language variable scope: local variables, global variables, file-level variables (Programming)
- The istgt PSD on ported to Mac OS X (Linux)
- Web server security policy (Linux)
- Apache Web Security Linux systems (Linux)
- RM Environment Database RMAN Backup Strategy Formulation (Database)
- Use mod_wsgi Django application deployment (Server)
- Let CentOS perform PPPoE dial-up, ADSL can be used in a network environment! (Linux)
- File sharing and fork function (Programming)
- CentOS 5.8 (64) Python 2.7.5 installation error resolved (Linux)
- Monitor log file (listener.log) (Database)
- Ubuntu download install and configure Plank Dock (Linux)
- How to Install Puppet in the Ubuntu 15.04 (Server)
- Java Virtual Machine class loading mechanism and bytecode execution engine (Programming)
- PPA on Ubuntu Linux installation Plank 0.8.0 (Linux)
- How to contribute code on GitHub uploads (Linux)
- Linux dd command applies amplification SWAP partition (Linux)
- Approach the next Linux shared interrupts (Linux)
- JDK comes with tools JPS (Linux)
- How Ubuntu Snappy Core 2 running on Raspberry Pi (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.