473,378 Members | 1,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Change IP Address

105 100+
Hey al!

How do I change my IP Address in Linux? I know it is a simple question but, I'm using Redhat Linux and I can't figure out how to do it?!

Thanks in advance!
Sep 8 '08 #1
3 12024
ashitpro
542 Expert 512MB
You can use ifconfig command

ifconfig <device> <IP> netmask <netmask>

Device is something like eth0 or eth1
You can check this by 'ifconfig' command, It will give you the list of devices configured and their ip information.

If you want to get ip address assigned by dhcp...
use this command:

dhclient <device_name>
Sep 8 '08 #2
micmast
144 100+
or in /etc/network/interfaces

This is a textfile you can edit and assign an ip address
Sep 8 '08 #3
rethu
3
Use ifconfig command:

To Display current IP address use the Code below

ifconfig eth0
ifconfig -a

To Set new IP to 192.168.1.10 use thebelow command


ifconfig eth0 192.168.1.10

To Set new IP to 192.168.1.10 with netmask use the code

ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up
Feb 2 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Dr. StrangeDub | last post by:
I'm looking for an API to change the IP address of a non-networked PC. Specifically, my program must change the Host ID (aka Host address) portion of the IP address. This is for a factory utility...
4
by: Richard Cornford | last post by:
For the last couple of months I have been trying to get the next round of updates to the FAQ underway and been being thwarted by a heavy workload (the project I am working on has to be finished an...
3
by: Not Me | last post by:
Hi, I have a report, viewable in continuous form. I don't want the size of the report to change (it should fit address labels on the printer), but in order to minimise the space between empty...
3
by: roger beniot | last post by:
I would like to figure out how to detect an IP address change for an XP/Win2K3 machine that is leasing an IP via DHCP (and do it in C#)... Is there any event that indicates an IP address...
5
by: olduncleamos | last post by:
Hi all. Is there any legitimate reason the IP address from a client will change between request? I am wondering if I can autheticate a session by making sure they all come from the same IP. I...
4
by: andreas.w.h.k. :-\) | last post by:
How do I change the address location in the wsdl <wsdl:port name="SearchSoap12" binding="tns:SearchSoap12"> <soap12:address location="http://searchservices/engine/search.asmx" /> </wsdl:port> ...
5
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I change the text in the url/location bar?...
10
by: skyy | last post by:
Hi.. I am working on a CGI script to enable client to obtain the server ip address and then change to the IP address it prefer. The server IP address can be obtain from the environment variable...
4
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hi, How could I change a WCF client endpoint address programatically? The client is generated by Visual Studio. The purpose of doing this is to use different service address under different...
2
by: =?Utf-8?B?YW1pdA==?= | last post by:
Hi I am looking for a code in asp.net how to change IP address to country , orign and region .
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.