- 论坛徽章:
- 13
|
-
- $ vim vim /etc/dhcpd.conf
- # 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; # MAC
- fixed-address 207.175.42.254; # IP
- }
复制代码
- PS: 以前的笔记
- > cat dhcpd.conf
- # --- global definitions
- #ddns-update-style interim;
- ddns-update-style none;
- ignore client-updates;
- subnet 192.168.0.0 netmask 255.255.255.0 {
- # --- default gateway
- option routers 192.168.0.254;
- option subnet-mask 255.255.255.0;
- option nis-domain "NIServer";
- option domain-name "example.com";
- option domain-name-servers 192.168.0.254,192.168.0.254;
- 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;
- range dynamic-bootp 192.168.0.10 192.168.0.100;
- # 21600(6hours) 43200(12hours)
- default-lease-time 21600;
- max-lease-time 43200;
- # 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;
- }
- }
复制代码
- vim /etc/sysconfig/dhcpd
- DHCPDARGS="eth0" #Specify the NIC to Monitor
复制代码 回复 1# yue3321
|
|