LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dhcp server issue (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-server-issue-408382/)

ruddernz 01-26-2006 06:24 PM

dhcp server issue
 
Hi there, having problem running a backup script my old boss made. It worked fine till one day the network card crapped out.
The backupbox was 10.0.10.4 and used the following script to backup data from the main server

backup.sh (on main server)
DATE='date +%d%b%Y`
echo $DATE
ssh backupbox "mkdir -p /home/backup/$DATE/home"
for x in /home/*; do \
nice --adjustment=19 tar zcf - $x | ssh backupbox "cat | split -b1024m - /home/backup/$DATE/$x.tgz."
done

Also old dhcpd.conf used to be

.....
host backupbox {
hardware ethernet 00.23.A2.23.14.32(example)
fixed address 10.0.10.4

}
....

When i put the new network card in the backupbox it changed its ip to 10.0.10.61 and has a new hardware number to. So i changed the dhcpd.conf to

....
host backupbox {
hardware ethernet 00.35.A3.11.22.45(example)
fixed address 10.0.10.61

}
.....

Restarted the dhcpd , tried stop the start also, but whenever the script, or pinging 'backupbox' happens it still is looking for 10.0.10.4
Also tried changing the backup script too as below but it doesn't go now either.

backup.sh
DATE='date +%d%b%Y`
echo $DATE
ssh 10.0.10.61 "mkdir -p /home/backup/$DATE/home"
for x in /home/*; do \
nice --adjustment=19 tar zcf - $x | ssh 10.0.10.61 "cat | split -b1024m - /home/backup/$DATE/$x.tgz."
done

Can ping/ssh into 10.0.10.61 also. Would there be another file or something else i have to restart to get backupbox to the right ip. Dont know alot about linux either hehe.
Thx

ruddernz

arno 01-27-2006 05:25 PM

Did you generate new keys?

linuxbotx 01-27-2006 08:21 PM

post your /etc/sysconfig/networking/device/<config file>

You'll probably have to change its ip in that file:

file example: ifcfg-eth0

May be different filename.


All times are GMT -5. The time now is 12:44 PM.