Visit Our UNIX and Linux User Community


Changing Machine IP address


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Changing Machine IP address
# 1  
Old 08-22-2002
Question Changing Machine IP address

Hopefully someone can help with this. I need the command to change the IP address on a machine

Last edited by kkinnon; 08-22-2002 at 08:39 AM..
# 2  
Old 08-22-2002
please post the os details

if it is linux/unix, and eth0 is your ethernet adapter

ifconfig eth0 <ip-address>
# 3  
Old 08-22-2002
MySQL

also check out the following commands

netconf

netconfig
# 4  
Old 08-22-2002
are you keeping to same hostname?
If yes then you just need to change 2 things:
/etc/hosts (make sure you remove your old ip and put in your new one.)
and you need to use "ifconfig" please refer to the man page for the syntax.

If you are also changeing your hostname then in addition to the above you also need to edit /etc/hostname.(interface) and put in your new hostname.
# 5  
Old 08-23-2002
you can also change the ip addresses of different ethernet adapters by modifying the following files

/etc/sysconfig/network-scripts/ifcfg-eth0

for eth0. replace the eth0 by whatever interface name you wanna modify
# 6  
Old 08-23-2002
Question

Hi kkinnon,

What OS are you running? Depending on which Unix you run there are a couple of different ways to change your IP.
# 7  
Old 08-26-2002
MySQL

u can use the 'set_parms initial' for HP unix

Previous Thread | Next Thread
Test Your Knowledge in Computers #944
Difficulty: Medium
The original smurf.c was written by Dan Moschuk, aka TBone.
True or False?

10 More Discussions You Might Find Interesting

1. Programming

I.p address of machine

i m writing a program which finds the i.p address of the machine. but it just prints out the first three character of the ifconfig output but i want to just print my i.p address lik 10.0.0.222 which is in second line after inet addr: code : #include<iostream> #include<cstdlib> using... (1 Reply)
Discussion started by: console
1 Replies

2. IP Networking

Changing IP address

My work has a Unix based system that currently has the IP address 192.9.2.25 We recently changed internet providers from DSL to Cable. By doing so, we had to get a new router (Belkin) since the DSL provider had a wireless router/modem in one. With the DSL setup, I was able to change the router's... (2 Replies)
Discussion started by: Len351
2 Replies

3. AIX

changing ip address

Hi, I am using aix 5300-07, I am facing strange issue in aix. I have changed the ip address and gateway of aix server , it is showing the right ip address but it is taking old gateway ip address. I have used netstat -r command and found it is showing 2 Default gateway. I want to... (2 Replies)
Discussion started by: manoj.solaris
2 Replies

4. UNIX for Advanced & Expert Users

IP address of machine

Hi i want to know the Ip address of the machine from where i logged into the unix server and made some changes to a file. Can I know the last changes made to a unix file ? (3 Replies)
Discussion started by: harneet2004us
3 Replies

5. HP-UX

Changing the machine name

I work on a UNIX HP 10.20 system that recently crashed. I am new with UNIX but I pick things up quick. The system I work on consists of two computers with the same basic hardware config. I have been having trouble loading the program software it uses, NOT the UNIX software, so I used the a... (1 Reply)
Discussion started by: gizmoking
1 Replies

6. Windows & DOS: Issues & Discussions

Changing IP address

Hi ,,, i just come across this forum and i make it a must to be pay a visit here everyday and through it am learning a lots of things which am sure i will be able to share later... So i have a prob with my pc when i try to change my Ip address in the dos command using ipconfig command i got a... (1 Reply)
Discussion started by: Lutchumaya
1 Replies

7. IP Networking

Changing the ip address

Help me save my Unix box. I've had this Unix box (Enterprise 450) for about 7 years now. It was being used as a file server for a Macintosh Prepress department. All of our networking was done through Helios Etharshare. I am still currently up and online (however the location has changed). Our ip... (1 Reply)
Discussion started by: ubed
1 Replies

8. AIX

Changing the IP Address

I need to change the IP address on one of your Unix machines - P630, AIX5.2. I plan on using SMIT to perform this function. These are the steps that I have put together so far: 1. Select Communications Applications & Services - Select TCP/IP - Select Minimun Configuration & Startup... (2 Replies)
Discussion started by: jyoung
2 Replies

9. Programming

How to get IP Address of machine?

Is there any API call to get IP Address of a machine? I know there is function which returns name of the machine, gethostname(). But I need the IP. Thanks & Regards, Ahsan (7 Replies)
Discussion started by: Ahsan
7 Replies

10. UNIX for Dummies Questions & Answers

Changing IP address

Hi, I am going to shift my Unix workstation to another lab. So I need to change the IP address. Please tell me how to change the Network IP address, what is the commands, what to take care? Thank you very much and have a very nice day. (4 Replies)
Discussion started by: champion
4 Replies

Featured Tech Videos