前提是已经安装了 core 及 base 两个组
1
2
3
4
5
|
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Linux localhost.localdomain 2.6.32-358.el6.x86_64
11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU /Linux
|
|
修改本机IP为静态获取
1
2
3
4
5
6
7
8
9
10
|
DEVICE=eth0
TYPE=Ethernet
ONBOOT= yes
NM_CONTROLLED= yes
BOOTPROTO=static
IPADDR=192.168.101.11
NETMASK=255.255.255.0
GATEWAY=192.168.101.1
|
|
关闭 selinux
1
2
3
4
5
6
7
8
9
10
11
12
|
SELINUX=disabled
SELINUXTYPE=targeted
|
|
安装服务器组件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
mount : block device /dev/sr0 is write-protected, mounting read -only
dhcp-4.1.1-34.P1.el6.x86_64.rpm
dhcp-common-4.1.1-34.P1.el6.x86_64.rpm
error: Failed dependencies:
portreserve is needed by dhcp-12:4.1.1-34.P1.el6.x86_64
portreserve-0.0.4-9.el6.x86_64.rpm
Preparing...
1:portreserve
2:dhcp
|
|
更改配置文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
option domain-name "bigcloud.local" ;
option domain-name-servers 192.168.188.11, 192.168.188.12;
subnet 192.168.188.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.188.100 192.168.188.160;
range dynamic-bootp 192.168.188.169 192.168.188.253;
default-lease- time 259200;
max-lease- time 259200;
option routers 192.168.188.2;
}
subnet 192.168.189.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.189.100 192.168.189.253;
default-lease- time 691200;
max-lease- time 691200;
option routers 192.168.189.2;
}
host pc1 {
hardware ethernet 00:12:34:56:78:90;
fixed-address 192.168.188.111;
Starting dhcpd: [ OK ]
|
|
本文出自 “李豪” 博客,请务必保留此出处http://leaus.blog.51cto.com/9273485/1540292