how to change IP of my SUN solaris machine


 
Thread Tools Search this Thread
Operating Systems Solaris how to change IP of my SUN solaris machine
# 1  
Old 02-22-2006
how to change IP of my SUN solaris machine

Hello,

I want to change the IP of my SUN solaris machine but i am not bale to find the right way. I tried the following steps:
1) edit /etc/inet/hosts and change IP address for host listed in
/etc/hostname.le0
2) ifconfig le0 down
3) ifconfig le0 inet NEW_IP_ADDR netmask + broadcast +
4) ifconfig le0 up
5) netstat -rn (get name or ip_addr of "default" router)
6) ping ROUTER_IP_ADDR
7) if ping fails:
route add default ROUTER_IP_ADDR NEW_IP_ADDR 1
On the 3rd point i m getting error as bad address .

Pls help .

Thanks

Aparna
# 2  
Old 02-22-2006
try sys-unconfig
# 3  
Old 02-22-2006
I suspect the problem is the + in step 3. If you are moving it to another subnet, you need to update /etc/netmasks.

If you are only chaning the IP, and not the hostname, you only need to change /etc/hosts.

If you are changing the hostname, you also need to edit /etc/hosts, /etc/hostname.<interface>, ajd /etc/nodename. Technically there are 2 or 3 more places where the old hostname is encoded, but I have never changed any of them and have never had a problem.
# 4  
Old 02-24-2006
like andryk said, sys-unconfig is the recommended by also by SUN (working for a SUN partner). you can but shouldnt change those settings by hand, sys-unconfig is your friend, and I´ve used it really often for example when installing a server and you dont´ know the customers settings, than you just enter sys-unconfig when your done and the customer will have a normal solaris question+answer when he first startup.

Sys-unconfig will do:

x) Revert to a blank system, no hostname, no IP settings, no language selected, no name service and so on...

x) Will bring the SUN down to the OBP

x) Then just boot with "boot" and you will get the normal solaris installation menu.


greetz
# 5  
Old 03-02-2006
hello,

why dont you just edit your /etc/hosts? much simple right?

cheers..
# 6  
Old 03-07-2006
Quote:
Originally Posted by stdout
hello,

why dont you just edit your /etc/hosts? much simple right?

cheers..
if the box stays on the same subnet as the original IP address --- this method is the quickest way to get the IP address change ... just put in the correct IP address of the box in /etc/hosts and reboot ...

if the box is changing subnets, sys-unconfig is cleaner ...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host

Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12). I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box... (4 Replies)
Discussion started by: Matt_VB
4 Replies

2. Solaris

Sun is not able to ssh another machine of sun

My one Sun machine is not able to ssh another machine of Sun. Although I have configured the ssh successfully ( SunOS sunbox2 5.9 Generic_118558-34 sun4u sparc SUNW,Sun-Blade-2500 ) ERROR bash-2.05# ssh sunbox2 /etc/ssh/ssh_config: line 34: Bad configuration option: PermitRootLogin... (0 Replies)
Discussion started by: z_haseeb
0 Replies

3. Solaris

HP Unix & Sun Solaris on single machine

Is it possible to install 2 flavors of Unix on a single machine ? -HP Unix -SUN Solaris Please provide sufficient information to carry both of the above OS installation on single machine.Any guide/steps/document will do. (3 Replies)
Discussion started by: mahix
3 Replies

4. IP Networking

RSH to Ubuntu machine from Solaris machine?

This is probably really basic compared to what you guys are usually talking about here, but I have a problem and I have no idea what to do about it. I try to RSH to my Ubuntu computer from my Solaris one and run into a dead end: >> rsh 192.168.1.103 ::ffff:192.168.1.103: Connection timed out... (4 Replies)
Discussion started by: Bradj47
4 Replies

5. Solaris

x86 Sun Machine and Solaris Soft Mirror

Hi everyone, Normally it always easier in Sparc machine, i can set or manually use the boot-device in NVram to boot the mirrored disk. However I have a big trouble about x86 mirror for a long time. I have been doing anything i can: search document, google, ask the others. Recently i did as... (5 Replies)
Discussion started by: tien86
5 Replies

6. Solaris

Sun Fire 280R Sun Solaris CRT/Monitor requirements

I am new to Sun. I brought Sun Fire 280R to practice UNIX. What are the requirements for the monitor/CRT? Will it burn out old non-Sun CRTs? Does it need LCD monitor? Thanks. (3 Replies)
Discussion started by: bramptonmt
3 Replies

7. Solaris

Best possible communication mechanism between a Solaris machine and a windows machine

hi, I have some windows client machines which require a signal to be sent by a Solaris machine( SunOS 5.6) when ever a particular event occurs on that Solaris machine. What are possible communication mechanisms by which i can do this. the constraints are > the windows machines have to... (7 Replies)
Discussion started by: Krsh
7 Replies

8. UNIX for Dummies Questions & Answers

Sun Solaris 10: How do I create a bootup disc? The Sun website confuses me

Hey there, I am starting a Computer Science Foundation year at the end of this month and am trying to get a little bit ahead of the game. I have always wanted to learn Unix and am currently struggling with creating a boot disc to run Solaris (I have chosen to study this) from as opposed to... (0 Replies)
Discussion started by: Jupiter
0 Replies

9. Solaris

How to change the IP address on SUN Solaris?

Hi, I need help from SOLARIS expert. Can someone please tell me how to change the IP address on SUN Solaris? I have two NMS-SUN machines (Ultra 10) running on Solaris ver. 8 to manage our network with the following IP addresses and SM: cwmws1: 10.10.100.2 255.255.255.0 cwmws2:... (3 Replies)
Discussion started by: gkr
3 Replies

10. Solaris

How can i Configure TCP Keepalive on sun solaris 9 machine?

I've installed sun solaris 9 and i need to know how can i enable TCP Keepalive to ping socket connections every 300 seconds? Thanks, Mohammed Amin (1 Reply)
Discussion started by: m_amin
1 Replies
Login or Register to Ask a Question