View Full Version : Changing name & IP in FC4
IdentityCrisis
2005-07-22, 11:06 AM CDT
I've recently installed FC4 on a machine which will be replacing an older workstation here. I need to give it the same (name/IP address/whatever else), so that the other machines in the network treat the new computer as the old one.
How do I go about this?
kg4cbk
2005-07-22, 01:19 PM CDT
You can change most of that in system-config-network.
Also look at the hostname command.
And you will probably want to edit the /etc/hosts file.
Please note: unless you used the same network card as the old system you may have to wait until the arp cache on other systems expire or get flushed for the new system to be able to talk to them.
Also if you use ssh you will have to clean out the old keys associated with the old system.
IdentityCrisis
2005-07-22, 01:44 PM CDT
You can change most of that in system-config-network.
Yes, I found that on my own after posting the original message, and have already altered most of the info to match that of the old machine. However, the network manager in FC4 seems to work a little differantly than in previous versions. It has an extra tab ("IPsec") and the instructions from the help menu apparently haven't been updated (the picture still only shows the "Devices", "Hardware", "DNS" and "Hosts" tabs).
Under the "Hosts" tab there were two entries to copy, one involving the computer's own name and a "localhost.localdomain" entry. The first was accepted by the new machine, but no matter how many time I enter it it refuses to accept the second.
Please note: unless you used the same network card as the old system you may have to wait until the arp cache on other systems expire or get flushed for the new system to be able to talk to them.
Also if you use ssh you will have to clean out the old keys associated with the old system.
That could be it. The new machine is capable of finding other machines on the network, but not vice versa. Thanks a lot.
I'm trying to find the appropriate commands to clean out these things right now. I don't suppose anyone knows them off the top of their head?
kg4cbk
2005-07-22, 02:02 PM CDT
I would look at the contents of /etc/hosts. That file is what the Hosts tab will modify. You want to have at minimum an entry something like:
127.0.0.1 localhost.localdomain localhost
You may have your machines actual name appended to that line or listed on a new line with the actual IP address assigned to the machine.
From the other systems if you ping the name of the new server it should cause that system to do an ARP requesting who has that IP address which will replace the old entry in the arp cache with the new machines MAC address.
Other than that you may just have to wait for the arp cache entries to expire. That can be different for each type of device.
As for the ssh keys if you need to clean that out you will need to edit the ~/.ssh/known_hosts file on each machine you are using ssh with. Find the IP address or name of the modified server and remove that line. ssh should then prompt you the next time you connect to accept the new key.
If you don't do that you will most likely have ssh denied if you use the strict enforcement of the keys. If you don't use strict enforcement I believe it will let you accept the new key by answering yes to the that question.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.