chang IP address ( Urgent )


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers chang IP address ( Urgent )
# 1  
Old 06-11-2002
Question chang IP address ( Urgent )

How to chang IP address on the server from unix ?

for Example

I want to chang it from 10.2.0.2 TO 133.2.2.2

Can u please give me more explanation for how to do
# 2  
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
# 3  
Old 06-12-2002
Lightbulb

Thanks for respond but we have here digtal unix V 5.0a not solaris , if you have any idea abuot it advice me .



Thanks ,,,
My Best Regards to you
# 4  
Old 06-12-2002
On Digital Unix (Tru64/OSF 1) You can changed the IP Adresses and other network informations by editing the following files.

/etc/hosts
This file contains all of the definitions for the local
systems IP address, the GATEWAY address
(router.rfs.killserv.net), and the DNS servers. This file
is searched first for DNS conversions due to the file
/etc/svc.conf.

/etc/resolv.conf
This contains the official addresses of the DNS servers.

/etc/rc.config
This contains the official IP address and netmask for the system.

/etc/routes
This contains the official GATEWAY address.

In your case, /etc/hosts and/or /etc/rc.config can be modified.
# 5  
Old 06-12-2002
Error

Thanks For your fast respond,
I would Like to explain that what I need is to change the server IP it self.

Thanks
# 6  
Old 06-12-2002
Do you have the root access to the server ? If you are the root, im sure you can still do as i said in my previous mail editing the /etc/rc.config and reboot the server. It can able to grab the New IP Address. Do Post Back if this Doesnt help.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
Login or Register to Ask a Question