2

I need to run bootpd on El Capitan and configure it to use a different gateway and modify the pool range by altering file /etc/bootpd.plist

However on El Capitan it seems that bootpd while present is essentially disabled and the bootpd.plist file isn't in /etc or anywhere.

How do I get going with bootpd on 10.11.x ?

ferik
  • 121

2 Answers2

1

Here is the content of a:

/etc/bootpd.plist

which worked correctly on many different versions of MacOS ( Yosemite - High Sierra ):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>allow</key>
        <array>
                <string>••:••:••:64:5d:5e</string>
            &lt;string&gt;••:••:••:0b:61:a8&lt;/string&gt;
            &lt;string&gt;••:••:••:76:31:48&lt;/string&gt;

            &lt;string&gt;••:••:••:9f:20:79&lt;/string&gt;
            &lt;string&gt;••:••:••:ed:7c:fd&lt;/string&gt;

            &lt;!...&gt;

    &lt;/array&gt;
    &lt;key&gt;Subnets&lt;/key&gt;
    &lt;array&gt;
            &lt;dict&gt;
                    &lt;key&gt;_creator&lt;/key&gt;
                    &lt;string&gt;com.apple.NetworkSharing&lt;/string&gt;
                    &lt;key&gt;allocate&lt;/key&gt;
                    &lt;true/&gt;
                    &lt;key&gt;dhcp_domain_name_server&lt;/key&gt;
                    &lt;array&gt;
                            &lt;string&gt;10.0.2.1&lt;/string&gt;
                    &lt;/array&gt;
                    &lt;key&gt;dhcp_router&lt;/key&gt;
                    &lt;string&gt;10.0.2.1&lt;/string&gt;
                    &lt;key&gt;interface&lt;/key&gt;
                    &lt;string&gt;en1&lt;/string&gt;
                    &lt;key&gt;lease_max&lt;/key&gt;
                    &lt;integer&gt;86400&lt;/integer&gt;
                    &lt;key&gt;lease_min&lt;/key&gt;
                    &lt;integer&gt;86400&lt;/integer&gt;
                    &lt;key&gt;name&lt;/key&gt;
                    &lt;string&gt;10.0.2/24&lt;/string&gt;
                    &lt;key&gt;net_address&lt;/key&gt;
                    &lt;string&gt;10.0.2.0&lt;/string&gt;
                    &lt;key&gt;net_mask&lt;/key&gt;
                    &lt;string&gt;255.255.255.0&lt;/string&gt;
                    &lt;key&gt;net_range&lt;/key&gt;
                    &lt;array&gt;
                            &lt;string&gt;10.0.2.2&lt;/string&gt;
                            &lt;string&gt;10.0.2.31&lt;/string&gt;
                    &lt;/array&gt;
            &lt;/dict&gt;
    &lt;/array&gt;
    &lt;key&gt;bootp_enabled&lt;/key&gt;
    &lt;false/&gt;
    &lt;key&gt;detect_other_dhcp_server&lt;/key&gt;
    &lt;array&gt;
            &lt;string&gt;en1&lt;/string&gt;
    &lt;/array&gt;
    &lt;key&gt;dhcp_enabled&lt;/key&gt;
    &lt;array&gt;
            &lt;string&gt;en1&lt;/string&gt;
    &lt;/array&gt;
    &lt;key&gt;dhcp_ignore_client_identifier&lt;/key&gt;
    &lt;true/&gt;
    &lt;key&gt;use_server_config_for_dhcp_options&lt;/key&gt;
    &lt;false/&gt;

</dict> </plist>

Next you will have to start the bootpd server which is managed with launchd.

See its configuration file here:

/System/Library/LaunchDaemons/bootps.plist

and check if it is running with:

/usr/bin/sudo launchctl list com.apple.bootpd
athena
  • 178