LinuxQuestions.org
Review your favorite Linux distribution.
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 01-26-2006, 06:24 PM   #1
ruddernz
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
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
 
Old 01-27-2006, 05:25 PM   #2
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
Did you generate new keys?
 
Old 01-27-2006, 08:21 PM   #3
linuxbotx
Member
 
Registered: Oct 2003
Location: USA
Distribution: Fedora Core 4
Posts: 247

Rep: Reputation: 30
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.
 
  


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
dhcp server issue connecting (dhcpd) solussd Linux - Networking 1 01-27-2006 08:52 AM
dhcp server issue dshafi Linux - Networking 2 09-02-2005 11:37 PM
DHCP Handout Issue KevinGuy Linux - Networking 1 06-17-2005 03:17 PM
Dhcp Issue real_shock Linux - Networking 3 07-16-2004 10:59 PM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

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

All times are GMT -5. The time now is 01:58 PM.

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