[12:37] <TheProf_> Good morning.  I hope someone can help with with a sudden crisis!  Today is the day I'm switching our network to the new Edubuntu 11.04 server.  I did the testing last week and all was well. Today when I came in and turned on the server I can't get the dhcpd server to start!
[12:37] <TheProf_> Status of ISC DHCP server: dhcpd is not running
[12:38] <alkisg> And if you try to start it? sudo service isc-dhcp-something start    ?
[12:38] <TheProf_> Yup - let me post that now
[12:38] <TheProf_> It fails and asks me to check syslog.  Syslog says:
[12:39] <TheProf_> Wrote 1 leases to leases file. No subnet declaration for Internet_0 (192.168.1.106).
[12:39] <TheProf_> ** Ignoring requests on Internet_0.  If this is not what
[12:39] <TheProf_>    you want, please write a subnet declaration
[12:39] <TheProf_>    in your dhcpd.conf file for the network segment
[12:39] <TheProf_>  to which interface Internet_0 is attached. **
[12:40] <TheProf_> This is a standard 2-NIC server with an LTSP_1 (eth1) and Internet_0 (eth0) NICs
[12:40] <TheProf_> one more line in syslog: Not configured to listen on any interfaces!
[12:40] <alkisg> If your run `sudo dpkg-reconfigure isc-dhcp-something`, do you see an interfaces declaration?
[12:41] <TheProf_> alkisg, I will try that now.
[12:41]  * alkisg doesn't know the exact name, he's still on 10.04 :D
[12:41] <TheProf_> there are three options for -something: client, common, server?
[12:41] <TheProf_> server I presume?
[12:43] <alkisg> server, yeah
[12:44] <TheProf_> alkisg, it asks me for which NIC to listen on -- if I put eth1 it fails, and if I put the alias LTSP_1 it also fails
[12:44] <TheProf_> hmm
[12:44] <alkisg> TheProf_: don't put any nic there at all
[12:45] <alkisg> That's why I told you that command, to delete any entries you might have put there, which would break your dhcpd.conf
[12:45] <alkisg> Once you've erased it, let's move on
[12:45] <TheProf_> oh my mistake - I misunderstood.
[12:46] <TheProf_> OK I'll leave it blank
[12:46] <TheProf_> alkisg, I've re-run the command and left the NIC blank, erasing all that was there.
[12:47] <alkisg> Good. And still dhcpd not starting, with the same message?
[12:47] <TheProf_> Correct. It says starting failed. I'm checking syslog nw
[12:47] <TheProf_> now.
[12:48] <TheProf_> alkisg, there is one more line in syslog now after the same previous error
[12:48] <TheProf_> [ 1027.738797] type=1400 audit(1315831665.095:30): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/dhcpd" pid=3190 comm="apparmor_parser"
[12:48] <alkisg> TheProf_: now, put the output of these to pastebin:
[12:49] <alkisg> ip -oneline -family inet addr show
[12:49] <alkisg> cat /etc/ltsp/dhcpd.conf
[12:52] <TheProf_> is there a pastebin for this channel?
[12:52] <TheProf_> !pastebin
[12:52] <TheProf_> there it is.
[12:53] <TheProf_> alkisg, http://paste.ubuntu.com/687603/
[12:54] <TheProf_> Also I recall one change I made: /etc/udev/rules.d$ cat 70-persistent-net.rules changed the eth1 and eth0 to LTSP_1 and Internet_0
[12:54] <TheProf_> In order to be able to tell them apart.
[12:55] <TheProf_> Where it says "NAME="
[13:01] <alkisg> TheProf_: wow... you named your interfaces LTSP_1 and internet_0? :D
[13:01] <alkisg> That's what network-manager is for
[13:01] <alkisg> To give you human names, so that you don't have to modify the internal names...
[13:01] <alkisg> Anyway, the problem is that you don't have an ip address in your LTSP_1 interface
[13:02] <alkisg> Because you changed it, but you didn't update /etc/network/interfaces
[13:02] <alkisg> So either put it back to ethX, or update your /etc/network/interfaces file
[13:02] <alkisg> (I propose the first one)
[13:03] <TheProf_> alkisg, It's that bad that I renamed them eh?
[13:03] <TheProf_> I just kept getting confused which NIC is which, hence the human name with the eth_number at the end.
[13:03] <TheProf_> And I had read other threads on the mailing list that network manager would conflict with LTSP and shouldn't be used.  hence my actions.
[13:04] <TheProf_> OK I will change them back.
[13:05] <TheProf_> Do I need to reboot to activate the change or can I just restart a specific service?
[13:06] <alkisg> try: sudo service network-manager stop, and networking stop, and then start them
[13:06] <alkisg> But nah better restart
[13:06] <alkisg> You'd need to fire udev rules too
[13:06] <TheProf_> alright - I'm on that same machine now so I will return.
[13:09] <alkisg> Better?
[13:09] <TheProf_> Yes indeed!
[13:10] <TheProf_> alkisg, looks like we're up!
[13:10] <TheProf_> alkisg, thank you very much!
[13:11] <alkisg> You're welcome
[13:11] <TheProf_> I will use the network manager to rename the interfaces as you recommended
[13:11] <alkisg> You need to be careful there
[13:12] <alkisg> You need to delete the eth* entries from /etc/network/interfaces, and create system connections for them from network-manager
[13:12] <alkisg> Note what you change so that you can easily revert, and don't do it while you have people using your server
[13:19] <TheProf_> alkisg, alright I'll probably just put a post-it note with which NIC is which
[13:19] <alkisg> Hehe
[13:19] <alkisg> You can change them to ethi (internet) and ethl (ltsp) if you want, but remember to update /etc/network/interfaces too
[13:23] <TheProf_> Awesome thanks.