route

Windows CMD · Network · available in the simulator

What it does

Displays and modifies the IP routing table.

Syntax

route [-f] [-p] comando [destino] [mask máscara] [pasarela]

Options and parameters

  • print

    Subcommand: displays the routing table.

    route print
  • add

    Subcommand: adds a route.

    route add 10.0.0.0 mask 255.0.0.0 192.168.1.1
  • delete

    Subcommand: deletes a route.

  • change

    Subcommand: modifies an existing route.

  • -p

    Makes the route persistent across reboots.

  • -f

    Flushes the routing tables.

Usage examples

  • route print
  • route add 10.0.0.0 mask 255.0.0.0 192.168.1.1
Practise route

Related commands