Difference between revisions of "Route (command)"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
* 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> | ||
* <code>[[netstat]] -rn</code> | * <code>[[netstat]] -rn</code> | ||
− | + | * <code>[[ip route show]]</code> | |
== Basic Windows commands == | == Basic Windows commands == |
Revision as of 05:28, 7 December 2020
route
is a Linux command and Windows used to view and manipulate the IP routing table in Linux, Unix-like and Windows.
Contents
Basic Linux commands
- Add default router:
route add default gw 192.168.1.254 eth0
netstat -rn
ip route show
Basic Windows commands
route delete 10.10.10.10
route print
MacOS
route add default xx.xx.xx.xx
Network configuration files
- Ubuntu (systemd):
networkctl
/lib/systemd/network
, the volatile runtime network directory/run/systemd/network
/etc/systemd/network
Related commands: ip route [show|xxx]
PAN-OS
show routing route
Related terms
See also
route
, IOS:show ip route
, PAN-OS:show routing route
,route add
,route del
- IP:
route
,mtr
,traceroute
,tcptraceroute
,lft
, TTL ip
[link, route]
,ifconfig
netstat
ss
lsof
ping
ethtool
mii-tool
arping
nmcli
(RHEL)route
networkctl
,netplan
,tc
- TCP/IP, Transport protocol, UDP, SCTP, QUIC, subnet mask, Routing protocols: BGP, routing table, Policy based routing, multicast, TCP Fast Open, RDP, TTL, RTT, MPTCP, Large send offload (LSO): (TSO, GRO, GSO, TCP checksum),
ethtool
, SCTP, 5-Tuple, Check TCP connectivity, TCP window size,/proc/sys/net/ipv4/tcp_rmem
, ack, List of TCP ports, localhost, broadcast address
Advertising: