当前位置 : 主页 > 编程语言 > java >

centos 6.5 dhcp配置

来源:互联网 收集:自由互联 发布时间:2022-08-10
配置文件位置 /etc/dhcp/dhcpd.conf subnet 192.168.10.0 netmask 255.255.255.0 { range 192.168.10.60 192.168.10.119; option domain-name-servers 192.168.10.61; option domain-name "server.qv-china.com"; option routers 192.168.10.5; option


配置文件位置 /etc/dhcp/dhcpd.conf


subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.60 192.168.10.119;
option domain-name-servers 192.168.10.61;
option domain-name "server.qv-china.com";
option routers 192.168.10.5;
option broadcast-address 192.168.10.255;
default-lease-time 60;
max-lease-time 720;
}



host demo1 {
hardware ethernet 08:00:07:26:c0:a5;
fixed-address 192.168.10.20;
}



指定配置文件运行

dhcpd -cf /dhcpd.conf

service dhcpd restart

/var/log/messages调试信息



多个网卡 指定网卡配置文件中网卡接口


DHCPDARGS=eth0;


/etc/sysconfig
vim dhcpd
网友评论