[mythtvnz] hdhomerun doesn't connect on restart when connected directly to the lan port

Stephen Worthington stephen_agent at jsw.gen.nz
Sun Apr 28 07:55:49 BST 2013


On Sun, 28 Apr 2013 16:28:06 +1200, you wrote:

>
>>>>
>>> INTERFACE="eth0" was set as requested
>>>
>>> ifconfig:
>>>
>>>  ifconfig
>>> eth0      Link encap:Ethernet  HWaddr 14:da:e9:dc:51:a1
>>>           inet addr:10.99.0.1  Bcast:10.99.0.255  Mask:255.255.255.0
>>>           inet6 addr: fe80::16da:e9ff:fedc:51a1/64 Scope:Link
>>>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>>           RX packets:15 errors:0 dropped:0 overruns:0 frame:0
>>>           TX packets:154 errors:0 dropped:0 overruns:0 carrier:0
>>>           collisions:0 txqueuelen:1000
>>>           RX bytes:4566 (4.5 KB)  TX bytes:22070 (22.0 KB)
>>>           Interrupt:47 Base address:0xc000
>>>
>>> lo        Link encap:Local Loopback
>>>           inet addr:127.0.0.1  Mask:255.0.0.0
>>>           inet6 addr: ::1/128 Scope:Host
>>>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>>>           RX packets:639 errors:0 dropped:0 overruns:0 frame:0
>>>           TX packets:639 errors:0 dropped:0 overruns:0 carrier:0
>>>           collisions:0 txqueuelen:0
>>>           RX bytes:70477 (70.4 KB)  TX bytes:70477 (70.4 KB)
>>>
>>> wlan2     Link encap:Ethernet  HWaddr f8:d1:11:10:e6:76
>>>           inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0
>>>           inet6 addr: fe80::fad1:11ff:fe10:e676/64 Scope:Link
>>>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>>           RX packets:38 errors:0 dropped:0 overruns:0 frame:0
>>>           TX packets:119 errors:0 dropped:0 overruns:0 carrier:0
>>>           collisions:0 txqueuelen:1000
>>>           RX bytes:5996 (5.9 KB)  TX bytes:20130 (20.1 KB)
>>
>> This is strange - why is your WiFi interface coming up as wlan2 ? Does
>> that PC have multiple WiFi cards?  It should be wlan0 !
>>
>> The syslogdhcp file shows wlan2 getting its IP address correctly from
>> the DHCP server on the WiFi connection, and the above shows a good
>> IPv4 configuration, so it should work as long as wlan2 is the correct
>> interface name.  Can you ping anything (eg 192.168.2.1) over the WiFi
>> connection using IP addresses rather than names?  What does the
>> "route" command report?
>>
>>> dhcpd -t gives the output:
>>>
>>> dhcpd -t
>>> drop_privileges: could not set group id: Operation not permitted
>>>
>>> so I tried sudo:
>>>
>>> myth at myth:~$ sudo dhcpd -t
>>> [sudo] password for myth:
>>>
>>> Internet Systems Consortium DHCP Server 4.1-ESV-R4
>>> Copyright 2004-2011 Internet Systems Consortium.
>>> All rights reserved.
>>> For info, please visit https://www.isc.org/software/dhcp/
>>
>> Ah, yes, I always run from root unless I really need to be running
>> from a different login, so I often forget to tell people to do sudo.
>>
>>> grep -i dhcp /var/log/syslog  output text file attached   System  
>>> rebooted
>>> at 13:42
>>>
>>> Paul
>>
>> The syslogdhcp file clearly shows that the config for dhcpd is mangled
>> somehow.  The dhcpd server is not seeing the setup for eth0.  Googling
>> the "No subnet declaration for eth0 (no IPv4 addresses)" message shows
>> that is usually caused by the /etc/default-isc-dhcp-server file not
>> having been set up, and the second most common problem was a syntax
>> error in /etc/dhcp/dhcpd.conf.  Please post both of these files and I
>> will try running the exact files on my laptop to see if anything shows
>> up.
>>
>> ________
>Wifi is via a USB wifi device.No other wifi devices installed.

OK, that explains it being wlan2.  USB devices tend to install on
different device numbers.

>The box is in use at the moment so I'll get the wifi info later.
>dhcpd.conf is attached and did you mean:  /etc/default/isc-dhcp-server ?  
>because there does not appear to be a /etc/default-isc-dhcp-server file.

Yes, that was just a typo.

>Thanks
>
>Paul

I have installed the two files on my laptop and it is working fine. As
before, I do not have a device requiring a DHCP address that I can
connect to the eth0 subnet, but everything has started up just fine. I
have attached a copy of my syslog file while rebooting with this
config in place, and a copy of the ifconfig output.

The necessary change I had to make in the config was only to change
the gateway address of the static IP assigned to eth0, to my WiFi
address 10.0.2.15.  Everything else should be very similar to yours,
as my laptop is running Mythbuntu 12.04 too.  I did not touch the
isc-dhcp-server or dhcpd.conf files at all.

You might like to compare the networking parts of my syslog with
yours, especially the NetworkManager bits, to see if there is anything
different.

As I do this sort of thing from a root prompt, I am wondering if you
might have done the editing from a user prompt and maybe that changed
the permissions somehow, so that dhcpd could not read the files.  So
here are ls -al listings of my dhcpd config files to see if yours
might have bad permissions or ownership:

root at gt70:~# cd /etc/default/
root at gt70:/etc/default# ls -al is*
-rwxrw-rw- 1 root root 323 Apr 28 17:03 isc-dhcp-server
-rw-r--r-- 1 root root 319 Apr 28 17:07 isc-dhcp-server.original
root at gt70:/etc/default# cd ../dhcp
root at gt70:/etc/dhcp# ls -al
total 36
drwxr-xr-x   4 root root  4096 Apr 28 17:09 .
drwxr-xr-x 153 root root 12288 Apr 28 17:28 ..
-rw-r--r--   1 root root  1791 Sep 24  2011 dhclient.conf
drwxr-xr-x   2 root root  4096 Apr 18 23:36 dhclient-enter-hooks.d
drwxr-xr-x   2 root root  4096 Feb  3 05:02 dhclient-exit-hooks.d
-rwxrw-rw-   1 root root  3860 Apr 28 17:03 dhcpd.conf
-rw-r--r--   1 root root  3602 Nov  8 11:52 dhcpd.conf.original

The *.original files are the ones installed with the isc-dhcp-server
package.  I renamed them so I could keep them as a reference when I
copied in your config files.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: syslog.zip
Type: application/octet-stream
Size: 25399 bytes
Desc: not available
URL: <http://lists.ourshack.com/pipermail/mythtvnz/attachments/20130428/8e12939a/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ifconfig
Type: application/octet-stream
Size: 1434 bytes
Desc: not available
URL: <http://lists.ourshack.com/pipermail/mythtvnz/attachments/20130428/8e12939a/attachment-0003.obj>


More information about the mythtvnz mailing list