This guide is intended to show you how to provide an IP address to an Atlona unit whose NIC (network interface card) is set to accept IP addresses automatically using a DHCP server. Before you begin this guide, please connect your computer to the Atlona product’s LAN port with a CAT5e or better Ethernet patch cable. You will also need to configure your Mac Network Interface Card Settings and assign your PC a static IP address.

1. Open Network Preferences

2. Set your Wired Network Interface Card with the following IP address

  • IP address – 192.168.10.2
  • Subnet Mask – 255.255.255.0

3. Open the Terminal application and create under “/etc” the DHCP config file, name it “bootpd.plist” elevating your permission using “sudo”

  • sudo vi /etc/bootpd.plist

<?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>bootp_enabled</key>

    <false/>

    <key>detect_other_dhcp_server</key>

    <integer>1</integer>

    <key>dhcp_enabled</key>

    <array>

        <string>en0</string>

    </array>

    <key>reply_threshold_seconds</key>

    <integer>0</integer>

    <key>Subnets</key>

    <array>

        <dict>

            <key>allocate</key>

            <true/>

            <key>dhcp_router</key>

            <string>192.168.10.1</string>

            <key>lease_max</key>

            <integer>86400</integer>

            <key>lease_min</key>

            <integer>86400</integer>

            <key>name</key>

            <string>192.168.10</string>

            <key>net_address</key>

            <string>192.168.10.0</string>

            <key>net_mask</key>

            <string>255.255.255.0</string>

            <key>net_range</key>

            <array>

                <string>192.168.10.100</string>

                <string>192.168.10.200</string>

            </array>

        </dict>

    </array>

</dict>

</plist>

4. To start the DHCP Server

sudo /bin/launchctl load -w /System/Library/LaunchDaemons/bootps.plist

5. To stop the DHCP server

sudo /bin/launchctl unload -w /System/Library/LaunchDaemons/bootps.plist

 

* Please note that this script assumes that the wired Network Interface Card is labeled as “en0” – if this is not the case you will need to adjust the script, to do so edit this script using your favorite editor, Edit the interface name (line 11) and save the file.

** This script for the DHCP server set a range of 100 IP addresses – 192.168.10.100 up to 192.168.10.200.