{"id":8265,"date":"2014-08-01T08:48:02","date_gmt":"2014-08-01T08:48:02","guid":{"rendered":"http:\/\/tajdini.net\/blog\/2014\/08\/01\/ip-configuration-deb\/"},"modified":"2014-08-01T08:48:02","modified_gmt":"2014-08-01T08:48:02","slug":"ip-configuration-deb","status":"publish","type":"post","link":"https:\/\/tajdini.net\/blog\/cryptography-and-pki\/ip-configuration-deb\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u0633\u062a \u06a9\u0631\u062f\u0646 \u0627\u06cc\u067e\u06cc \u0627\u0633\u062a\u0627\u062a\u06cc\u06a9 \u0628\u0631 \u0631\u0648\u06cc \u06a9\u0627\u0631\u062a \u0634\u0628\u06a9\u0647 \u0647\u0627\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633"},"content":{"rendered":"<p>\u0627\u0628\u062a\u062f\u0627 \u0628\u0627 root\u00a0 \u0644\u0648\u06af\u06cc\u0646 \u06a9\u0646\u06cc\u062f\u0628\u0631\u0627\u06cc \u0648\u0631\u0648\u062f \u062f\u0631 ssh \u0639\u0628\u0627\u0631\u062a \u0632\u06cc\u0631 \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0646\u06cc\u062f<\/p>\n<p><strong>su root <\/strong><\/p>\n<p>\u062d\u0627\u0644\u0627 \u0627\u0632\u062a\u0648\u0646 \u0631\u0645\u0632 \u0631\u0648\u062a \u0631\u0648 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0645\u06cc\u06a9\u0646\u0647 \u0627\u0648\u0646\u0648 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f \u0648 \u0633\u067e\u0633 \u0645\u06cc\u0631\u06cc\u0645 \u0633\u0631 \u06a9\u0627\u0631 \u0627\u0635\u0644\u06cc<\/p>\n<p>\u0627\u0648\u0644 \u0628\u0627\u06cc\u062f \u0641\u0627\u06cc\u0644 \/etc\/nterwork\/interfaces<\/p>\n<p>\u0631\u0648 \u0628\u0627 \u0646\u0627\u0646\u0648 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f\u067e\u0633 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f<\/p>\n<p>nano \/etc\/nterwork\/interfaces<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0627\u06cc\u062f\u06cc\u062a\u0648\u0631 \u0646\u0627\u0646\u0648 \u0628\u0627\u0632 \u0645\u06cc\u0634\u0647 \u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0627\u062f\u06cc\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0628\u0627\u06cc\u062f \u0628\u0647 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0647\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0627\u06cc\u067e\u06cc \u0628\u062f\u0647\u06cc\u062f \u0633\u0639\u06cc \u06a9\u0646\u06cc\u062f \u0627\u06cc\u0646\u0627\u0631\u0648 \u06cc\u0627\u062f \u0628\u06af\u06cc\u0631\u06cc\u0646 \u062a\u0627 copy\/paste \u0646\u062e\u0627\u062f .<\/p>\n<p>\u062d\u0627\u0644\u0627 \u062a\u0648\u06cc \u0641\u0627\u06cc\u0644 \u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0645\u0642\u062f\u0627\u0631 \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0648 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f\u00a0 :<br \/> iface eth0 inet static<br \/> address xxx.xxx.xxx.xxx(enter your ip here)<br \/> netmask xxx.xxx.xxx.xxx<br \/> gateway xxx.xxx.xxx.xxx(enter gateway ip here)<\/p>\n<p>\u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u0627\u0632 \u0642\u0628\u0644 \u0686\u0646\u062f \u062e\u0637 \u062a\u0648\u06cc \u0641\u0627\u06cc\u0644 \u0647\u0633\u062a \u06a9\u0647 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u06a9\u0627\u0631\u062a \u0647\u0627\u06cc \u0645\u062c\u0627\u0632\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0647\u0633\u062a \u0627\u0648\u0646\u0627 \u0631\u0648 \u062f\u0633\u062a \u0646\u0632\u0646\u06cc\u062f \u0641\u0642\u0637 \u0647\u0631 \u0686\u06cc \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0634\u0645\u0627 \u0628\u0648\u062f \u067e\u0627\u06a9 \u06a9\u0646\u06cc\u062f \u0648 \u0627\u06cc\u0646\u0627 \u0631\u0648 \u062c\u0627\u0634 \u0628\u0632\u0627\u0631\u06cc\u062f<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644 \u0645\u06cc\u062e\u0627\u0645 \u0631\u0648\u06cc eth1 \u0627\u06cc\u067e\u06cc \u06f1\u06f9\u06f2\u066b\u06f1\u06f6\u06f8\u066b\u06f1\u066b\u06f2 \u0633\u062a \u06a9\u0646\u0645 \u0648 gateway \u0631\u0648 \u0631\u0648\u06cc \u06f1\u06f9\u06f2\u066b\u06f1\u06f6\u06f8\u066b\u06f1\u066b\u06f1 \u0633\u062a \u06a9\u0646\u06cc\u0645\u00a0 \u062d\u0627\u0644\u0627 \u0641\u0627\u06cc\u0644 \u0631\u0648 \u0628\u0627\u0632 \u0645\u06cc\u06a9\u0646\u06cc\u0645 \u0648 \u062a\u0648\u0634 \u0628\u0647 \u0627\u06cc\u0646 \u062a\u0631\u062a\u06cc\u0628 \u0639\u0645\u0644 \u0645\u06cc\u06a9\u0646\u06cc\u0645<\/p>\n<p>\u062e\u0637\u06cc \u06a9\u0647 \u0646\u0648\u0634\u062a\u062a\u0647<\/p>\n<p>auto lo eth1<\/p>\n<p>iface\u00a0 eth1 inet dhcp \u0631\u0648 \u067e\u0627\u06a9 \u0645\u06cc\u06a9\u0646\u06cc\u0645 \u0628\u0639\u062f \u0648 \u0639\u0628\u0627\u0631\u062a \u0632\u06cc\u0631 \u0631\u0648 \u0645\u06cc\u0632\u0627\u0631\u06cc\u0645 \u062c\u0627\u0634:<br \/> iface eth1 inet static<br \/> address 192.168.1.2<br \/> netmask 255.255.255.0<br \/> gateway 192.168.1.1<\/p>\n<p>\u062e\u0628 \u062d\u0627\u0644\u0627 \u0641\u0627\u06cc\u0644 \u0631\u0648 \u0628\u0627 Ctrl + X \u0631\u0627 \u0645\u06cc\u0628\u0646\u062f\u06cc\u0645 \u0648 \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u06a9\u0646\u06cc\u0645 \u0648 \u062d\u0648\u0627\u0633\u062a\u0648\u0646 \u0628\u0647 \u0632\u06cc\u0631 \u0647\u0645 \u0628\u0627\u0634\u0647 \u06a9\u0647 \u0686\u06cc \u0645\u06cc\u06af\u0647<\/p>\n<p>\u0628\u0639\u062f \u062d\u0627\u0644\u0627 \u0648\u0627\u0633\u0647 \u062f\u0627\u062f\u0646 dns \u0628\u0647 \u0641\u0627\u06cc\u0644 \/etc\/resolv.conf<\/p>\n<p>\u0628\u0631\u0648\u06cc\u062f \u0627\u06cc\u0646\u0637\u0648\u0631\u06cc \u0639\u0645\u0644 \u06a9\u0646\u06cc\u062f :<\/p>\n<p>nano \/etc\/resolv.conf<\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0628\u0627\u0632 \u0634\u062f\u0646 \u0647\u0631 \u0686\u06cc \u062e\u0648\u0627\u0633\u062a\u06cc\u0646 dns \u0628\u0632\u0646\u06cc\u0646 \u062a\u0648\u0634 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f \u062a\u0648\u062c\u0647 \u0628\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0627\u0632 \u0627\u0648\u0644\u06cc\u0646 \u0628\u0647 \u062a\u0631\u062a\u06cc\u0628 \u0634\u0631\u0648\u0639 \u0628\u0647 \u062e\u0648\u0646\u062f\u0646 \u0645\u06cc\u06a9\u0646\u0647 \u0645\u062b\u0644\u0627 \u0645\u06cc\u062e\u0648\u0627\u0647\u06cc\u0645 \u06f4\u066b\u06f2\u066b\u06f2\u066b\u06f4 \u0631\u0648 \u0627\u0648\u0644\u06cc \u0628\u062f\u06cc\u0645 \u0648 \u06f1\u06f9\u06f2\u066b\u06f1\u06f6\u06f8\u066b\u06f1\u066b\u06f2 \u06a9\u0647 \u062f\u0627\u062e\u0644\u06cc \u0647\u0633\u062a \u062f\u0648\u0645\u06cc<\/p>\n<p>\u0627\u06cc\u0646\u0637\u0648\u0631\u06cc \u0645\u06cc\u0632\u0646\u06cc\u0645 :<\/p>\n<p>nameserver 4.2.2.4<\/p>\n<p>nameserver 192.168.1.2<\/p>\n<p>\u0628\u0639\u062f \u0641\u0627\u06cc\u0644 \u0631\u0648 \u0628\u0627 \u0647\u0645\u0648\u0646 ctrl + x \u0628\u0628\u0646\u062f\u06cc\u062f<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0628\u0627\u06cc\u062f \u0633\u0631\u0648\u06cc\u0633 networking \u0631\u0648 \u0631\u06cc\u0633\u062a\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f<\/p>\n<p>\u067e\u0633 :&gt;&gt;&gt;<\/p>\n<p>\/etc\/init.d\/nteworking reastart<\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0628\u0627\u0644\u0627 \u0627\u0648\u0645\u062f\u0646 \u0627\u06cc\u067e\u06cc \u0647\u0627 \u0633\u062a \u0645\u06cc\u0634\u0647 \u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0628\u0627 \u062f\u0633\u062a\u0648\u0631<\/p>\n<p>ifconfig eth1 \u0627\u06cc\u067e\u06cc \u0631\u0648 \u0628\u0628\u06cc\u0646\u06cc\u062f<\/p>\n<p>\u062f\u0631 \u0636\u0645\u0646 \u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0627\u06cc\u067e\u06cc \u0631\u0648 \u0641\u0642\u0637 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u0645\u0627\u0646\u06cc \u0628\u0632\u0646\u062f \u06cc\u0639\u0646\u06cc \u0628\u0639\u062f \u0627\u0632 \u0647\u0631 \u0631\u06cc\u0628\u0648\u062a \u0627\u06cc\u067e\u06cc \u0628\u067e\u0631\u0647 \u0645\u062b\u0644\u0627 \u0645\u06cc\u062e\u0627\u0645 \u06f1\u06f9\u06f2\u066b\u06f1\u06f6\u06f8\u066b\u06f5\u066b\u06f1 \u0631\u0648 \u0631\u0648\u06cc eth2 \u0633\u062a \u06a9\u0646\u06cc\u0645 \u0645\u06cc\u0632\u0646\u0645<\/p>\n<p>ifconfig eth2 192.168.5.1 netmask=255.255.255.0 eth2<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0633\u062a \u0645\u06cc\u0634\u0647<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0627\u0628\u062a\u062f\u0627 \u0628\u0627 root\u00a0 \u0644\u0648\u06af\u06cc\u0646 \u06a9\u0646\u06cc\u062f\u0628\u0631\u0627\u06cc \u0648\u0631\u0648\u062f \u062f\u0631 ssh \u0639\u0628\u0627\u0631\u062a \u0632\u06cc\u0631 \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0646\u06cc\u062f su root \u062d\u0627\u0644\u0627 \u0627\u0632\u062a\u0648\u0646 \u0631\u0645\u0632 \u0631\u0648\u062a \u0631\u0648 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0645\u06cc\u06a9\u0646\u0647 \u0627\u0648\u0646\u0648 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f \u0648 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[223,227,229,235],"tags":[243,131,4,5,259,264,262,268,176],"class_list":["post-8265","post","type-post","status-publish","format-standard","hentry","category-cryptography-and-pki","category-linux-and-open-source","category-network-and-protocol-security","category-windows-and-server","tag-dhcp","tag-dns","tag-linux","tag-network-security","tag-persian","tag-pki","tag-routing","tag-windows"],"_links":{"self":[{"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/posts\/8265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/comments?post=8265"}],"version-history":[{"count":0,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/posts\/8265\/revisions"}],"wp:attachment":[{"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/media?parent=8265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/categories?post=8265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/tags?post=8265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}