{"id":1884,"date":"2018-04-11T06:57:08","date_gmt":"2018-04-11T06:57:08","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=1884"},"modified":"2021-03-20T13:51:23","modified_gmt":"2021-03-20T13:51:23","slug":"how-do-you-look-active-network-interfaces-on-linux-box","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-do-you-look-active-network-interfaces-on-linux-box\/","title":{"rendered":"How do you look active network interfaces on Linux box?"},"content":{"rendered":"<p>Two commands that help to view active network connections are:<br \/>\nifconfig and iwconfig.<\/p>\n<h3>ifconfig<\/h3>\n<p>ifconfig displays the currently active network interfaces on the box. iwconfig is used to display wireless interfaces. Both commands are also used to configure a network interface.<\/p>\n<h3>$ ifconfig<\/h3>\n<h3>$ iwconfig<\/h3>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1885\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/ifconfig.png\" alt=\"\" width=\"1920\" height=\"1200\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/ifconfig.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/ifconfig-300x188.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/ifconfig-1024x640.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/ifconfig-768x480.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/ifconfig-1536x960.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>To learn more about the commands use the following:<\/p>\n<h3>$ man ifconfig<\/h3>\n<h3>$ man iwconfig<\/h3>\n<p>If you are using a wireless adapter you can use iwconfig to view the wireless connections. eth0 is the dedicated network interface.<\/p>\n<h3>Taking down and up<\/h3>\n<p>We can bring down and bring up a network connection using this command. For example, to bring down the connection, we can use the following command:<\/p>\n<h3>$ ifconfig eth0 down<\/h3>\n<p>To bring up the network connection<\/p>\n<h3>$ ifconfig eth0 up<\/h3>\n<p>&nbsp;<\/p>\n<!--themify_builder_content-->\n<div id=\"themify_builder_content-1884\" data-postid=\"1884\" class=\"themify_builder_content themify_builder_content-1884 themify_builder tf_clear\">\n    <\/div>\n<!--\/themify_builder_content-->\n","protected":false},"excerpt":{"rendered":"<p>Two commands that help to view active network connections are: ifconfig and iwconfig. ifconfig ifconfig displays the currently active network interfaces on the box. iwconfig is used to display wireless interfaces. Both commands are also used to configure a network interface. $ ifconfig $ iwconfig &nbsp; &nbsp; To learn more about the commands use the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-1884","post","type-post","status-publish","format-standard","hentry","category-linux","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=1884"}],"version-history":[{"count":3,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1884\/revisions"}],"predecessor-version":[{"id":19582,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1884\/revisions\/19582"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=1884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=1884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=1884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}