Full reinstall via Recovery. Shut down. Start holding the power button (Apple Silicon) until Options, or Cmd+R on Intel.
The ping command is also commonly used to test network errors, check if two devices on a network are connected, or simply ...