Editing Route (command)
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | <code>[[wikipedia:route (command)|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. | |
− | <code>[[wikipedia:route (command)|route]]</code> is a [[Linux Commands|Linux command]] and Windows used to view and manipulate the IP | ||
Line 7: | Line 6: | ||
* Add default router: | * Add default router: | ||
− | + | ** <code>route add default gw 192.168.1.254 eth0</code> | |
− | <code>route add default gw 192.168.1.254 eth0</code> | ||
− | |||
* Add route to an specific [[subnet]]: | * Add route to an specific [[subnet]]: | ||
+ | ** <code>route add -net 10.10.10.0/24 dev eth0</code> | ||
+ | * <code>[[netstat]] -rn</code> | ||
+ | * <code>[[ip route show]]</code> | ||
− | + | * <code>[[route del]]</code> | |
− | + | * <code>route del -net 0.0.0.0 gw 192.168.178.1 netmask 0.0.0.0 dev eth0</code> | |
− | |||
− | |||
− | |||
− | |||
− | <code>[[route del]]</code> | ||
− | |||
− | <code>route del -net 0.0.0.0 gw 192.168.178.1 netmask 0.0.0.0 dev eth0</code> | ||
== Basic Windows commands == | == Basic Windows commands == | ||
− | <code>route delete 10.10.10.10</code> | + | * <code>route delete 10.10.10.10</code> |
− | + | * <code>route delete 0.0.0.0 mask 0.0.0.0 XXX 10.10.10.10</code> | |
− | <code>route delete 0.0.0.0 mask 0.0.0.0 XXX 10.10.10.10</code> | + | * <code>route print</code> |
− | + | ==MacOS == | |
− | + | route add default xx.xx.xx.xx | |
− | == | + | route del default |
− | |||
== Network configuration files == | == Network configuration files == | ||
− | * Ubuntu ([[systemd]]): | + | * Ubuntu ([[systemd]]): <code>[[networkctl]]</code> |
+ | ** <code>/lib/systemd/network</code>, the volatile runtime network directory <code>/run/systemd/network</code> | ||
+ | ** <code>/etc/systemd/network</code> | ||
− | |||
− | <code> | + | Related commands: <code>[[ip route]] [show|xxx]</code> |
− | |||
− | |||
− | |||
− | |||
== [[PAN-OS]] == | == [[PAN-OS]] == | ||
Line 50: | Line 39: | ||
* <code>[[/proc/net/]]route</code> | * <code>[[/proc/net/]]route</code> | ||
* <code>[[ip]]</code> | * <code>[[ip]]</code> | ||
− | * | + | * [[traceroute]] |
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == |
Advertising: