Difference between revisions of "User:Saul/networking"

From Organic Design wiki
(Created networking page with useful networking commands.)
 
m (Useful Commands)
Line 1: Line 1:
 
== Useful Commands ==
 
== Useful Commands ==
 +
=== General ===
 
<source lang="bash">
 
<source lang="bash">
 
# Ping with a payload of 500 bytes 3 times
 
# Ping with a payload of 500 bytes 3 times
Line 6: Line 7:
 
# Traceroute to show a path to HOSTNAME
 
# Traceroute to show a path to HOSTNAME
 
traceroute <HOSTNAME>
 
traceroute <HOSTNAME>
 +
</source>
  
 +
=== Dig ===
 +
<source lang="bash">
 
# Resolve hostname to ip address where type = {A, AAAA, MX, NS...}
 
# Resolve hostname to ip address where type = {A, AAAA, MX, NS...}
 
dig <TYPE> <HOSTNAME>
 
dig <TYPE> <HOSTNAME>
  
 +
# Reverse dns lookup
 +
dig -x <ADDRESS>
 +
</source>
 +
 +
=== IP ===
 +
<source lang="bash">
 
# Show configured interfaces
 
# Show configured interfaces
 
ip address show
 
ip address show

Revision as of 21:33, 3 November 2020

Useful Commands

General

# Ping with a payload of 500 bytes 3 times
ping -s 500 -c 3 <HOSTNAME>

# Traceroute to show a path to HOSTNAME
traceroute <HOSTNAME>

Dig

# Resolve hostname to ip address where type = {A, AAAA, MX, NS...}
dig <TYPE> <HOSTNAME>

# Reverse dns lookup
dig -x <ADDRESS>

IP

# Show configured interfaces
ip address show

# Show info for the interface IFACE
ip address show dev <IFACE>

# Show configured routes
ip route show