在MacOS上删除U盘的EFI分区
diskutil eraseDisk HFS+ Liang MBR disk3
MAC制作ISO文件
- 使用磁盘工具做一个后缀为cdr的文件
hdiutil makehybrid -iso -joliet -o test.iso test.dmg.cdr
OS X 设置默认网关
route flush //删除所有路由
route add default next-hop-address //加默认网关
route add X.X.X.X/NN next-hop-address //加明细路由
route delete X.X.X.X/NN next-hop-address //删除路由
netstat -rn //查看路由表
MAC OSX IPv6 Error Solution:
- 列出你的网卡
networksetup -listallnetworkservices
- 关闭ipv6
networksetup -setv6off "你网卡名字"
- 设置ip地址
networksetup -setmanual "网卡名字" 192.168.31.2 255.255.255.0 192.168.1.1
Mac开启TFTP服务器
sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
sudo launchctl start com.apple.tftpd
#The default tftp file path is /private/tftpboot.
#You can stop it with:
sudo launchctl unload -F /System/Library/LaunchDaemons/tftp.plist
网友评论