Linux ?д?DHCP?????????
???????????? ???????[ 2012/12/7 10:08:28 ] ????????
?????????????????У?DHCP????????IP??????192.168.1.128~192.168.1.133
??????????????dhcp????????
[root@localhost ~]# rpm -qa | grep dhcp
dhcp-3.0.5-31.el5
dhcpv6-client-1.0.10-20.el5
sblim-cmpi-dhcp-devel-1.0-49.el5
sblim-cmpi-dhcp-1.0-49.el5
????????????/etc/dhcpd.conf
[root@localhost ~]# cat /etc/dhcpd.conf
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
[root@localhost ~]# cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
cp???????“/etc/dhcpd.conf”? yes
[root@localhost ~]# cat /etc/dhcpd.conf
ddns-update-style interim; #DDNS???·??????????趨???3???ad-hoc??interim??none
ignore client-updates; #???????????
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1; #???????趨
option subnet-mask 255.255.255.0; #?????????趨
option domain-name "localdomain"; #????????
option domain-name-servers 192.168.1.110; #?趨DNS?????????
range dynamic-bootp 192.168.1.128 192.168.1.136; #????????IP?????Χ
}
??????????????????DHCP????
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
????????????????DHCP????
????DHCP???????UDP??67??????Iptables???????DHCP????????????????Raw Socket??
??????????????趨????????????趨Iptables
????service dhcpd start
????service network restart
?????????????????????e??????????NAT
???????壩???
[root@localhost ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:F9:B7:FA
inet addr:192.168.227.131 Bcast:192.168.227.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fef9:b7fa/64 Scope:Link
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11