Difference between revisions of "Route (command)"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | <code>route</code> is a [[Linux Commands|Linux command]] used to view and manipulate the IP routing table in Linux, Unix-like and Windows. | + | <code>route</code> is a [[Linux Commands|Linux command]] and Windows used to view and manipulate the IP routing table in Linux, Unix-like and Windows. |
− | == Basic commands == | + | == Basic Linux commands == |
* Add default router: <code>route add default gw 192.168.1.254 eth0</code> | * Add default router: <code>route add default gw 192.168.1.254 eth0</code> | ||
+ | |||
+ | == Basic Windows commands == | ||
+ | * <code>route delete 10.10.10.10</code> | ||
+ | * <code>route print</code> | ||
Revision as of 17:49, 8 December 2019
route
is a Linux command and Windows used to view and manipulate the IP routing table in Linux, Unix-like and Windows.
Basic Linux commands
- Add default router:
route add default gw 192.168.1.254 eth0
Basic Windows commands
route delete 10.10.10.10
route print
Network configuration files
- Ubuntu (systemd):
networkctl
/lib/systemd/network
, the volatile runtime network directory/run/systemd/network
/etc/systemd/network
See also
Advertising: