dhcpd.conf.sample

来自「iscsi-init LINUX boot」· SAMPLE 代码 · 共 64 行

SAMPLE
64
字号
allow bootp;ddns-update-style none; subnet 192.168.1.0 netmask 255.255.255.0 {    option domain-name "mycompany.com";    option domain-name-servers 192.168.1.110,192.168.2.110,192.168.3.110;    option subnet-mask 255.255.255.0;    option broadcast-address 192.168.1.255;    option routers 192.168.1.1;    group {        use-host-decl-names on;        next-server 192.168.1.2;        filename "/tftpboot/pxelinux.0";        host dunya {            hardware ethernet 00:03:47:31:22:89;            fixed-address 192.168.1.10;            option root-path "192.168.1.2:/iqn.1992-08.com.netapp:sn.16804546/iqn.1987-05.com.cisco:01.26ffb046ec";        }    }}# This example shows how you can define multiple targets via multiple interfacessubnet 192.168.1.0 netmask 255.255.255.0 {    option domain-name "mycompany.com";    option domain-name-servers 192.168.1.110,192.168.2.110,192.168.3.110;    option subnet-mask 255.255.255.0;    option broadcast-address 192.168.1.255;    option routers 192.168.1.1;    group {        use-host-decl-names on;        next-server 192.168.1.2;        filename "/tftpboot/pxelinux.0";        host dunya {            hardware ethernet 00:03:47:31:22:89;            fixed-address 192.168.1.10;            option root-path "192.168.1.2:/iqn.1992-08.com.netapp:sn.16804546/iqn.1987-05.com.cisco:01.26ffb046ec";        }    }}subnet 192.168.2.0 netmask 255.255.255.0 {    option domain-name "mycompany.com";    option domain-name-servers 192.168.1.110,192.168.2.110,192.168.3.110;    option subnet-mask 255.255.255.0;    option broadcast-address 192.168.2.255;    option routers 192.168.2.1;    group {        use-host-decl-names on;        next-server 192.168.2.2;        filename "/tftpboot/pxelinux.0";        host dunya-failover {            hardware ethernet 00:03:47:31:22:65;            fixed-address 192.168.2.10;            option root-path "192.168.2.2:/iqn.1992-08.com.netapp:sn.16804987/iqn.1987-05.com.cisco:01.26ffb046ec";        }    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?