Time-to-live (TTL) is the number of hops that a package is set to exist in a network before it is discarded by the router if it does not find the destination host.
If you wish to change the value of this on your macOS to carry out a ping, you can make use of the sysctl command as follows,
% sudo sysctl net.inet.ip.ttl=100
net.inet.ip.ttl: 100 -> 92

Note: If you do not sudo, you will get an error like
sysctl: net.inet.ip.ttl=92: Operation not permitted
This command has been tested on macOS Big Sur, Monterey, and Ventura
-
Have Questions? Post them here!
More Posts related to MacOS,
- Opening mac Terminal
- How to change default macOS Terminal Window size
- How to clear Mac Terminal screen
- Find Hostname of Mac running on macOS Ventura 13
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to switch from bash to zsh shell in macOS Terminal
- Limit scrollback rows in macOS Terminal
- How to Set Background Wallpaper on macOS 13 Ventura
- This operation couldnt be completed. Unable to locate a Java Runtime. [macOS]
- Encode or Decode Base64 String using Mac Terminal Command
- List of All Apple Silicon ARM Based M1/M2 Mac [updated Oct 2022)
- How to remove Siri from Menu Bar [macOS Big Sur]
- Must Know Homebrew Commands for Mac/Linux Users
- Hide Keyboard Text Input Icon on macOS Ventura Menu Bar
- 13.0 MacOS Ventura release date
- How to change the default location of Mac Screenshot
- How to set Out Of Office (OOO) on Outlook for Mac
- 30+ Zoom video communications application shortcuts for macOS
- How to install wget on macOS
- Mac turn dark mode on or off using terminal command
- Create Symbolic Link using Terminal Command
- Mac - How to Install VirtualBox
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to install homebrew (brew) on M1 Mac
- How to uninstall Microsoft Outlook on Mac
More Posts:
- Send Extra Data with Ajax Get or Post Request - JavaScript
- How to Enable or Disable Dark Mode on macOS Ventura 13 - MacOS
- [Fix] Microsoft Store Error Code: 0x803F8001 - Microsoft
- Get List of all local branches git command - Git
- Android Images with Rounded Corners : ImageView - Android
- [fix] command not found curl - cURL
- How to display Java Date Time timezone GMT/UTC offset using SimpleDateFormat - Java
- Error 404 Tomcat homepage http://localhost:8080/ not displayed - Tomcat