network enabled verified low v1.0.0

route

Show/manipulate the IP routing table

📋 Live Preview
route -v {verbose} -n {numeric} -e {extend} -F {fib} -C {cache}
๐Ÿ“Ž verbose ๐Ÿ“Ž numeric ๐Ÿ“Ž extend ๐Ÿ“Ž fib ๐Ÿ“Ž cache
route -v {verbose} -n {numeric} -e {extend} -F {fib} -C {cache}

Sandbox: execFile · Timeout: 30s

Capabilities

network.config.route

Parameters

Name Type Required Default Description Aliases
verbose string No - be verbose -v, --verbose
numeric string No - don't resolve names -n, --numeric
extend string No - display other/more information -e, --extend
fib string No - display Forwarding Information Base (default) -F, --fib
cache string No - display routing cache instead of FIB -C, --cache

Examples

Basic usage with verbose

route ${verbose}

Display help message

route --help

Display the IP routing table

route

Add a new route to a specific network

route add -net {network} netmask {netmask} gw {gateway} {interface}

Add a default gateway

route add default gw {gateway} {interface}

Delete a route to a specific network

route del -net {network} netmask {netmask} gw {gateway} {interface}

Delete the default gateway

route del default

Add a route to a host

route add -host {destination-host} gw {gateway} {interface}

Change the metric of a route

route change -net {network} netmask {netmask} gw {gateway} {interface} metric {metric}

Show the routing table continuously with a delay

watch -n 1 route -n

Documentation

route โ€” Show/manipulate the IP routing table

Overview

route is a command-line utility for show/manipulate the ip routing table.

Usage

route -v {verbose} -n {numeric} -e {extend} -F {fib} -C {cache}