forked from ryan-brazeal-ufl/OpenPyLivox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mac OS X DHCP server configuration and usage.txt
58 lines (48 loc) · 2.12 KB
/
Mac OS X DHCP server configuration and usage.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Mac OS X DHCP Server configuration and usage
* NOTE: I can't take credit for this, I stole it from somewhere but can't remember
- Plug in USB to Ethernet cable and manually set IP address to 192.168.33.1 and Subnet to 255.255.255.0 using network preferences dialog
- Plug in and power on the Livox-Mid40 and ensure that the ethernet connection is established, as shown in network preferences
- Run ifconfig to determine the name of the ethernet network, in the example below it is en7
- Create /etc/bootpd.plist file with the following content, entering the network name (ex.en7) where required
<?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>en7</string>
</array>
<key>reply_threshold_seconds</key>
<integer>0</integer>
<key>Subnets</key>
<array>
<dict>
<key>allocate</key>
<true/>
<key>lease_max</key>
<integer>86400</integer>
<key>lease_min</key>
<integer>86400</integer>
<key>name</key>
<string>192.168.33</string>
<key>net_address</key>
<string>192.168.33.0</string>
<key>net_mask</key>
<string>255.255.255.0</string>
<key>net_range</key>
<array>
<string>192.168.33.2</string>
<string>192.168.33.254</string>
</array>
</dict>
</array>
</dict>
</plist>
- Run this command to start the DHCP server, sudo /bin/launchctl load -w /System/Library/LaunchDaemons/bootps.plist
- Use the auto_connect() function in openpylivox to connect to the sensor
- If desired, use the setStaticIP() function in openpylivox to fix the IP address (make sure to reboot the sensor and reconfigure the computer IP address)
- Run this command to stop the DHCP server, sudo /bin/launchctl unload -w /System/Library/LaunchDaemons/bootps.plist