Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 07-01-2010, 11:30 AM   #1
emailhoc
Administrator
 
Gia nhập: Jul 2009
Trả Lời: 245
Cài đặt và cấu hình DHCP Server
Bước 1: Cài đặt DHCP

# yum -y install dhcp


Bước 2: Sao chép tập tin cấu hình DHCP mẫu đến thư mục /etc

# cp -f /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf

Bước 3: Chỉnh sửa tập tin cấu hình DHCP

Mã:
ddns-update-style interim;
ignore client-updates;

# Scope 1

# Lop mang muon cap phat
subnet 192.168.2.0 netmask 255.255.255.0 { 

# Dia chi cua default gateway can cap phat
    option routers            192.168.2.114; 
# Subnet mask
    option subnet-mask        255.255.255.0; 
# Ten NIS domain
    option nis-domain        "vinacis.local"; 
# Ten domain name
 option domain-name        "vinacis.local"; 
# Dia chi IP cua DNS server can cap phat
    option domain-name-servers    192.168.2.114; 

    option time-offset        -18000;    # Eastern Standard Time
#    option ntp-servers        192.168.1.1;
#    option netbios-name-servers    192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#    option netbios-node-type 2;

# Khoang IP se cap cho Client
    range dynamic-bootp 192.168.2.128 192.168.2.254; 
    default-lease-time 21600;
    max-lease-time 43200;

# Nhung may luon nhan IP co dinh 
     host duyendang { 
         hardware ethernet 08:00:20:15:5d:6f; 
         fixed-address 192.168.2.1; 
     } 
     host xinhxinh { 
         hardware ethernet 00:03:93:5e:6d:4w; 
         fixed-address 192.168.2.2; 
         option host-name "xinhxinh"; 
     } 

# Them dau comment vao cac dong ben duoi
    # we want the nameserver to appear at a fixed address
    #host ns {
    #    next-server marvin.redhat.com;
    #    hardware ethernet 12:34:56:78:AB:CD;
    #    fixed-address 207.175.42.254;
    #}
}


Bước 4
: Khởi động dịch vụ DHCP

# /etc/rc.d/init.d/dhcpd start

Bước 5
: Cấu hình để dịch vụ DHCP khởi động cùng với hệ điều hành

# chkconfig dhcpd on

Last edited by emailhoc; 07-01-2010 at 11:57 AM..
emailhoc vắng mặt   Trả lời ngay kèm theo trích dẫn này
The Following User Says Thank You to emailhoc For This Useful Post:
Gửi trả lời


Công Cụ
Xếp Bài

Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 12:35 AM. Giờ GMT +7



Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.