Sponsored Content
Full Discussion: chang IP address ( Urgent )
Top Forums UNIX for Dummies Questions & Answers chang IP address ( Urgent ) Post 22821 by RTM on Tuesday 11th of June 2002 09:26:18 AM
Old 06-11-2002
Post the Operating System and version you are using - it matters!

For Solaris:
To change the IP address of a network interface on a machine running
Solaris 2.x simply edit the /etc/inet/hosts file and modify the line
corresponding to that network interface. Save your changes and reboot.

In general, this is all that needs to be done for the machine itself
to recognize and start using its new IP address.

However...

If the new IP address is on a different network from the original IP
address, you may need to modify the /etc/inet/netmasks file as well.

There may be additional steps you need to take for other machines to recognize
the new IP address.

If you have an /etc/defaultrouter file listing the default gateway for your
subnet you may need to modify the IP address for the gateway listed in
this file. Similar changes need to be made in files referencing
other subnet specific data if the subnet the machine resides on changed.

If you run a naming service you will need to modify the corresponding
respository on the name server.
i.e. The NIS hosts map, NIS+ hosts table or DNS zone files.

If you have referenced the IP address anywhere else on your machine or other
machines you will need to make the appropriate modifications. Solaris has
been designed such that a machine itself only references its IP address in
/etc/inet/hosts. This allows you to reference a machine using its hostname
rather than the IP address, making IP address changes very simple. A hostname
change requires a bit more work.

For more complex host configuration changes or if you are unsure of yourself
properly completing the above procedure, you can use the `sys-unconfig` command.


These directions can be found at
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

chang swap size after install

Hello all, I just got a laptop with redhat linux 7.2 installed, but during the installation the installer only put 1gig of sawp space( this laptop has 1gig of RAM). To my understanding when creating swap space, the size is determine by double the RAM. Therefore my question is that how do I... (2 Replies)
Discussion started by: larry
2 Replies

2. IP Networking

How to Achive IP address through MAC(Ethernet) address

Hi sir, i want to make such programe which takes MAC(Ethernet) address of any host & give me its IP address....... but i'm nt getting that how i can pass the MAC address to Frame........ Please give me an idea for making such program... Thanks & regards Krishna (3 Replies)
Discussion started by: krishnacins
3 Replies

3. UNIX for Advanced & Expert Users

URGENT,URGENT- Need help tape drive installation

Hi, I am trying to attach tape drive to sun V890 running Solaris 9 on it. I have installed HBA(qlogic) in slot 1 of 0-8 slots and booted the system. I do not see HBAin prtdiag output. The tape drive is not attached to HBA. The tape drive I am going to attach is Sony AIT3. 1.How can I make... (3 Replies)
Discussion started by: sriny
3 Replies

4. UNIX for Dummies Questions & Answers

Panic kernal-mode address fault on user address 0x14

:) Firstly Hi all!!, im NEW!! and on here hoping that someone might be able to offer me some help... i have a server that keeps crashing every few days with the error message: PANIC KERNAL-MODE ADDRESS FAULT ON USER ADDRESS 0X14 KERNAL PAGE FAULT FROM (CS:EIP)=(100:EF71B5BD) EAX=EF822000... (10 Replies)
Discussion started by: Twix
10 Replies

5. IP Networking

Tracing a MAC address to IP address: Solaris

Hi there I lost connectivity to one of our remote systems and when I checked the messages log I found the following: Aug 10 23:42:34 host xntpd: time reset (step) 1.681729 s Aug 16 13:20:51 host ip: WARNING: node "mac address" is using our IP address x.x.x.x on aggr1 Aug 16 13:20:51 host... (9 Replies)
Discussion started by: notreallyhere
9 Replies

6. IP Networking

Partitioning a network address. Urgent help please

Hi, I am trying to figure out a way to partition the departmental IP network address block to create a staff and a student subnet. Each of these will be identified by its own network address and netmask. It is university policy that you must be economical with the IP addresses. That is, the... (0 Replies)
Discussion started by: bawse.c
0 Replies

7. UNIX for Advanced & Expert Users

C program to detect duplicate ip address if any after assigning ip address to ethernet interface

Hi , Could someone let me know how to detect duplicate ip address after assigning ip address to ethernet interface using c program (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies

8. Solaris

Help me I want chang date time in SunOS 5

I want chang date time current to last month ex date current date YESTERDAY=`TZ=GMT date +%Y-%m-%d`; echo $YESTERDAY 2015-11-05 I want to 2015-10-05 chang last mount sun can not use QMONTH=`date +'%Y%m' -d 'last month'` help me pls. Thank you (4 Replies)
Discussion started by: kenjung
4 Replies

9. Shell Programming and Scripting

URGENT Reading a file and assessing the syntax shell script URGENT

I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies
af_lock(3)						    Attribute Filesystem (AtFS) 						af_lock(3)

NAME
af_lock, af_unlock, af_testlock - mechanism for reserving update rights in AtFS SYNOPSIS
#include <atfs.h> Af_user *af_lock (Af_key *aso, Af_user *locker) Af_user *af_unlock (Af_key *aso) Af_user *af_testlock (Af_key *aso) DESCRIPTION
This manual page describes the interface to the AtFS locking mechanism. Locks are used to avoid conflicting updates to one object history. After a user has reserved the update rights, no other user may add new versions to the reserved history. Reserving the update rights hap- pens by locking the most recent version of the history. As AtFS allows adding new versions to each generation in a history, each genera- tion may be locked separately. Reserving update rights for old generations (with generation numbers smaller than the newest generation) are performed by locking the most recent version of the corresponding generation. Removing an ASO (af_rm - manual page af_files(3)) and chang- ing an ASO's version number (af_svnum - manual page af_version(3)) also requires a lock on the corresponding ASO. af_lock reserves the update permission for the user identified by locker. On successful completion, a buffer identical to locker is returned, a NULL pointer otherwise. af_unlock cancels a formerly established reservation of update rights. Only the owner or the locker of an ASO (identified by the Af_user structure that was given to the corresponding call of af_lock) are allowed to do this. On successful completion, af_unlock returns a buffer containing the identification of the former locker. This may be empty, if the ASO was not locked. Upon error, a NULL pointer is returned. af_testlock returns a buffer containing an identification of the current locker of the specified ASO. It returns an empty buffer, if no lock is set. SEE ALSO
af_version(3), af_files(3) DIAGNOSTICS
af_lock and af_unlock return -1 on error and af_errno is set to indicate the error number. AtFS-1.71 Fri Jun 25 14:33:11 1993 af_lock(3)
All times are GMT -4. The time now is 12:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy