How to set static IP in Linux ?
Rate this article
0 out of 5
Introduction
In networking ,all computers are identified by using its IP, It is a unique ID for each system that are connected to a network.  Assigning  of this system IP is mainly handled by a router. [Broad band modem is a kind of router].The router uses DHCP [Dynamic Host Configuration Protocol ] to assign IP to each new system connected to its network, The assigning of this ip is for a short period of time , Means if we disconnect and connect again we may get a new IP each time . To use same IP for ever we have to set static ip for each machine in router settings . 
Description
It is very simple to set static IP to a Linux system, 
  • Navigate to to root folder ( / )  use cd ..  or cd <path> command  to navigate between directory .
  • Go to  cd /etc/network/
  • open  vi interfaces
  •  change DHCP to STATIC
  • Put ADDRESS <IP>
  • netmask <255.0. .>
  • gateway < Gateway ip >
  • Press ESC
  • Enter :wq
  • [ If shows write error use sudo chmod 777 interfaces to change the permission ]
  • type sudo reboot 


About The Author
Johnson Augustine
I am Johnson Augustine [My friends calls me - J.A), Completed my Master of Computer Applications degree, and Currently working as a Software Engineer at KTS Infotech PVT LTD and Server Admin and security Engineer at Scibero Hosting and Cyber Solutions. I have expertise in  C/C++/Visual C++/G++/QT++,Com,Device Driver and embedded System Development. I have 4 Year Experience in ASP.net and Visual studio 2005,2008,2010 and MSSQL Server 2000,2005,2008 ,I have also deep knowledge in Oracle database,MySQL Database,C++ with SQLite, Android mobile development , PHP , Joomla,Word Press ,html,Javascript,Jquery,Ajax.CSS , Networking ,Cyber security, Ethical Hacking and familiar with most of the web hosting control panels like Plesk 9.5,Plesk 10.4.4,Plesk 11.0.9 . Cpanel/WHM,Hsphere,Dotnet panel , and have experience in Windows server 2003,2008,Cent Os , RHEL,Fedora etc .and also have some work experience in cloud environment. 

You can see my professional profile at http://linkedin.com/in/johnsontaugustine

Tektip profile [Popular Technical Discussion Website ] : http://www.tektips.in/AuthorDetails.aspx?AID=technogreenworld@gmail.com

See my personal technical discussion website http://www.memcpy.in
Number Of articles Posted
8
Number Of Messages Posted
23
Joined Date
0
   
Author
Messages
roachm84
Posted: 08/09/2016
thanks for ones marvelous posting. it is very helpful for each one.Thank you for sharing your thoughts. I really appreciate your efforts and I am waiting for your next write ups thank you once again.
http://www.platooh.com
Please Login to Post Your Comments
Name (Max 50 Chars)
Comments

 
TekTipsDownload
GateExam
Academic Projects
TekTipsExperts
Android