Gateway commands can be viewed:
netstat -rn
The Gateway starting with 0.0.0.0 is the default gateway, and 24 means the subnet mask is 255.255.255.0
This article is reprinted from: https://diannaobos.com/post/1101.html
This site is for inclusion only, and the copyright belongs to the original author.