Forrest logo
back to context overview

ip-route

List of commands for ip-route:

  • ip-route:tldr:28164 ip-route: Show which route will be used by the kernel to reach an IP address.
    $ ip route get ${destination_ip}
    try on your machine
    explain this command
  • ip-route:tldr:58130 ip-route: Delete a static route.
    $ sudo ip route del ${destination_ip} dev ${eth0}
    try on your machine
    explain this command
  • ip-route:tldr:72e9b ip-route: Change or replace a static route.
    $ sudo ip route ${select} ${destination_ip} via ${gateway_ip} dev ${eth0}
    try on your machine
    explain this command
  • ip-route:tldr:928dd ip-route: Add a static route.
    $ sudo ip route add ${destination_ip} via ${gateway_ip} dev ${eth0}
    try on your machine
    explain this command
  • ip-route:tldr:ea0d7 ip-route: Add a default route using gateway forwarding.
    $ sudo ip route add default via ${gateway_ip}
    try on your machine
    explain this command
  • ip-route:tldr:ee27f ip-route: Display the routing table.
    $ ip route ${select}
    try on your machine
    explain this command
  • ip-route:tldr:f8850 ip-route: Add a default route using `eth0`.
    $ sudo ip route add default dev ${eth0}
    try on your machine
    explain this command
back to context overview