{"id":649,"date":"2018-07-04T06:46:00","date_gmt":"2018-07-04T06:46:00","guid":{"rendered":"http:\/\/hyderabadwebhosting.in\/blog\/?p=649"},"modified":"2018-07-08T07:10:24","modified_gmt":"2018-07-08T07:10:24","slug":"how-do-i-configure-static-ip-address-internet-protocol-ipv4","status":"publish","type":"post","link":"https:\/\/hyderabadwebhosting.in\/blog\/how-do-i-configure-static-ip-address-internet-protocol-ipv4\/","title":{"rendered":"How do I Configure Static IP Address Internet Protocol (IPv4)"},"content":{"rendered":"<p><span style=\"font-size: large;\">How do I Configure Static IP Address Internet Protocol (IPv4)<\/span><\/p>\n<p><span style=\"font-size: large;\">To configure static IP Address, you need to update or edit network configuration file to assign an Static IP Address to a system. You must be superuser with su (switch user) command from terminal or command prompt.<\/span><\/p>\n<p><span style=\"font-size: large;\">For RHEL\/CentOS<\/span><\/p>\n<p><span style=\"font-size: large;\">Open and edit network configuration file for (eth0 or eth1) using your favorite editor. For example, to assigning IP Address to eth0 interface as follows.<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/16.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-651 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/16.png\" alt=\"\" width=\"642\" height=\"130\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/16.png 642w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/16-300x61.png 300w\" sizes=\"auto, (max-width: 642px) 100vw, 642px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">1. How to Assign a IP Address to Specific Interface<\/span><\/p>\n<p><span style=\"font-size: large;\">The following command used to assign IP Address to a specific interface (eth1) on the fly.<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/17.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-652 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/17.png\" alt=\"\" width=\"644\" height=\"36\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/17.png 644w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/17-300x17.png 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">2. How to Check an IP Address<\/span><\/p>\n<p><span style=\"font-size: large;\">To get the depth information of your network interfaces like IP Address, MAC Address information, use the following command as shown below.<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-653 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/18.png\" alt=\"\" width=\"644\" height=\"231\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/18.png 644w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/18-300x108.png 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">3. How to Remove an IP Address<\/span><\/p>\n<p><span style=\"font-size: large;\">The following command will remove an assigned IP address from the given interface (eth1).<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/19.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-655 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/19.png\" alt=\"\" width=\"647\" height=\"28\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/19.png 647w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/19-300x13.png 300w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">4. How to Enable Network Interface<\/span><\/p>\n<p><span style=\"font-size: large;\">The \u201cup\u201d flag with interface name (eth1) enables a network interface. For example, the following command will activates the eth1 network interface.<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/20.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-656 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/20.png\" alt=\"\" width=\"646\" height=\"23\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/20.png 646w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/20-300x11.png 300w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">5. How to Disable Network Interface<\/span><\/p>\n<p><span style=\"font-size: large;\">The \u201cdown\u201d flag with interface name (eth1) disables a network interface. For example, the following command will De-activates the eth1 network interface.<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/21.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-657 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/21.png\" alt=\"\" width=\"645\" height=\"19\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/21.png 645w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/21-300x9.png 300w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">6. How do I Check Route Table?<\/span><\/p>\n<p><span style=\"font-size: large;\">Type the following command to check the routing table information of system.<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/22.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-658 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/22.png\" alt=\"\" width=\"643\" height=\"22\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/22.png 643w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/22-300x10.png 300w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">7. How do I Add Static Route<\/span><\/p>\n<p><span style=\"font-size: large;\">Why you need to add Static routes or Manual routes, because that the traffic must not pass through the default gateway. We need to add Static routes to pass traffic from best way to reach the destination.<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/23.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-659 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/23.png\" alt=\"\" width=\"644\" height=\"19\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/23.png 644w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/23-300x9.png 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">8. How to Remove Static Route<\/span><\/p>\n<p><span style=\"font-size: large;\">To remove assigned static route, simply type the following command.<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/24.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-660 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/24.png\" alt=\"\" width=\"641\" height=\"18\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/24.png 641w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/24-300x8.png 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">9. How do I Add Persistence Static Routes<\/span><\/p>\n<p><span style=\"font-size: large;\">All the above route will be lost after a system restart. To add permanent Static route, edit file \/etc\/sysconfig\/network-scripts\/route-eth0 (We are storing static route for (eth0) and add the following lines and save and exist. By default route-eth0 file will not be there, need to be created.<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/25.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-661 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/25.png\" alt=\"\" width=\"643\" height=\"23\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/25.png 643w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/25-300x11.png 300w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">10. How do I Add Default Gateway<\/span><\/p>\n<p><span style=\"font-size: large;\">Default gateway can be specified globally or for in interface-specific config file. Advantage of default gateway is If we have more than one NIC is present in the system. You can add default gateway on the fly as shown below command.<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/26.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-662 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/26.png\" alt=\"\" width=\"641\" height=\"20\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/26.png 641w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/07\/26-300x9.png 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">Please refer manual page doing man ip from terminal\/command prompt to know more about IP Command.<\/span><\/p>\n<div class=\"pdf24Plugin-cp\"> \t<form name=\"pdf24Form0\" method=\"post\" action=\"https:\/\/doc2pdf.pdf24.org\/wordpress.php\" target=\"pdf24PopWin\" onsubmit=\"var pdf24Win = window.open('about:blank', 'pdf24PopWin', 'resizable=yes,scrollbars=yes,width=600,height=250,left='+(screen.width\/2-300)+',top='+(screen.height\/3-125)+''); pdf24Win.focus(); if(typeof pdf24OnCreatePDF === 'function'){void(pdf24OnCreatePDF(this,pdf24Win));}\"> \t\t<input type=\"hidden\" name=\"blogCharset\" value=\"Cw1x07UAAA==\" \/><input type=\"hidden\" name=\"blogPosts\" value=\"MwQA\" \/><input type=\"hidden\" name=\"blogUrl\" value=\"yygpKSi20tfPqExJLUpMSkwpT03KyC8uycxL18vM00\/KyU8HAA==\" \/><input type=\"hidden\" name=\"blogName\" value=\"86hMSS1KTEpMUQhPTVLwyC8uycxLBwA=\" \/><input type=\"hidden\" name=\"blogValueEncoding\" value=\"gzdeflate base64\" \/><input type=\"hidden\" name=\"postId_0\" value=\"MzOxBAA=\" \/><input type=\"hidden\" name=\"postTitle_0\" value=\"88gvV0jJV\/BUcM7PS8tMLy1KVQguSSzJTFbwDFBwTEkpSi0uVvDMK0ktykstUQgoyi\/JT87PUdDwDCgz0QQA\" \/><input type=\"hidden\" name=\"postLink_0\" value=\"DckxDoAwCADAFyGLk79pC7YkBhpAG3+vt97InHEgjpfYSy20uA6LFO2bKNbLOg5bQAYCzfSUfjtDZElpIBMKkXMEiCa7csJ0S2t2\/fns+AE=\" \/><input type=\"hidden\" name=\"postAuthor_0\" value=\"c\/QLDVAICHJ08XD0AwA=\" \/><input type=\"hidden\" name=\"postDateTime_0\" value=\"MzIwtNA1MNc1MFEwMLMyMLcyMAAA\" \/><input type=\"hidden\" name=\"postContent_0\" value=\"xZrfb9s2EMff91cc\/JQAtmVJtmx3SYYs6dYA6xq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/> \t\t<a href=\"https:\/\/www.pdf24.org\" target=\"_blank\" title=\"www.pdf24.org\"><img src=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/plugins\/pdf24-post-to-pdf\/img\/sheep_32x32.png\" alt=\"www.pdf24.org\" border=\"0\" height=\"32\" \/><\/a> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<span class=\"pdf24Plugin-cp-text\">Send article as PDF<\/span> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<input class=\"pdf24Plugin-cp-input\" style=\"margin: 0px;\" type=\"text\" name=\"sendEmailTo\" placeholder=\"Enter email address\" \/> \t\t<input class=\"pdf24Plugin-cp-submit\" style=\"margin: 0px;\" type=\"submit\" value=\"Send\" \/> \t<\/form> <\/div>","protected":false},"excerpt":{"rendered":"<p>How do I Configure Static IP Address Internet Protocol (IPv4) To configure static IP Address, you need to update or edit network configuration file to assign an Static IP Address to a system. You must be superuser with su (switch user) command from terminal or command prompt. For RHEL\/CentOS Open and edit network configuration file\u2026 <span class=\"read-more\"><a href=\"https:\/\/hyderabadwebhosting.in\/blog\/how-do-i-configure-static-ip-address-internet-protocol-ipv4\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-649","post","type-post","status-publish","format-standard","hentry","category-vps"],"_links":{"self":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=649"}],"version-history":[{"count":3,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/649\/revisions"}],"predecessor-version":[{"id":663,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/649\/revisions\/663"}],"wp:attachment":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}