Solved

how can I set a static ip address on centos

Posted on 2011-09-16
2
427 Views
Last Modified: 2012-05-12
i know i would have to edit a conf file or something , if i wanted to put a static ip . mask and gateway what file would i edit and what is the format ?
0
Comment
Question by:NAMEWITHELD12
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
ID: 36553048
[user@box ~]$ cd /etc/sysconfig/network-scripts/
[user@box network-scripts]$ cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.190.3.105
NETMASK=255.255.255.192
GATEWAY=10.190.3.111

Open in new window


You can put the gateway in there for a device specific gateway, or you can add that same line to /etc/sysconfig/network to make it the default gateway.

0
 
LVL 1

Author Closing Comment

by:NAMEWITHELD12
ID: 36553088
thAnks
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question