User Tools

Site Tools


bash:commands:network_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

bash:commands:network_commands [2021/01/26 15:41] – created peterbash:commands:network_commands [2021/01/26 15:44] (current) peter
Line 1: Line 1:
 ====== BASH - Commands - Network Commands ====== ====== BASH - Commands - Network Commands ======
 +
 +===== Network =====
 +
 +^Description^Command^
 +|Activate network interface|ip link set ppp0 up|
 +|Change default route|ip route add default via 192.168.0.2|
 +|Deactivate network interface|ip link set ppp0 down|
 +|Delete IP address|ip addr del 192.168.0.193/24 dev wlan0|
 +|Display the system hostname|hostname|
 +|Display IP address of the host|hostname -i|
 +|Display network interfaces and IP addresses|ip addr show|
 +|Display network interfaces and IP addresses for a specific interface|ip addr show eth0|
 +|Download a file|wget filename|
 +|Enable TCP Delayed Ack|ip route quickack|
 +|Get DNS information for the domain|dig domain|
 +|Get Reverse DNS information for the host|dig -x host|
 +|Get whois information for the domain|whois domain|
 +|Lookup DNS IP address for the domain|host google.com|
 +|Lookup local IP address|hostname -i|
 +|Monitor network messages|ip monitor all|
 +|Set IP address|ip addr add 192.168.0.1 dev eth0|
 +|Show Ethernet status|ethtool eth0|
 +|Show Ethernet status|mii-tool eth0|
 +|Show Routing table|ip route show|
 +|Show the route packets will take|ip route get 192.168.0.1|
 +|Send echo request to test connection|ping host|
 +|Show all listening network ports|netstat -tulpn|
 +|Show network stats|ip -s link|
 +|Show network stats for an interface|ip -s -s link ls eth0|
 +|Show arp entries|ip neighbour|
 +
 +----
  
bash/commands/network_commands.1611675710.txt.gz · Last modified: 2021/01/26 15:41 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki