The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 04:54 PM
Changing the machine name gizmoking HP-UX 1 02-11-2007 10:56 AM
How to get IP Address of machine? Ahsan High Level Programming 7 10-24-2003 11:16 AM
Changing IP address champion UNIX for Dummies Questions & Answers 4 11-30-2002 11:02 AM
Changing MAC address of a NIC wretch UNIX for Advanced & Expert Users 3 09-09-2002 09:22 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-22-2002
kkinnon kkinnon is offline
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 07:39 AM..
  #2 (permalink)  
Old 08-22-2002
asifraj's Avatar
asifraj asifraj is offline
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 (permalink)  
Old 08-22-2002
asifraj's Avatar
asifraj asifraj is offline
Registered User
  
 

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

also check out the following commands

netconf

netconfig
  #4 (permalink)  
Old 08-22-2002
Optimus_P Optimus_P is offline Forum Advisor  
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 (permalink)  
Old 08-23-2002
asifraj's Avatar
asifraj asifraj is offline
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 (permalink)  
Old 08-23-2002
BSeanD's Avatar
BSeanD BSeanD is offline
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 (permalink)  
Old 08-26-2002
i2admin i2admin is offline
Registered User
  
 

Join Date: May 2002
Posts: 21
Thumbs up

u can use the 'set_parms initial' for HP unix
Sponsored Links
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0