Forrest logo
back to context overview

route

List of commands for route:

  • route:tldr:11241 route: Lookup and display the route for a destination (hostname or IP address).
    $ sudo route get "${destination}"
    try on your machine
    explain this command
  • route:tldr:1bf49 route: Add route rule.
    $ sudo route add -net ${ip_address} netmask ${netmask_address} gw ${gw_address}
    try on your machine
    explain this command
  • route:tldr:25d82 route: Add a route to a /24 subnet through a gateway.
    $ sudo route add "${subnet_ip_address}/24" "${gateway_address}"
    try on your machine
    explain this command
  • route:tldr:345fb route: Run in test mode (does not do anything, just print).
    $ sudo route -t add "${destination_ip_address}/24" "${gateway_address}"
    try on your machine
    explain this command
  • route:tldr:4de18 route: Display the information of route table.
    $ route -n
    try on your machine
    explain this command
  • route:tldr:4f423 route: Delete route rule.
    $ sudo route del -net ${ip_address} netmask ${netmask_address} dev ${gw_address}
    try on your machine
    explain this command
  • route:tldr:70227 route: Add a route to a destination through a gateway.
    $ sudo route add "${destination_ip_address}" "${gateway_address}"
    try on your machine
    explain this command
  • route:tldr:a51d2 route: Delete a specific route.
    $ sudo route delete "${destination_ip_address}/24"
    try on your machine
    explain this command
  • route:tldr:d8441 route: Remove all routes.
    $ sudo route flush
    try on your machine
    explain this command
back to context overview