LinHES Forums
http://forums.linhes.org/

Please Help: Reconfiguring Knoppmyth box from DHCP to Fxd IP
http://forums.linhes.org/viewtopic.php?f=5&t=11539
Page 1 of 1

Author:  tnagle3 [ Sun Sep 10, 2006 8:53 pm ]
Post subject:  Please Help: Reconfiguring Knoppmyth box from DHCP to Fxd IP

Hi folks,
Sorry to ask a bit of a Linux newb question, but this is driving me nuts. In short, I successfully installed Knoppmyth to a single machine (frontend and backend). During the original installation, I elected to configure the machine using DHCP, as I did not foresee connecting additional frontends to this server. Since getting my Mythtv server up and running, my plans have changed and I will be connecting from multiple frontend to this single backend. I would like to reconfigure my Mythtv host with a fixed IP address. But I can't seem to get it to "stick". I have run the netcardconfig script and successfully assigned a fixed IP, net mask, gateway, blah blah blah, to the server (as I am instantly able to connect via SSH to the box using this new info). I have updated the backed DB to reflect the fixed IP address in the Settings table. I have update the MySQL.txt file in the /home/mythtv directory so the Frontend finds the backend. But it only works for two days! After two days, it appears that the host is still requesting a new IP address from my DHCP server, and it gets one! So I get the impression there is something else I need to reconfigure in order to fix this problem. Turn off a dhcp daemon somewhere, something like that.

Can anyone point me in the right direction?

Much thanx in advance,

T. Nagle

Author:  Xsecrets [ Mon Sep 11, 2006 12:05 am ]
Post subject: 

this shouldn't happen, but since it does check the /etc/network/interfaces file and make sure you don't have anything about dhcp in there. (the netcardconfig script should have changed this)

Author:  Nyctoparros [ Mon Sep 11, 2006 9:02 am ]
Post subject: 

Is the client still being started by chance?

Code:
# ps aux | grep dhclient
root      2916  0.0  0.0   1772   488 ?        Ss   Sep10   0:00 dhclient -e -pf /var/run/dhclient.eth0.pid -lf /var/run/dhclient.eth0.leases eth0


Not sure how it's called if it is running though.

Author:  tnagle3 [ Mon Sep 11, 2006 10:44 am ]
Post subject: 

Just some followup.

Re: /etc/network/interfaces file, it looks like a static IP address has been successfully configured, per the info below:

# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback

iface eth0 inet static
address 192.168.1.85
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1


Re: DHCP client, it looks to me per your post that it may still be running. If I run the ps aux | grep dhclient, it get the following:

root 5452 0.0 0.1 1640 500 ttyp0 S+ 12:41 0:00 grep dhclient

If the DHCP client is running, how can I disable it?

Thanx for your help,

T. Nagle

Author:  Nyctoparros [ Mon Sep 11, 2006 12:37 pm ]
Post subject: 

tnagle3 wrote:
Re: DHCP client, it looks to me per your post that it may still be running. If I run the ps aux | grep dhclient, it get the following:

root 5452 0.0 0.1 1640 500 ttyp0 S+ 12:41 0:00 grep dhclient

If the DHCP client is running, how can I disable it?


Looks like it's *not* running. The output is just grabbing the grep of the grep if that's all that came back. You'd be looking for something a bit closer to my return on the last fields.

I haven't switched over to static yet, but I will be tonight. If no one has solved this by then I'll post my results here.

Author:  tnagle3 [ Mon Sep 11, 2006 9:47 pm ]
Post subject: 

yeah, I realized that after I posted my last note. Took me a minute before I saw that my grep results were different than the results indicating the dhcp client was running. Per your note indicating that you are making the change also, let me know if there is something else you do other than what I have changed. Thanx again for everybody's help and insight.

Author:  mac [ Tue Sep 12, 2006 8:54 am ]
Post subject: 

this is fairly odd, but since linux is pretty transparent it should not be too hard to track down the cause. When you machine got its IP my guess is that it logged it somewhere under /var/log
maybe in messages. Grep though a few of the files under /var/log with the new IP address and you should find it.

maybe post full output of "ps axwwww"

Author:  Nyctoparros [ Tue Sep 12, 2006 9:48 am ]
Post subject: 

tnagle3 wrote:
yeah, I realized that after I posted my last note. Took me a minute before I saw that my grep results were different than the results indicating the dhcp client was running. Per your note indicating that you are making the change also, let me know if there is something else you do other than what I have changed. Thanx again for everybody's help and insight.


Will do, got a little to busy last night, hopefully tonight I'll have more time.

What you could always do is set the IP in your DHCP server to always goto the MAC address of your myth box. Configure the rest of the system as if it was static. If by chance it gets the DHCP, o-well, it's still going to be the same as you want for a static.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/