CẤU HÌNH DHCP SEVER TRÊN CENTOS 6.0

Post new topic   Reply to topic

View previous topic View next topic Go down

CẤU HÌNH DHCP SEVER TRÊN CENTOS 6.0

Post  chantroitinhoc on Sun Sep 18, 2011 5:26 pm

1. Cài đặt dịch vụ DHCP:
[root@dhcp ~]# yum -y install dhcp

2. Chỉnh sửa tập tin cấu hình dhcpd.conf:

[root@dhcp ~]# vi /etc/dhcp/dhcpd.conf

# specify domain name
option domain-name "ispace.com";

# specify DNS's hostname or IP address
option domain-name-servers dns.ispace.com;

# default lease time
default-lease-time 600;

# max lease time
max-lease-time 7200;

# this DHCP server to be declared valid
authoritative;

# specify network address and subnet mask
subnet 192.68.100.0 netmask 255.255.255.0 {
# specify the range of lease IP address
range dynamic-bootp 192.168.100.105 192.168.100.254;
# specify broadcast address
option broadcast-address 192.168.100.255;
# specify default gateway
option routers 192.168.100.1;
}

3. Khởi động dịch vụ dhcpd:
[root@dhcp ~]#/etc/rc.d/init.d/dhcpd start

4. Cho dịch vụ dhcpd khởi động cùng với hệ thống:
[root@dhcp ~]# chkconfig dhcpd on

@: Các bạn tham khảo thêm ở chuyên mục Video cấu hình để hiểu rõ thêm nhé!

chantroitinhoc
Admin

Posts: 126
Join date: 2008-01-16

View user profile http://chantroitinhoc.niceboard.net

Back to top Go down

chào cả nhà

Post  hungpq on Thu Dec 08, 2011 5:09 am

diễn đàn ngày càng đông

hungpq

Posts: 14
Join date: 2011-09-28

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You can reply to topics in this forum