Group development Environment (II.)

Source: Internet
Author: User
Tags log range domain domain name domain name server linux
DHCP service: In order to more conveniently manage the IP address of the developer on the same LAN and the IP address of the server, it is best to arrange the server within a certain range of static IP (for example 192.168.0.200), Will (192.168.0.10-200) Provides dynamic IP for the developer client in scope. Suppose our primary server (192.168.0.200) and the secondary Development Server (192.168.0.201) use static IP, while providing 192.168.0.10-200 dynamic IP assignment services for the network segment. The DHCP service is installed on 2 servers, one for the master DHCP service, which provides 70% IP for the subnet IP pool, another for backup, and 30% for the IP pool. In the example: 200 responsible for the 10-100,201 is responsible for 110-150. If the default dhcpd is not installed, either locate the DHCP package installation from the installation disk or compile the source file from http://www.isc.org (the installation location and configuration file may be different).

Default configuration: On the primary server
Ddns-update-style none;
Default-lease-time 120000;
Max-lease-time 920000;
Option Subnet-mask 255.255.255.0;
Option broadcast-address 192.168.0.255;
Option Netbios-name-servers 192.168.0.200;
Option routers 192.168.0.1;
Option Domain-name-servers 202.106.196.115,202.96.199.133;
Option Domain-name "example.com";

Subnet 192.168.0.0 netmask 255.255.255.0{
Range 192.168.0.10 192.168.0.100;
}
Description
Default per IP lease period 2 days: Default-lease-time 120000;
Maximum lease period: Max-lease-time 920000;
Default subnet mask: Option Subnet-mask 255.255.255.0;
Default broadcast address: Option Broadcast-address 192.168.0.255;

Let the Samba service on 192.168.0.200 enable the WINS service: For internal Domain name resolution: Option Netbios-name-servers 192.168.0.200;

Default gateway option routers 192.168.0.1;
Default Domain Name server option domain-name-servers 202.106.196.115,202.96.199.133;
Default Domain option Domain-name "example.com";
#一个缺省的子网设置:
Subnet 192.168.0.0 netmask 255.255.255.0{

#为子网动态分配0.10-100 IP
Range 192.168.0.10 192.168.0.100;
}

The only difference on a secondary DHCP server is that dynamically allocating 0.110-150 IP for subnets, and the IP pools of primary DHCP and attached DHCP servers cannot overlap each other
Subnet 192.168.0.0 netmask 255.255.255.0{
Range 192.168.0.110 192.168.0.150;
}

3. Application installation on the primary server Samba service: For file sharing and internal wins resolution, here is a simple configuration for read-only sharing:
[Global]
#别人会通过 "My Network Neighborhood" saw the workgroup group.
Linux machine, note: my Samba Server
Workgroup = Workgroup
NetBIOS name = Linux
Server string = My Samba Server

#日志设置
Log file =/var/log/samba/%m.log
Max log size = 50

#安全设置
Security = Share

#用SAMBA的WINS服务支持, and use/etc/hosts to do the internal domain name resolution
WINS support = yes
Name Resolve order = hosts Lmhosts wins Bcast
DNS Proxy = yes

[Public]
#一个共享设置
Comment = Public Stuff
Path =/home/share
Public = yes
Guest OK = yes
Read Only = yes
writable = no
printable = no



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.