The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
IP address of machine harneet2004us UNIX for Advanced & Expert Users 3 04-16-2008 01:54 PM
Changing the machine name gizmoking HP-UX 1 02-11-2007 07:56 AM
How to get IP Address of machine? Ahsan High Level Programming 7 10-24-2003 08:16 AM
Changing IP address champion UNIX for Dummies Questions & Answers 4 11-30-2002 08:02 AM
Changing MAC address of a NIC wretch UNIX for Advanced & Expert Users 3 09-09-2002 06:22 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-22-2002
Registered User
 

Join Date: Aug 2002
Location: Billerica MA
Posts: 2
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 04:39 AM.
Forum Sponsor
  #2  
Old 08-22-2002
asifraj's Avatar
Registered User
 

Join Date: Aug 2002
Location: India
Posts: 48
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
asifraj's Avatar
Registered User
 

Join Date: Aug 2002
Location: India
Posts: 48
Thumbs up

also check out the following commands

netconf

netconfig
  #4  
Old 08-22-2002
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
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-22-2002
asifraj's Avatar
Registered User
 

Join Date: Aug 2002
Location: India
Posts: 48
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
BSeanD's Avatar
Registered User
 

Join Date: Aug 2002
Location: Melbourne, Australia
Posts: 127
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
Registered User
 

Join Date: May 2002
Posts: 21
Thumbs up

u can use the 'set_parms initial' for HP unix
Google The UNIX and Linux Forums
Closed Thread

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 01:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0