Page 1 of 1

Hosts file w/ DNS, disabling "eth0" and SMB creds via DHCP

Posted: Mon Jan 09, 2012 12:04 pm
by dinomic
Hi,

There are a few things that I'd like to get sorted on my Amahi box, but haven't quite figured out how...

1) I'd like a central place to manage some DNS addresses for testing/development purposes, and it makes sense to do this on the Amahi box! Currently, the way I do this for both Mac and Windows machines is to use their own local "hosts" file. I thought that I'd be able to use the same mechanism on the Amahi box (by placing entries in /etc/hosts), but it doesn't seem to work. I thought that the default for BIND was to merge stuff in from this file? It doesn't seem to work for me though. Any pointers anyone? This should be possible, right (both for fixed IP machines and ones given a DHCP IP from Amahi)?

2) I want to permanently disable "eth0" because this is the network port on my motherboard, and it's broken. I'm therefore using a PCI card ("eth1") for my connectivity. It's generally worked OK in the past, and I've even managed to get VPN bridging (see http://wiki.amahi.org/index.php/VPN_Bridging ) to work for me. However, every now and then, "eth0" seems to get re-enabled. I spent HOURS trying to sort this out over the weekend when I was trying to work out why I'd lost internet connectivity. It turns out that either my ISP and/or OpenDNS had issues but when I rebooted my Amahi box to rule that out, it had enabled eth0 causing me a major headache in trying to work out what had happened. If I could just disable eth0 once and for all, then hopefully this won't happen again! I've tried doing this from within Webmin and through the Network Configuration tool, but every now and then, eth0 keeps coming back!

3) On any of our fixed IP Win 7 machines, if I save credentials for any Amahi shares (ie when asked to "Enter Network Password", I fill in both the user name and password, and check the "remember my credentials" box), they seem to be remembered OK from there on in. However, on any machine that gets its IP via DHCP (eg my laptop when connecting via WiFi), I often have to keep retyping these credentials in. Is there anyway I can get around this? Would having a static IP address for the WiFi be best way to do this?

Thanks in advance for any help...

Re: Hosts file w/ DNS, disabling "eth0" and SMB creds via DH

Posted: Mon Jan 09, 2012 4:27 pm
by bigfoot65
I would think disabling the integrated network card via the BIOS would do the trick.

Re: Hosts file w/ DNS, disabling "eth0" and SMB creds via DH

Posted: Thu Feb 02, 2012 5:19 am
by dinomic
I would think disabling the integrated network card via the BIOS would do the trick.
bigfoot65, there's no option in the BIOS for this (had to wait until the next reboot to test this out!). So, that means I'm pretty much stuffed unless I change my motherboard! :( Damn annoying, as it kills all my networking everytime a reboot is required. I've resolved SOME of the problems since this last reboot, but I've obviously missed a couple of steps because:
1) I can't access http://hda (or any of the other named machines, eg phpmyadmin) whilst on the Amahi machine
2) Other machines with fixed IPs can't use the Amahi as the default gateway

This time, when I get it sorted again, I'll have to document it so that I don't keep having this problem....

Re: Hosts file w/ DNS, disabling "eth0" and SMB creds via DH

Posted: Thu Feb 02, 2012 6:47 am
by bigfoot65
That stinks. Most machines I have dealt with could disable it in the BIOS. I know you can do some things of this nature using Fedora Desktop as well. I had a problem with a card being assigned ETH1 and was able to change it to ETH0 permanently using the Network tools.

Re: Hosts file w/ DNS, disabling "eth0" and SMB creds via DH

Posted: Thu Feb 02, 2012 8:45 am
by dinomic
Yeah, it certainly does stink! I want to replace the mobo, but not quite yet.

If you remember what you do in Fedora desktop, I'd most appreciate the heads-up. I've been trying things manually (ie changing the Network settings, and then restarting the network, bind and dhcp services via command line), and via WebMin. Nothing seems to be working at the moment though...

Re: Hosts file w/ DNS, disabling "eth0" and SMB creds via DH

Posted: Sat Feb 04, 2012 10:58 am
by bigfoot65
I believe from the HDA desktop, in the Administration menu there is a utility called Networking. I think in there I was able to disable the card. The I was able to change the name of the working one to eth0.

It seems like it tool me a few attempts, but after a little messing around and reboots, I finally got it to stick.