Solved

how to change my ip address in centos 5

Posted on 2008-11-02
4
8,267 Views
Last Modified: 2012-05-05
I need to change my ip address, DNS , gateway and subnet mask in my centos. How would I do it from command prompt.
Also what is broadcast ip?
thanks
0
Comment
Question by:syedasimmeesaq
4 Comments
 
LVL 5

Accepted Solution

by:
bswinnerton earned 500 total points
ID: 22862089
Give this a try:

http://www.linuxdynasty.org/configuring-ip-on-linux-from-the-command-line-redhatcentosfedora.html

And a broadcast IP is just an ip address with the last octet as 255.  For example 192.168.0.1 is your ip, your broadcast ip would be 192.168.0.255
0
 
LVL 8

Expert Comment

by:nahime
ID: 22862090
if your interface is eth0 you need to modify the file:
/etc/sysconfig/network-scripts/ifcfg-eth0

See this link for reference:
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-networkscripts.html
0
 
LVL 14

Expert Comment

by:Deepak Kosaraju
ID: 22862129
use setup command to control the centos system setting
and selected Network Configuration
Gud luck
setup

(or) use

system-config-network if you are using GUI

(or) use

system-config-network-tui

Open in new window

0
 
LVL 12

Expert Comment

by:hfraser
ID: 22862173
The broadcast address has the last octet set to 255 only if your netmask is 255.255.255.0. This is usually the case for home users (usually a class C address), but often not the case in a larger network (such as a class B or a subset thereof).

If you understand bitmasks, logical AND, etc. you can calculate the broadcast address. It's not hard. But it's even easier to reference one of the websites on the Internet that'll do it for you such as:

http://www.subnetmask.info/
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

932 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now