How can i change the ip address in RHEL 6?

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How can i change the ip address in RHEL 6?
# 1  
Old 09-18-2013
RedHat How can i change the ip address in RHEL 6?

I need to change the ip address in RHEL 6 . Please tell me the files to be edited....complete procedure.......... Don't tell the graphical method ........ Explain everything in CLI ...........

Thanks in AdvanceSmilie
# 2  
Old 09-18-2013
Take a look at /etc/sysconfig/network-scripts/

or run:

# 3  
Old 09-22-2013
Please tell me the commands to do this........
# 4  
Old 09-22-2013
Assuming the interface whose address you want to change is eth0, you would edit ifcfg-eth0 in the directory verdepollo wrote.

Add or edit the IPADDR value with the address you want.

If BOOTPROTO is set to "dhcp", you might want to change it to "static".

You'll need to restart the interface (ifdown / ifup or service network restart).

And please spare us all the smilies and .....'s in your posts. This isn't kindergarden.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Cannot change mac address

ubuntu / xubuntu 13.10 and 14.04 (this issue should exist in debian as well) I use wifi to connect to internet. I would like to change the wifi card mac address before connecting. Let's call the original mac address, macA, and the new mac address, macB. I do the following: ifconfig wlan0... (2 Replies)
Discussion started by: arpagon
2 Replies

2. UNIX for Dummies Questions & Answers

Nofiles & nproc change on RHEL not taking effect

I am installing a statistical applicaton and for its web components it is a listed requirement that I have soft limits of files (20480) and no of processes (soft t o 10240). I am on RHEL 6.1. As root I made the following changes in /etc/security/limits.conf * soft nproc 10240 * hard nproc... (4 Replies)
Discussion started by: rsheikh01
4 Replies

3. UNIX for Dummies Questions & Answers

Change partition name in rhel

Can I change the filesystem in redhat w/o reformating it? For example /dev/sda2 145G 188M 137G 1% /uo1 /dev/sdb1 289G 191M 274G 1% /uo2 /dev/sdb2 289G 191M 274G 1% /uo3 uo1, uo2, uo3 shuld be u01, u02, u03. No one is using the server yet. thanks (1 Reply)
Discussion started by: lhareigh890
1 Replies

4. Red Hat

Right way to change time for a RHEL server

I had the query of what would be the right approach to change the time on the RHEL server. I have the following ways to do that: 1) # date -s "2 OCT 2006 18:00:00" Or # date --set="2 OCT 2006 18:00:00" 2) # date +%Y%m%d -s "20081128" The second option though would only change... (4 Replies)
Discussion started by: RHCE
4 Replies

5. Programming

[C] Change IP and MAC address

Hello, I need to write a program using C language which allow me to change the IP and MAC addresses of a given interface... Now I fork the process and by exec I'm using the "ifconfig interf X.X.X.X" command... but i can't use this solution because i have to avoid the context switch... Can someone... (4 Replies)
Discussion started by: gilby985
4 Replies

6. Shell Programming and Scripting

change from address in mailx

Hi, i am sending mails regulary for updation of data. The from addresses dispaly like i want display like can u help me on this. (1 Reply)
Discussion started by: koti_rama
1 Replies

7. IP Networking

Change a Unix IP address

I have purchased a Dec unix Ver 3.2c machine that is about ten years old. I need to get this machine on our network (windows 2003 domain) so I can copy files to it. I know I need to change the IP address, but where and how do I change it? What else do I chang? Thanks Randy (8 Replies)
Discussion started by: randy1
8 Replies

8. IP Networking

How to change IP address

Can anyone tell me how to change the IP address on a unix server, as I have no idea whatsoever. Thanks (2 Replies)
Discussion started by: itservices
2 Replies

9. Red Hat

RHEL 3 - how to change the SNMP community strings?

I have edited the snmpd.conf file on RHEL3, I changed: com2sec notConfigUser default public to : com2sec notConfigUser default new_string_name BUT, when my security guy scans the box, is still answers to public, I restarted snmpd. Is there more to this than just changing... (0 Replies)
Discussion started by: BG_JrAdmin
0 Replies

10. IP Networking

change my current IP address

Dear All , I have Sun Solaris 8 machine . during installation i gave the machine ip address and gatway . now i hvae to change the IP address and the gateway ! how ?? i know i have to use ifconfig , but how can i change it and the gateway ??? also where from i... (4 Replies)
Discussion started by: tamemi
4 Replies
Login or Register to Ask a Question