{"id":29,"date":"2019-10-19T21:57:10","date_gmt":"2019-10-19T19:57:10","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=29"},"modified":"2019-10-19T21:57:10","modified_gmt":"2019-10-19T19:57:10","slug":"linux-networking-kommandoer-og-scripts","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=29","title":{"rendered":"Linux Networking kommandoer og scripts"},"content":{"rendered":"\n<p><img decoding=\"async\" alt=\"iperf3 screenshot - Stacklinux.com VPS (Linux Networking Commands and Scripts)\" src=\"https:\/\/static.haydenjames.io\/wp-content\/uploads\/2019\/01\/iperf3-stacklinux-vps-screenshot-868x385.png\" \/><\/p>\n\n<p>This list of&nbsp;Linux Networking commands and scripts, will receive ongoing updates, similar to the&nbsp;<a href=\"https:\/\/haydenjames.io\/50-top-server-monitoring-application-performance-monitoring-apm-solutions\/\" rel=\"noopener noreferrer\" target=\"_blank\">other<\/a>&nbsp;<a href=\"https:\/\/haydenjames.io\/best-cdn-providers\/\" rel=\"noopener noreferrer\" target=\"_blank\">lists<\/a>&nbsp;<a href=\"https:\/\/haydenjames.io\/best-linux-server-distro\/\" rel=\"noopener noreferrer\" target=\"_blank\">on this<\/a>&nbsp;<a href=\"https:\/\/haydenjames.io\/linux-benchmark-scripts-tools\/\" rel=\"noopener noreferrer\" target=\"_blank\">blog<\/a>\u2026<\/p>\n\n<ol>\n\t<li><a href=\"https:\/\/linux.die.net\/man\/8\/arpwatch\" rel=\"noopener noreferrer\" target=\"_blank\">arpwatch<\/a>&nbsp;\u2013&nbsp;Ethernet Activity Monitor.<\/li>\n\t<li><a href=\"https:\/\/github.com\/tgraf\/bmon\" rel=\"noopener noreferrer\" target=\"_blank\">bmon<\/a>&nbsp;\u2013&nbsp;bandwidth monitor and rate estimator.<\/li>\n\t<li><a href=\"https:\/\/www.gropp.org\/?id=projects&amp;sub=bwm-ng\" rel=\"noopener noreferrer\" target=\"_blank\">bwm-ng<\/a>&nbsp;\u2013&nbsp;live network bandwidth monitor.<\/li>\n\t<li><a href=\"https:\/\/curl.haxx.se\/\" rel=\"noopener noreferrer\" target=\"_blank\">curl<\/a>&nbsp;\u2013&nbsp;transferring data with URLs. (or try&nbsp;<a href=\"https:\/\/httpie.org\/\" rel=\"noopener noreferrer\" target=\"_blank\">httpie<\/a>)<\/li>\n\t<li><a href=\"https:\/\/unix4lyfe.org\/darkstat\/\" rel=\"noopener noreferrer\" target=\"_blank\">darkstat<\/a>&nbsp;\u2013 captures network traffic, usage statistics.<\/li>\n\t<li><a href=\"https:\/\/linux.die.net\/man\/8\/dhclient\" rel=\"noopener noreferrer\" target=\"_blank\">dhclient<\/a>&nbsp;\u2013 Dynamic Host Configuration Protocol Client<\/li>\n\t<li><a href=\"https:\/\/linux.die.net\/man\/1\/dig\" rel=\"noopener noreferrer\" target=\"_blank\">dig<\/a>&nbsp;\u2013&nbsp;query DNS servers for information.<\/li>\n\t<li><a href=\"https:\/\/github.com\/dagwieers\/dstat\" rel=\"noopener noreferrer\" target=\"_blank\">dstat<\/a>&nbsp;\u2013&nbsp;replacement for vmstat, iostat, mpstat, netstat and ifstat.<\/li>\n\t<li><a href=\"https:\/\/mirrors.edge.kernel.org\/pub\/software\/network\/ethtool\/\" rel=\"noopener noreferrer\" target=\"_blank\">ethtool<\/a>&nbsp;\u2013&nbsp;utility for controlling network drivers and hardware.<\/li>\n\t<li><a href=\"https:\/\/www.oreilly.com\/library\/view\/linux-in-a\/0596000251\/re101.html\" rel=\"noopener noreferrer\" target=\"_blank\">gated<\/a>&nbsp;\u2013 gateway routing daemon.<\/li>\n\t<li><a href=\"https:\/\/linux.die.net\/man\/1\/host\" rel=\"noopener noreferrer\" target=\"_blank\">host<\/a>&nbsp;\u2013 DNS lookup utility.<\/li>\n\t<li><a href=\"http:\/\/www.hping.org\/\" rel=\"noopener noreferrer\" target=\"_blank\">hping<\/a>&nbsp;\u2013 TCP\/IP packet assembler\/analyzer.<\/li>\n\t<li><a href=\"http:\/\/ibmonitor.sourceforge.net\/\" rel=\"noopener noreferrer\" target=\"_blank\">ibmonitor<\/a>&nbsp;\u2013&nbsp;shows bandwidth and total data transferred.<\/li>\n\t<li><a href=\"http:\/\/gael.roualland.free.fr\/ifstat\/\" rel=\"noopener noreferrer\" target=\"_blank\">ifstat<\/a>&nbsp;\u2013&nbsp;&nbsp;report network interfaces bandwidth.<\/li>\n\t<li><a href=\"http:\/\/www.ex-parrot.com\/pdw\/iftop\/\" rel=\"noopener noreferrer\" target=\"_blank\">iftop<\/a>&nbsp;\u2013 display bandwidth usage.<\/li>\n\t<li><a href=\"https:\/\/access.redhat.com\/sites\/default\/files\/attachments\/rh_ip_command_cheatsheet_1214_jcs_print.pdf\" rel=\"noopener noreferrer\" target=\"_blank\">ip<\/a>&nbsp;(PDF file) \u2013&nbsp;a&nbsp;command&nbsp;with more features that ifconfig (net-tools).<\/li>\n\t<li><a href=\"https:\/\/github.com\/esnet\/iperf\" rel=\"noopener noreferrer\" target=\"_blank\">iperf3<\/a>&nbsp;\u2013 network bandwidth measurement tool. (above screenshot&nbsp;<a href=\"https:\/\/stacklinux.com\/\" rel=\"noopener noreferrer\" target=\"_blank\">Stacklinux VPS<\/a>)<\/li>\n\t<li><a href=\"https:\/\/wiki.linuxfoundation.org\/networking\/iproute2\" rel=\"noopener noreferrer\" target=\"_blank\">iproute2<\/a>&nbsp;\u2013&nbsp;collection of utilities for controlling&nbsp;TCP\/IP.<\/li>\n\t<li><a href=\"https:\/\/netfilter.org\/\" rel=\"noopener noreferrer\" target=\"_blank\">iptables<\/a>&nbsp;\u2013 take control of network traffic.<\/li>\n\t<li><a href=\"http:\/\/iptraf.seul.org\/\" rel=\"noopener noreferrer\" target=\"_blank\">IPTraf<\/a>&nbsp;\u2013 An IP Network Monitor.<\/li>\n\t<li><a href=\"https:\/\/wiki.linuxfoundation.org\/networking\/iputils\" rel=\"noopener noreferrer\" target=\"_blank\">iputils<\/a>&nbsp;\u2013&nbsp;set of small useful utilities for Linux networking.<\/li>\n\t<li><a href=\"https:\/\/wireless.wiki.kernel.org\/en\/users\/documentation\/iw\" rel=\"noopener noreferrer\" target=\"_blank\">iw<\/a>&nbsp;\u2013 a new&nbsp;nl80211&nbsp;based CLI configuration utility for wireless devices.<\/li>\n\t<li><a href=\"https:\/\/www.gnu.org\/software\/jwhois\/\" rel=\"noopener noreferrer\" target=\"_blank\">jwhois<\/a>&nbsp;(whois) \u2013&nbsp;client for the whois service.<\/li>\n\t<li><a href=\"https:\/\/www.novell.com\/coolsolutions\/tip\/18078.html\" rel=\"noopener noreferrer\" target=\"_blank\">\u201clsof -i\u201d<\/a>&nbsp;\u2013 reveal information about your network sockets.<\/li>\n\t<li><a href=\"http:\/\/www.bitwizard.nl\/mtr\/\" rel=\"noopener noreferrer\" target=\"_blank\">mtr<\/a>&nbsp;\u2013&nbsp;network diagnostic tool.<\/li>\n\t<li><a href=\"http:\/\/net-tools.sourceforge.net\/\" rel=\"noopener noreferrer\" target=\"_blank\">net-tools<\/a>&nbsp;\u2013 utilities include: arp, hostname, ifconfig, netstat, rarp, route, plipconfig, slattach, mii-tool, iptunnel and ipmaddr.<\/li>\n\t<li><a href=\"https:\/\/nmap.org\/ncat\/\" rel=\"noopener noreferrer\" target=\"_blank\">ncat<\/a>&nbsp;\u2013&nbsp;improved re-implementation of the venerable netcat.<\/li>\n\t<li><a href=\"http:\/\/nc110.sourceforge.net\/\" rel=\"noopener noreferrer\" target=\"_blank\">netcat<\/a>&nbsp;\u2013 networking utility for reading\/writing network connections.<\/li>\n\t<li><a href=\"https:\/\/github.com\/raboof\/nethogs\" rel=\"noopener noreferrer\" target=\"_blank\">nethogs<\/a>&nbsp;\u2013&nbsp;a small \u2018net top\u2019 tool.<\/li>\n\t<li><a href=\"https:\/\/github.com\/HewlettPackard\/netperf\" rel=\"noopener noreferrer\" target=\"_blank\">Netperf<\/a>&nbsp;\u2013 Network bandwidth Testing.<\/li>\n\t<li><a href=\"http:\/\/netsniff-ng.org\/\" rel=\"noopener noreferrer\" target=\"_blank\">netsniff-ng<\/a>&nbsp;\u2013 Swiss army knife for daily Linux network plumbing.<\/li>\n\t<li><a href=\"http:\/\/net-tools.sourceforge.net\/man\/netstat.8.html\" rel=\"noopener noreferrer\" target=\"_blank\">netstat<\/a>&nbsp;\u2013 Print network connections, routing tables, statistics, etc.<\/li>\n\t<li><a href=\"http:\/\/www.slctech.org\/~mackay\/NETWATCH\/netwatch.html\" rel=\"noopener noreferrer\" target=\"_blank\">netwatch<\/a>&nbsp;\u2013&nbsp;monitoring Network Connections.<\/li>\n\t<li><a href=\"https:\/\/github.com\/jpr5\/ngrep\/\" rel=\"noopener noreferrer\" target=\"_blank\">ngrep<\/a>&nbsp;\u2013&nbsp;grep applied to the network layer.<\/li>\n\t<li><a href=\"https:\/\/linux.die.net\/man\/1\/nload\" rel=\"noopener noreferrer\" target=\"_blank\">nload<\/a>&nbsp;\u2013 display network usage.<\/li>\n\t<li><a href=\"https:\/\/nmap.org\/\" rel=\"noopener noreferrer\" target=\"_blank\">nmap<\/a>&nbsp;\u2013&nbsp;network discovery and security auditing.<\/li>\n\t<li><a href=\"https:\/\/developer.gnome.org\/NetworkManager\/stable\/nmcli.html\" rel=\"noopener noreferrer\" target=\"_blank\">nmcli<\/a>&nbsp;\u2013&nbsp;a command-line tool for controlling NetworkManager and reporting network status.<\/li>\n\t<li><a href=\"https:\/\/access.redhat.com\/documentation\/en-US\/Red_Hat_Enterprise_Linux\/7\/html\/Networking_Guide\/sec-Networking_Config_Using_nmtui.html\" rel=\"noopener noreferrer\" target=\"_blank\">nmtui<\/a>&nbsp;\u2013&nbsp;provides a text interface to configure networking by controlling&nbsp;NetworkManager.<\/li>\n\t<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Nslookup\" rel=\"noopener noreferrer\" target=\"_blank\">nslookup<\/a>&nbsp;\u2013&nbsp;query Internet name servers interactively.<\/li>\n\t<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Ping_(networking_utility)\" rel=\"noopener noreferrer\" target=\"_blank\">ping<\/a>&nbsp;\u2013&nbsp;send icmp echo_request to network hosts.<\/li>\n\t<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Route_(command)\" rel=\"noopener noreferrer\" target=\"_blank\">route<\/a>&nbsp;\u2013&nbsp;show \/ manipulate the IP routing table.<\/li>\n\t<li><a href=\"https:\/\/github.com\/mattthias\/slurm\" rel=\"noopener noreferrer\" target=\"_blank\">slurm<\/a>&nbsp;\u2013 network load monitor.<\/li>\n\t<li><a href=\"https:\/\/www.snort.org\/\" rel=\"noopener noreferrer\" target=\"_blank\">snort<\/a>&nbsp;\u2013 Network Intrusion Detection and Prevention System.<\/li>\n\t<li><a href=\"https:\/\/oss.oetiker.ch\/smokeping\/\" rel=\"noopener noreferrer\" target=\"_blank\">smokeping<\/a>&nbsp;\u2013&nbsp;&nbsp;keeps track of your network latency.<\/li>\n\t<li><a href=\"http:\/\/www.dest-unreach.org\/socat\/\" rel=\"noopener noreferrer\" target=\"_blank\">socat<\/a>&nbsp;\u2013&nbsp;establishes two bidirectional byte streams and transfers data between them.<\/li>\n\t<li><a href=\"http:\/\/excess.org\/speedometer\/\" rel=\"noopener noreferrer\" target=\"_blank\">speedometer<\/a>&nbsp;\u2013&nbsp;Measure and display the rate of data across a network.<\/li>\n\t<li><a href=\"https:\/\/github.com\/sivel\/speedtest-cli\" rel=\"noopener noreferrer\" target=\"_blank\">speedtest-cli<\/a>&nbsp;\u2013 test internet bandwidth using speedtest.net<\/li>\n\t<li><a href=\"http:\/\/linux-ip.net\/gl\/ss\/\" rel=\"noopener noreferrer\" target=\"_blank\">ss<\/a>&nbsp;\u2013&nbsp;utility to investigate sockets.<\/li>\n\t<li><a href=\"https:\/\/www.ssh.com\/ssh\/\" rel=\"noopener noreferrer\" target=\"_blank\">ssh<\/a>&nbsp;\u2013&nbsp;&nbsp;secure system administration and file transfers over insecure networks.<\/li>\n\t<li><a href=\"https:\/\/www.tcpdump.org\/\" rel=\"noopener noreferrer\" target=\"_blank\">tcpdump<\/a>&nbsp;\u2013&nbsp;command-line packet analyzer.<\/li>\n\t<li><a href=\"https:\/\/github.com\/bchretien\/tcptrack\" rel=\"noopener noreferrer\" target=\"_blank\">tcptrack<\/a>&nbsp;\u2013 Displays information about tcp connections on a network interface.<\/li>\n\t<li><a href=\"https:\/\/www.unix.com\/man-page\/linux\/1\/telnet\/\" rel=\"noopener noreferrer\" target=\"_blank\">telnet<\/a>&nbsp;\u2013&nbsp;user interface to the TELNET protocol.<\/li>\n\t<li><a href=\"https:\/\/linux.die.net\/man\/8\/tracepath\" rel=\"noopener noreferrer\" target=\"_blank\">tracepath<\/a>&nbsp;\u2013&nbsp;very similar function to traceroute.<\/li>\n\t<li><a href=\"http:\/\/traceroute.sourceforge.net\/\" rel=\"noopener noreferrer\" target=\"_blank\">traceroute<\/a>&nbsp;\u2013&nbsp;print the route packets trace to network host.<\/li>\n\t<li><a href=\"https:\/\/humdi.net\/vnstat\/\" rel=\"noopener noreferrer\" target=\"_blank\">vnStat<\/a>&nbsp;\u2013 network traffic monitor.<\/li>\n\t<li><a href=\"https:\/\/github.com\/vi\/websocat\" rel=\"noopener noreferrer\" target=\"_blank\">websocat<\/a>&nbsp;\u2013 Connection forwarder from\/to web sockets to\/from usual sockets, in style of socat.<\/li>\n\t<li><a href=\"https:\/\/www.gnu.org\/software\/wget\/\" rel=\"noopener noreferrer\" target=\"_blank\">wget<\/a>&nbsp;\u2013&nbsp;&nbsp;retrieving files using HTTP, HTTPS, FTP and FTPS.<\/li>\n\t<li><a href=\"https:\/\/hewlettpackard.github.io\/wireless-tools\/Tools.html\" rel=\"noopener noreferrer\" target=\"_blank\">Wireless Tools for Linux<\/a>&nbsp;\u2013 includes&nbsp;iwconfig,&nbsp;iwlist,&nbsp;iwspy,&nbsp;iwpriv and&nbsp;ifrename.<\/li>\n\t<li><a href=\"https:\/\/www.wireshark.org\/\" rel=\"noopener noreferrer\" target=\"_blank\">Wireshark<\/a>&nbsp;\u2013&nbsp;network protocol analyzer.<\/li>\n<\/ol>\n\n<p>&nbsp;<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>This list of&nbsp;Linux Networking commands and scripts, will receive ongoing updates, similar to the&nbsp;other&nbsp;lists&nbsp;on this&nbsp;blog\u2026 arpwatch&nbsp;\u2013&nbsp;Ethernet Activity Monitor. bmon&nbsp;\u2013&nbsp;bandwidth monitor and rate estimator. bwm-ng&nbsp;\u2013&nbsp;live network bandwidth monitor. curl&nbsp;\u2013&nbsp;transferring data with URLs. (or try&nbsp;httpie) darkstat&nbsp;\u2013 captures network traffic, usage statistics. dhclient&nbsp;\u2013 Dynamic Host Configuration Protocol Client dig&nbsp;\u2013&nbsp;query DNS servers for information. dstat&nbsp;\u2013&nbsp;replacement for vmstat, iostat, mpstat, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-tips"],"a3_pvc":{"activated":false,"total_views":0,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/29\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}