Merge pull request #38 from evanreichard/master

TFTP macOS instructions
This commit is contained in:
Jon Sands 2023-05-15 06:31:04 -04:00 committed by GitHub
commit 1f199719a1

View File

@ -48,5 +48,35 @@ systemctl stop tftpd-hpa
##optionally remove it completely
apt remove tftpd-hpa
```
### Setting up TFTP (macOS)
Fortunately macOS has a built in TFTP server, all you have to do is enable it. Lets first temporarily disable the Firewall: **System Settings** -> **Network** -> **Firewall**.
Load the TFTP service:
```
sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
```
Start the service:
```
sudo launchctl start com.apple.tftpd
```
By default, the TFTP directory is at `/private/tftpboot`. Be sure to grant permissions:
```
sudo chmod 777 /private/tftpboot
```
Move the contents of `TFTP-Content` to the `/private/tftpboot` directory.
Once complete, you can stop and disable the service:
```
sudo launchctl stop com.apple.tftpd
sudo launchctl unload -F /System/Library/LaunchDaemons/tftp.plist
##optionally to be double sure TFTP is no longer running, ensure theres no output from the following:
sudo lsof -i :69
```
Finally, be sure to re-enable the firewall: **System Settings** -> **Network** -> **Firewall**
## Begin
You're now serving the required files over TFTP. Just navigate to the left-hand menu, underneath the **Brocade Setup** section - click on the section for your switch model and begin.
You're now serving the required files over TFTP. Just navigate to the left-hand menu, underneath the **Brocade Setup** section - click on the section for your switch model and begin.