TFTP macOS instructions

This commit is contained in:
Evan Reichard 2023-04-22 19:27:34 -04:00
parent 7107069d4a
commit ee8081d0f7
2 changed files with 30 additions and 3 deletions

View File

@ -48,5 +48,32 @@ systemctl stop tftpd-hpa
##optionally remove it completely ##optionally remove it completely
apt remove tftpd-hpa apt remove tftpd-hpa
``` ```
### Setting up TFTP (macOS)
Fortunately macOS has a built in tftp server, all you have to do is enable it. First, load the 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
```
## Begin ## 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.

View File

@ -3,7 +3,7 @@
## Preparation ## Preparation
If you haven't already, visit the [Brocade Overview](brocade-overview.md) page to download the latest guide package and get it ready to be served via TFTP - this unified package includes all the latest firmware, licenses, and documentation. If you haven't already, visit the [Brocade Overview](brocade-overview.md) page to download the latest guide package and get it ready to be served via TFTP - this unified package includes all the latest firmware, licenses, and documentation.
**Connect** to the serial/console port using a program like Putty (9600 8N1), then connect the **management ethernet port** to your network (do NOT use any of the regular switch ports yet). **Connect** to the serial/console port using a program like Putty (9600 8N1) or screen (`screen /dev/<device> 9600`), then connect the **management ethernet port** to your network (do NOT use any of the regular switch ports yet).
Power on the switch while watching your serial terminal - it will have a prompt saying ```Hit b to enter the boot monitor``` - press ```b``` quickly and you'll be dropped into the bootloader prompt, now we can upgrade the software. If you missed the prompt and it boots the OS instead, pull power and try again. Power on the switch while watching your serial terminal - it will have a prompt saying ```Hit b to enter the boot monitor``` - press ```b``` quickly and you'll be dropped into the bootloader prompt, now we can upgrade the software. If you missed the prompt and it boots the OS instead, pull power and try again.