{"id":1876,"date":"2019-02-01T20:07:31","date_gmt":"2019-02-01T20:07:31","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/linux-command-reference\/network\/"},"modified":"2019-02-01T20:07:31","modified_gmt":"2019-02-01T20:07:31","slug":"network","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/linux-command-reference\/network\/","title":{"rendered":"Network"},"content":{"rendered":"<table>\n<tr>\n<th>Command<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td> ifconfig -a        <\/td>\n<td> Displays all network interface and set ip address<\/td>\n<\/tr>\n<tr>\n<td> ifconfig eth0      <\/td>\n<td> Displays eth0 ethernet port ip address and details<\/td>\n<\/tr>\n<tr>\n<td> ip addr show       <\/td>\n<td> Display all network interfaces and ip addresses<\/td>\n<\/tr>\n<tr>\n<td> ip address add 192.168.0.1 dev etho<\/td>\n<td> Sets ip address of eth0 device<\/td>\n<\/tr>\n<tr>\n<td> ethtool eth0       <\/td>\n<td> Linux tool to show ethernet status<\/td>\n<\/tr>\n<tr>\n<td> mii-tool  eth0     <\/td>\n<td> Linux tool to show eth0 status<\/td>\n<\/tr>\n<tr>\n<td> ping host          <\/td>\n<td> Sends echo requests to the host to test ipv4 connection<\/td>\n<\/tr>\n<tr>\n<td> whois domain       <\/td>\n<td> Gets who is information for domain<\/td>\n<\/tr>\n<tr>\n<td> dig domain         <\/td>\n<td> Gets DNS nameserver information for domain<\/td>\n<\/tr>\n<tr>\n<td> host google.com<\/td>\n<td> Lookup DNS ip address for the name<\/td>\n<\/tr>\n<tr>\n<td> hostname -i        <\/td>\n<td> Lookup local ip address<\/td>\n<\/tr>\n<tr>\n<td> wget file          <\/td>\n<td> Downloads file<\/td>\n<\/tr>\n<tr>\n<td> netstat  -tupl     <\/td>\n<td> Lists all active listening ports<\/td>\n<\/tr>\n<tr>\n<td> nslookup           <\/td>\n<td> Resolves domain names to IP addresses<\/td>\n<\/tr>\n<tr>\n<td>  dig -x host        <\/td>\n<td> Reverse lookup host <\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Command Description ifconfig -a Displays all network interface and set ip address ifconfig eth0 Displays eth0 ethernet port ip address and details ip addr show Display all network interfaces and ip addresses ip address add 192.168.0.1 dev etho Sets ip address of eth0 device ethtool eth0 Linux tool to show ethernet status mii-tool eth0 Linux [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1712,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1876","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=1876"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1876\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1712"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=1876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}