LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-23-2011, 09:30 PM   #1
csz86
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
change IP address


Hi, my office has a linux machine currently used as a WinCVs server only. It will be moved to an other building and the IP address has to be changed. The trouble with this machine is that the monitor is fixed on the computer (uniterchangeable) and has already broken. We can not see anything on the screen.

We want keep all the content on this computer, what can we do?

The computer will be turned off during move. Can it boot without link to network? and then how can we change the IP address when we have a new one?

many thanks.
 
Old 02-23-2011, 09:51 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
It should be easy enough to modify the network settings via ssh.

What distro is on the computer? That affects what file(s) in /etc might need to be modified.

In the long run, it might be a good idea to plan to change out this computer or repair the monitor because, eventually, something will break that requires a direct interface with display capabilities to be fixed.
 
Old 02-23-2011, 10:11 PM   #3
csz86
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you.

Could you please advise me the procedures to change the address using ssh? I am new the linux.

I am also new to the office. I have suggested a new computer. Hopefully, we will get one in weeks.
 
Old 02-24-2011, 02:55 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Before you do anything you should see if you can access by some method. Not needed but may be helpful.

Knowing the type or distro of the linux may help us too.

Access it via a lan by knowing some part of the system. Knowing the mac address or IP address would help. Tools to access remotely include ssh, telnet, vnc or other remote like NX. Even access by tftp or nc may provide ways to control it.

Knowing user names and passwords is also helpful.

It may be that you have to remove the hard drive to access it in a different system. May have to boot to a special live cd to access it remotely.

Can you or anyone access it now by any method and any user passwords known?
 
Old 02-24-2011, 04:49 PM   #5
csz86
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you.

The machine is working with the current IP and we can access it even if we cannot see anything on the screen. The computer will be turned off and moved to a new building where the current IP WILL NOT work and we will be given a new IP.

So my trouble is:

Once in the new building we turn on the computer, how can we access the machine and change the IP address?
 
Old 02-24-2011, 08:15 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
What Linux distro is it running?

Different Linux distros put the ip address information in different files. The files are always in the /etc directory. However, the exact name of the file can vary. Also, some distros put that file directly in /etc, others put it in a subdirectory, as in /etc/[some directory name]/[file name].

Accordingly, if you can tell us what Linux distro (Fedora, Debian, Slackware, CentOS, and so on) is being used, it will be easier for us to suggest which file must be modified.
 
Old 02-24-2011, 08:57 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
If it is static then simply use any computer and make an arp static assignment to the old ip. I'd do that on a very simple two computer setup so as to not goof up anything else. Arp can force any ip to a mac address so that you can access it.

If dynamic, then arp may still work but I never tried it. I'd use wireshark to view request to the mac address then access it.

I suspect it is static.
 
1 members found this post helpful.
Old 02-24-2011, 09:36 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
[Thread drift warning]

Jefro:

One of the Linux Link Tech Show guys in this week's podcast did a rant on how to get a Linux job (he admins 100s of Linux servers and had just been hiring; apparently one too many persons answered "Use the GUI tool" to a question). He said, among other things, that knowing about basic system tools such as pwd and clusterssh was important.

I bet he would have included arp as one of those commands.

Thanks for showing me something else to learn.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change ip address rust8y Solaris / OpenSolaris 2 11-22-2009 09:35 AM
change the PC ip address? malli42108 Linux - Newbie 1 08-14-2009 08:38 AM
Change ip address s0p3rsa1yan Slackware 6 02-11-2009 03:52 PM
Change Ip address luisator Linux - Newbie 3 06-02-2005 04:03 AM
Change address juno Linux - General 2 10-25-2002 03:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration