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
-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to MacOS,
- Clear Screen shortcut macOS Terminal
- What is macOS Ventura?
- [fix] How to Show file extensions on all files on Mac
- How to Find Where Mac Terminal App is Located?
- AutoSave button not working on Office on Mac (Word, Excel or Powerpoint)
- macOS say command text to speech using various voices and languages
- How to change Ping TTL value on macOS
- Open .bash_profile File in TextEdit using Terminal
- How to know the Safari Version on Mac
- How to Copy full Absolute Path of a File on Mac
- 13.0 MacOS Ventura release date
- Enable spell check in Sublime Text (macOS)
- How to Display Analog Clock on Mac Menu Bar
- How to turn off Location Services macOS Ventura 13
- How to Open VS Code on Mac
- Add Bookmark macOS Safari
- How to Fix cd: too many arguments Error in Terminal: A Step-by-Step Guide
- How to install wget on macOS
- Select Line Number TextEdit on Mac
- Strikethrough Text in Excel for Mac
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to hide or display Wifi icon in macOS Bug Sur Menu Bar
- How to install Yarn on Mac (macOS)
- How to fix command not found brew (bash, zsh) on macOS Terminal
- How to Schedule Mails in macOS Ventura
More Posts:
- Fix: Jupyter Notebook: The port 8888 is already in use, trying another port. - Python
- Disable Control Scroll Zoom-in and Zoom-out in Notepad++ - NotepadPlusPlus
- How to send SMS on Android Emulator - Android
- Hide Bluetooth icon on Mac Menu Bar macOS Ventura 13 - MacOS
- How to Clone Bitbucket repository to Local Computer - Git
- Twitch chat down, error loading data, content unavailable, streaming problem - News
- How to create new user account in Windows bash - Bash
- Fix: Deprecated Gradle features were used in this build, making it incompatible with Gradle - Gradle