Avatar of joaotelles
joaotelles
Flag for United States of America asked on

Solaris 10 SPARC - change IP address for remote ssh

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
Unix OS

Avatar of undefined
Last Comment
joaotelles

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Joseph Gan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
joaotelles

ASKER
No need to do anything like plumbing?
SOLUTION
Joseph Gan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
gheist

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
Joseph Gan

The point here was, he connect remotely. If unplumbed the interface, he will lost the connection and won't be able to login.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
joaotelles

ASKER
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
gheist

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

ASKER
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
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
joaotelles

ASKER
Tks.