{"id":1066,"date":"2018-11-07T10:14:52","date_gmt":"2018-11-07T10:14:52","guid":{"rendered":"http:\/\/linuxmotto.ir\/blog\/?p=1066"},"modified":"2018-11-07T10:15:26","modified_gmt":"2018-11-07T10:15:26","slug":"%d8%aa%d9%81%d8%a7%d9%88%d8%aa-auto-%d9%88-allow-hotplug-%d8%af%d8%b1-%d9%81%d8%a7%db%8c%d9%84-interfaces","status":"publish","type":"post","link":"https:\/\/linuxmotto.io\/blog\/?p=1066","title":{"rendered":"\u062a\u0641\u0627\u0648\u062a auto \u0648 allow-hotplug \u062f\u0631 \u0641\u0627\u06cc\u0644 interfaces"},"content":{"rendered":"<p>\u0633\u0627\u0644\u0647\u0627\u0633\u062a \u0627\u06cc\u0646 allow-hotplug \u0631\u0627 \u062a\u0648\u06cc \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u067e\u06cc\u0634\u0641\u0631\u0636 \u062f\u0628\u06cc\u0627\u0646 \u0645\u06cc \u0628\u06cc\u0646\u0645 \u0648 \u062a\u0646\u0628\u0644\u06cc \u0645\u0627\u0646\u0639 \u0645\u06cc \u0634\u062f \u06a9\u0647 \u06cc\u06a9 \u0628\u0627\u0631 \u0628\u0631\u0627\u06cc \u0647\u0645\u06cc\u0634\u0647 \u062a\u0641\u0627\u0648\u062a \u0627\u0635\u0644\u06cc \u0648 \u0641\u0627\u062d\u0634 allow-hotplug \u0628\u0627 auto \u0631\u0627 \u062f\u0631 \u0628\u06cc\u0627\u0631\u0645. \u062a\u0646\u0647\u0627 \u06a9\u0627\u0631\u06cc \u06a9\u0647 \u06a9\u0631\u062f\u0645 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u0628\u0647 \u0641\u0631\u0627\u0645\u0648\u0634\u06cc \u0633\u067e\u0631\u062f\u0645\u0634 \u0648 \u0641\u0631\u0636 \u06a9\u0631\u062f\u0645 \u0646\u06cc\u0633\u062a ?<\/p>\n<p>\u06cc\u0647 \u0627\u062a\u0641\u0627\u0642 \u062e\u0648\u0628 \u0628\u0627\u0639\u062b \u0634\u062f\u060c \u0628\u0627\u0644\u0627\u062e\u0631\u0647 \u0627\u0632 \u0635\u0646\u062f\u0648\u0642 \u062e\u0648\u0646\u0647 \u0628\u06a9\u0634\u0645\u0634 \u0628\u06cc\u0631\u0648\u0646. \u06cc\u06a9\u06cc \u0644\u06cc\u0633\u062a \u067e\u0633\u062a\u06cc \u062f\u0628\u06cc\u0627\u0646 \u0628\u0648\u062f \u0648 \u06cc\u06a9\u06cc \u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc manual \u0641\u0627\u06cc\u0644 interfaces.<\/p>\n<p>\u0634\u0627\u06cc\u062f \u0628\u0647 \u0627\u06cc\u0646 \u067e\u06cc\u063a\u0627\u0645 \u0628\u0631\u062e\u0648\u0631\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f<\/p>\n<pre class=\"lang:default decode:true \">\u201cA start job is running for raise network interfaces (2 minutes of 5 mins 1 sec)\u201d<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0627\u06cc\u0646 \u067e\u06cc\u063a\u0627\u0645 \u0628\u0647 \u062e\u0627\u0637\u0631 \u0627\u06cc\u0646 \u0647\u0633\u062a \u0633\u06cc\u0633\u062a\u0645 \u06cc\u0627 \u06cc\u06a9 \u0633\u0631\u0648\u06cc\u0633 \u0645\u0646\u062a\u0638\u0631 \u0628\u0627\u0644\u0627\u0622\u0645\u062f\u0646 \u0634\u0628\u06a9\u0647 \u0634\u0645\u0627\u0633\u062a. \u0627\u06cc\u0646 \u0647\u0645\u0627\u0646 \u0627\u062b\u0631 auto \u062f\u0631 \u0641\u0627\u06cc\u0644 interfaces \u0647\u0633\u062a. \u0627\u06cc\u0646 \u0632\u0645\u0627\u0646 \u062e\u06cc\u0644\u06cc \u0637\u0648\u0644\u0627\u0646\u06cc \u0647\u0633\u062a (\u067e\u0646\u062c \u062f\u0642\u06cc\u0642\u0647) \u0648 \u062e\u06cc\u0644\u06cc \u0645\u0648\u0627\u0642\u0639 \u0628\u0627\u0639\u062b \u062f\u0631\u062f\u0633\u0631\u0647. \u0627\u06af\u0647 \u0646\u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0647 \u0645\u0646\u062a\u0638\u0631 \u0627\u0631\u062a\u0628\u0627\u0637 \u0634\u0628\u06a9\u0647 \u0628\u0634\u06cc\u062f \u0628\u0647\u062a\u0631\u0647 \u0627\u0632 allow-hotplug \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f<\/p>\n<pre class=\"lang:default decode:true \">allow-hotplug\r\niface eth0 inet dhcp<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0628\u0627 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u062f\u06cc\u06af\u0647 \u067e\u06cc\u063a\u0627\u0645 \u0628\u0627\u0644\u0627 \u0631\u0627 \u0646\u0645\u06cc\u200c\u0628\u06cc\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u062a\u0648\u06cc manual\u200c\u0647\u0645 \u0646\u06cc\u0648\u0645\u062f\u0647 \u0648 \u0686\u0646\u062f \u0631\u0648\u0632 \u067e\u06cc\u0634 \u06cc\u06a9 \u0646\u0641\u0631 \u062f\u0631 \u0644\u06cc\u0633\u062a \u067e\u0633\u062a\u06cc debian-user \u0627\u0639\u0644\u0627\u0645 \u06a9\u0631\u062f\u060c \u06a9\u0647 \u062f\u0631 \u0632\u06cc\u0631 \u0622\u0648\u0631\u062f\u0645 \u0648 \u0645\u06cc \u062a\u0648\u0646\u06cc\u062f \u0627\u0635\u0644 \u0645\u0637\u0644\u0628 \u0631\u0627 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0645\u0637\u0627\u0644\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<pre class=\"lang:default decode:true \">The basic difference is the order in which services get loaded at\r\nboot time, and whether the services wait for something, or just go.\r\n\r\nAn interface marked \u201cauto\u201d will be waited-for by services that are\r\nconfigured to wait for interfaces to be up. E.g. mounting NFS file\r\nsystems, or starting an NFS server.\r\n\r\nAn interface marked \u201callow-hotplug\u201d is considered nonessential or\r\ntransient, and the core OS services won\u2019t wait for it before starting.<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0627\u06cc\u0646 \u06cc\u06a9\u06cc \u062f\u06cc\u06af\u0647 \u0627\u0632 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0647\u0627\u06cc allow-hotplug \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u062a \u0645\u0648\u0627\u0642\u0639\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0645\u0645\u06a9\u0646\u0647 \u0645\u062b\u0644\u0627 \u0627\u0632 \u06a9\u0627\u0631\u062a \u0634\u0628\u06a9\u0647 USB \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f. \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0647\u0631 \u0645\u0648\u0642\u0639 \u0648\u0635\u0644\u0634 \u06a9\u0631\u062f\u06cc\u062f\u060c \u06a9\u0627\u0646\u0641\u06cc\u06af \u0631\u0648\u0634 \u0627\u0639\u0645\u0627\u0644 \u0628\u0634\u0647. \u0627\u06cc\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062f\u0631 man interfaces \u0622\u0645\u062f\u0647.<\/p>\n<p>Interfaces marked \u201callow-hotplug\u201d are brought up when udev detects them. This can either be during boot if the interface is already present, or at a later time, for example when plugging in a USB network card. Please note that this does not have anything to do with detecting a network cable being plugged in.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0633\u0627\u0644\u0647\u0627\u0633\u062a \u0627\u06cc\u0646 allow-hotplug \u0631\u0627 \u062a\u0648\u06cc \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u067e\u06cc\u0634\u0641\u0631\u0636 \u062f\u0628\u06cc\u0627\u0646 \u0645\u06cc \u0628\u06cc\u0646\u0645 \u0648 \u062a\u0646\u0628\u0644\u06cc \u0645\u0627\u0646\u0639 \u0645\u06cc \u0634\u062f \u06a9\u0647 \u06cc\u06a9 \u0628\u0627\u0631 \u0628\u0631\u0627\u06cc \u0647\u0645\u06cc\u0634\u0647 \u062a\u0641\u0627\u0648\u062a \u0627\u0635\u0644\u06cc \u0648 \u0641\u0627\u062d\u0634 allow-hotplug \u0628\u0627 auto \u0631\u0627 \u062f\u0631 \u0628\u06cc\u0627\u0631\u0645. \u062a\u0646\u0647\u0627 \u06a9\u0627\u0631\u06cc \u06a9\u0647 \u06a9\u0631\u062f\u0645 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u0628\u0647 \u0641\u0631\u0627\u0645\u0648\u0634\u06cc \u0633\u067e\u0631\u062f\u0645\u0634 \u0648 \u0641\u0631\u0636 \u06a9\u0631\u062f\u0645 \u0646\u06cc\u0633\u062a ? \u06cc\u0647 \u0627\u062a\u0641\u0627\u0642 \u062e\u0648\u0628 \u0628\u0627\u0639\u062b \u0634\u062f\u060c \u0628\u0627\u0644\u0627\u062e\u0631\u0647 \u0627\u0632 \u0635\u0646\u062f\u0648\u0642 \u062e\u0648\u0646\u0647 \u0628\u06a9\u0634\u0645\u0634 \u0628\u06cc\u0631\u0648\u0646. \u06cc\u06a9\u06cc \u0644\u06cc\u0633\u062a \u067e\u0633\u062a\u06cc \u062f\u0628\u06cc\u0627\u0646 \u0628\u0648\u062f \u0648 \u06cc\u06a9\u06cc \u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc manual \u0641\u0627\u06cc\u0644 interfaces. \u0634\u0627\u06cc\u062f \u0628\u0647 \u0627\u06cc\u0646 \u067e\u06cc\u063a\u0627\u0645 \u0628\u0631\u062e\u0648\u0631\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f \u201cA start job is running for raise network interfaces (2 minutes of 5 mins 1 sec)\u201d &nbsp; \u0627\u06cc\u0646 \u067e\u06cc\u063a\u0627\u0645 \u0628\u0647 \u062e\u0627\u0637\u0631 \u0627\u06cc\u0646 \u0647\u0633\u062a \u0633\u06cc\u0633\u062a\u0645 \u06cc\u0627 \u06cc\u06a9 \u0633\u0631\u0648\u06cc\u0633 \u0645\u0646\u062a\u0638\u0631 \u0628\u0627\u0644\u0627\u0622\u0645\u062f\u0646 \u0634\u0628\u06a9\u0647 \u0634\u0645\u0627\u0633\u062a. \u0627\u06cc\u0646 \u0647\u0645\u0627\u0646 \u0627\u062b\u0631 auto \u062f\u0631 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[390,31,391,97,204,184,388,389],"class_list":["post-1066","post","type-post","status-publish","format-standard","hentry","category-administration","tag-auto","tag-debian-2","tag-interfaces","tag-ubuntu","tag-204","tag-184","tag-388","tag---allow-hotplug"],"_links":{"self":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1066"}],"version-history":[{"count":2,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1066\/revisions"}],"predecessor-version":[{"id":1068,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1066\/revisions\/1068"}],"wp:attachment":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}