Solved

Solaris 10 SPARC - change IP address for remote ssh

Posted on 2013-12-23
9
1,486 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 62

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

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

631 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