Solved

Solaris 10 SPARC - change IP address for remote ssh

Posted on 2013-12-23
9
1,432 Views
Last Modified: 2013-12-29
Hi,

I have a server that has Soalris 10 SPARC OS.

I can currently connect to it remotly using an IP address, but I want to change it to another IP address... what do I need to do? Pls let me know the commands...

Its the igb0. Is it just plumb? Shutdown necessary?

root@dp-#  dladm show-dev
igb0            link: up        speed: 1000  Mbps       duplex: full
igb1            link: unknown   speed: 1000  Mbps       duplex: full
igb2            link: up        speed: 1000  Mbps       duplex: full
igb3            link: unknown   speed: 0     Mbps       duplex: unknown
usbecm0         link: up        speed: 10    Mbps       duplex: full

root@dp-# netstat -in
Name  Mtu  Net/Dest      Address        Ipkts  Ierrs Opkts  Oerrs Collis Queue
lo0   8232 127.0.0.0     127.0.0.1      388    0     388    0     0      0
igb0  1500 10.129.68.0   10.129.68.47   15569708 0     7256551 0     0      0
igb2  1500 1.1.0.0       1.1.1.2        12943  0     24     0     0      0
usbecm0 1500 169.254.182.0 169.254.182.77 6      0     1126   0     0      0

root # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
igb0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.129.68.47 netmask ffffffc0 broadcast 10.129.68.63
        ether 0:10:e0:3e:c3:1c

Tks,
joao
0
Comment
Question by:joaotelles
  • 4
  • 3
  • 2
9 Comments
 
LVL 16

Accepted Solution

by:
Joseph Gan earned 500 total points
ID: 39737025
Just need to change IP address in following files and reboot:

/etc/hosts
/etc/nodename
/etc/hostname.igb0
/etc/resolv.conf
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/ticotsord/hosts
0
 

Author Comment

by:joaotelles
ID: 39737060
No need to do anything like plumbing?
0
 
LVL 16

Assisted Solution

by:Joseph Gan
Joseph Gan earned 500 total points
ID: 39737078
No, because IP address changes require a reboot, which will auto plumb the interface with new IP address.
0
 
LVL 61

Expert Comment

by:gheist
ID: 39737101
ip address change with ifconfig does not require a reboot (Solaris even supports DHCP on cable plugged)
just that all open sockets are invalidated (wildcard listeners may or may not be affected) and you need to change startup files blindly without a way to verify
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 16

Expert Comment

by:Joseph Gan
ID: 39737114
The point here was, he connect remotely. If unplumbed the interface, he will lost the connection and won't be able to login.
0
 

Author Comment

by:joaotelles
ID: 39737181
Tks for all replies.

I have some questions though:

1- Can I follow this procedure only to have the IP permentaly changed for the remote access using the ogb0 interface? This wouldnt need to reboot right?

Do this:
root@# ifconfig igb0 plumb
root@ # ifconfig igb0 1.1.1.2
root@ # ifconfig igb0 netmask 255.255.0.0

And then change the files mentioned in the last update?

2- OR I just update the files with the new IP and reboot the system?

============


Is this it? I mean is there any aditional step I need to run in order to have a new IP for the remote ssh (using the interface igb0) ?

Tks,
Joao
0
 
LVL 61

Expert Comment

by:gheist
ID: 39738727
igb0 is up and running, plumb is not needed.

1) change files as mentioned
2) configure ILOM to meaningful IP configuration so you can change other addresses via it
3)run ifconfig from ilom (or gnu screen)
Or if in doubt reboot for 10-30min.
0
 

Author Comment

by:joaotelles
ID: 39739061
Tks again!

The ILOM interface already have an IP assigned to it and I dont want to change this one... but its not configured to remote access because of switch problems...

Sry for the newbie question.

So my question is: can I go to where the server is, connect via ethernet cable to the ILOM interface directly to my laptop, and using the IP that is configured to the ILOM can I connect via ssh to the server?

And once connected I can change the files mentioned (see below), and reboot the server so the ifconfig would be refreshed with the new IP value.

Would this work?

/etc/hosts
/etc/nodename
/etc/hostname.igb0
/etc/resolv.conf
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/ticotsord/hosts

Tks,
Joao
0
 

Author Closing Comment

by:joaotelles
ID: 39744562
Tks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now