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

Paulgir paulgir at gmail.com
Sat Apr 27 04:45:33 BST 2013


On Sat, 27 Apr 2013 14:37:28 +1200, Steve Hodge <stevehodge at gmail.com>  
wrote:

> On Sat, Apr 27, 2013 at 1:39 PM, Paulgir <paulgir at gmail.com> wrote:
>> Apr 27 13:13:42 myth dhcpd: No subnet declaration for eth0 (no IPv4  
>> addresses).
>> Apr 27 13:13:42 myth dhcpd: ** Ignoring requests on eth0.  If this is  
>> not what
>> Apr 27 13:13:42 myth dhcpd:    you want, please write a subnet  
>> declaration
>> Apr 27 13:13:42 myth dhcpd:    in your dhcpd.conf file for the network  
>> segment
>> Apr 27 13:13:42 myth dhcpd:    to which interface eth0 is attached. **
>> Apr 27 13:13:42 myth dhcpd:
>> Apr 27 13:13:42 myth dhcpd:
>> Apr 27 13:13:42 myth dhcpd: Not configured to listen on any interfaces!
>
> Clearly you have misconfigured DHCP. It's probably working after 20  
> seconds because it's defaulting back to link-local >addresses.
>
> I know nothing about that DHCP server, but I think this looks wrong:
>> host myth-eth0 {
>> hardware ethernet 14:da:e9:dc:51:a1;
>> fixed-address 10.99.0.1;
>> }
>
> DHCP servers listen on a network interface - it can't function until the  
> interface has an IP address. So obviously you can't >use a DHCP server  
> to assign an IP address to the interface that the DHCP server is  
> supposed to be listening on. But that's >what this configuration seems  
> to be trying to do. You should assign 10.99.0.1 to eth0 in the normal  
> way (whatever that is >for ubuntu) and leave this section out.
>
>> subnet 10.99.0.0 netmask 255.255.255.0 {
>> range 10.99.0.50 10.99.0.250;
>> option subnet-mask 255.255.255.0;
>> option broadcast-address 10.99.0.255;
>> option routers 192.168.2.2;
>> }
>I can't imagine you need the "option subnet-mask" line in there - you  
> already supplied the netmask.
> I assume "option routers" is setting the gateway on the client  
> interface. But the client is not going to be able to connect >to  
> 192.168.2.2 - it's not on the same subnet and there is no router or  
> anything to help. This should be set to the address >of the myth box on  
> that subnet, i.e. 10.99.0.1. If the hdhr needs connectivity to the rest  
> of the network then you'll need >to do some iptables config on the myth  
> box.
>
> Cheers,
> Steve


>
HDHR doesn't need to connect to the network.Are you saying I only need the  
section:

host <name of your MythTV PC with -eth0 on the end> {
hardware ethernet <your eth0 HWaddr>;
fixed-address 10.99.0.1;
}

and comment the "option routers" line in the dhcpd.confile ?

Below are Nick's instructions:

"Change the "options domain-name" line to your domain name if you have
one. If not, I think you need to just comment out that line with a #
in front. It is possible you may need to use your ISP's domain name.
I have my own domain so I have always just used that.

Change the "options domain-name-server" line to the DNS server
addresses you use. If you run your own DNS servers like I do, then
use their addresses. Otherwise, find out the DNS servers that your
ISP provides and use their addresses. They will likely be stored in
your Internet router somewhere, and your ISP can tell you if they do
not have them listed on a web page. You can easily find out the
primary address by just doing a command like:

nslookup easynews.com

The address in the "Server:" line of the response is the primary DNS
server you have configured. There will usually be at least two DNS
servers though, so it is best to have both listed if possible.

Note that the "options domain-name-server" line is not necessary for
your HDHomerun as it does not do DNS lookups, so you could just
comment out that line too. But if you ever connect anything else to
eth0 it would be good to have it configured so things work properly.

Uncomment the "#authoritative;" line.

Add the following host and subnet declarations to dhcp.conf:

host <name of your MythTV PC with -eth0 on the end> {
hardware ethernet <your eth0 HWaddr>;
fixed-address 10.99.0.1;
}

subnet 10.99.0.0 netmask 255.255.255.0 {
range 10.99.0.50 10.99.0.250;
option subnet-mask 255.255.255.0;
option broadcast-address 10.99.0.255;
option routers <your MythTV box WiFi ip address>;
}

Note that the "option routers" line above is optional as your
HDHomerun will not need it. If it is assigned by a DHCP server
somewhere, it may change and you should not put the "options routers"
line until you have configured it also with a static IP address."

-Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/mythtvnz/attachments/20130427/c98f37ca/attachment.html>


More information about the mythtvnz mailing list