<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'DejaVu Sans Mono'; font-size:12px}</style>
</head>
<body>On Thu, 25 Apr 2013 20:51:04 +1200, Nick Rout <nick.rout@gmail.com> wrote:<br><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><br><br><div class="gmail_quote">On Thu, Apr 25, 2013 at 4:21 PM, Stephen Worthington <span dir="ltr"><<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, 25 Apr 2013 13:23:01 +1200, you wrote:<br>
<br>
>On Thu, 25 Apr 2013 12:25:23 +1200, Steve Hodge <<a href="mailto:stevehodge@gmail.com">stevehodge@gmail.com</a>><br>
>wrote:<br>
><br>
>> On Thu, Apr 25, 2013 at 11:23 AM, Paulgir <<a href="mailto:paulgir@gmail.com">paulgir@gmail.com</a>> wrote:<br>
>>> On Thu, 25 Apr 2013 08:59:50 +1200, Steve Hodge <<a href="mailto:stevehodge@gmail.com">stevehodge@gmail.com</a>><br>
>>> wrote:<br>
>>><br>
>>>> <a href="http://www.silicondust.com/hdhomerun/hdhomerun_tech.pdf" target="_blank">http://www.silicondust.com/hdhomerun/hdhomerun_tech.pdf</a><br>
>>>> Note that it states that the hdhomerun takes 20 seconds from link-up<br>
>>>> until it can be addressed using a link-local address. >>>That's what<br>
>>>> is causing the problems for Paul.<br>
>>>><br>
>>>> I'd also recommend a static address or a DHCP server. Static addresses<br>
>>>> can be assigned using hdhomerun_config. Get the >>>hdhomerun working<br>
>>>> using a link-local address then do:<br>
>>>> hdhomerun_config <old ip> set /sys/ipaddr “<new ip> <subnet> <gateway>”<br>
>>>> e.g. hdhomerun_config 169.254.227.211 set /sys/ipaddr “10.99.0.2<br>
>>>> 255.255.0.0 10.99.0.1”<br>
>>>><br>
>>>> To revert to DHCP/link-local addressing do:<br>
>>>> hdhomerun_config 10.99.0.2 set /sys/ipaddr dhcp<br>
>>>><br>
>>> Thanks for that.<br>
>>> I used hdhomerun_config discover to find the current address,<br>
>>> Then ran: hdhomerun_config 169.254.131.162 set /sys/ipaddr "10.99.0.2<br>
>>> 255.255.255.0 10.99.0.1"<br>
>>> then I got this message: "ERROR: unknown getset variable"<br>
</div>>>You can tryhdhomerun_config 169.254.131.162 get help<br>
<div class="im">>> to see if that sheds any light on it. I don't have one to test with<br>
>> sorry.<br>
>><br>
>> Otherwise set up a dhcp server.<br>
>><br>
>> Cheers,<br>
>> Steve<br>
>><br>
>I've installed a dhcp server but I'm a bit lost on how to set it.<br>
>Do I use these values 169.254.131.162 255.255.255.0 10.99.0.1 ?<br>
><br>
>Paul<br>
<br>
</div>Presuming that you installed the usual isc-dhcp-server package, then<br>
this page looks like a good tutorial:<br>
<br>
<br>
<a href="http://www.cyberciti.biz/faq/howto-ubuntu-debian-squeeze-dhcp-server-setup-tutorial/" target="_blank">http://www.cyberciti.biz/faq/howto-ubuntu-debian-squeeze-dhcp-server-setup-tutorial/</a><br>
<br>
Stop dhcpd if it is running:<br>
<br>
service isc-dhcp-server stop<br>
<br>
Edit /etc/default/isc-dhcp-server and change the line:<br>
INTERFACES=""<br>
to:<br>
INTERFACES="eth0"<br>
<br>
Do an "ifconfig -a" command, and find the HWaddr value for the eth0<br>
interface. Also find the IP address of your WiFi interface. You will<br>
need these values later.<br>
<br>
Edit /etc/dhcp/dhcpd.conf.<br>
<br>
Change the "options domain-name" line to your domain name if you have<br>
one. If not, I think you need to just comment out that line with a #<br>
in front. It is possible you may need to use your ISP's domain name.<br>
I have my own domain so I have always just used that.<br>
<br>
Change the "options domain-name-server" line to the DNS server<br>
addresses you use. If you run your own DNS servers like I do, then<br>
use their addresses. Otherwise, find out the DNS servers that your<br>
ISP provides and use their addresses. They will likely be stored in<br>
your Internet router somewhere, and your ISP can tell you if they do<br>
not have them listed on a web page. You can easily find out the<br>
primary address by just doing a command like:<br>
<br>
nslookup <a href="http://easynews.com" target="_blank">easynews.com</a><br>
<br>
The address in the "Server:" line of the response is the primary DNS<br>
server you have configured. There will usually be at least two DNS<br>
servers though, so it is best to have both listed if possible.<br>
<br>
Note that the "options domain-name-server" line is not necessary for<br>
your HDHomerun as it does not do DNS lookups, so you could just<br>
comment out that line too. But if you ever connect anything else to<br>
eth0 it would be good to have it configured so things work properly.<br>
<br>
Uncomment the "#authoritative;" line.<br>
<br>
Add the following host and subnet declarations to dhcp.conf:<br>
<br>
host <name of your MythTV PC with -eth0 on the end> {<br>
hardware ethernet <your eth0 HWaddr>;<br>
fixed-address 10.99.0.1;<br>
}<br>
<br>
subnet 10.99.0.0 netmask 255.255.255.0 {<br>
range 10.99.0.50 10.99.0.250;<br>
option subnet-mask 255.255.255.0;<br>
option broadcast-address 10.99.0.255;<br>
option routers <your MythTV box WiFi ip address>;<br>
}<br>
<br>
Note that the "option routers" line above is optional as your<br>
HDHomerun will not need it. If it is assigned by a DHCP server<br>
somewhere, it may change and you should not put the "options routers"<br>
line until you have configured it also with a static IP address.<br>
<br>
Run:<br>
<br>
dhcpd -t<br>
<br>
to check for any syntax errors in dhcpd.conf.<br>
<br>
Now start the DHCP server:<br>
<br>
service isc-dhcp-server start<br>
<br>
(I think "start isc-dhcp-server" also works).<br>
<br>
Wait for a few seconds for the HDHomerun to get an address and try to<br>
talk to it. It should now have an address in the range specified in<br>
the subnet declaration, likely 10.99.0.50. You may need to disconnect<br>
it and reconnect it to force it to ask for a DHCP address again. Or<br>
even cycle its power.<br></blockquote><div><br>I haven't read all this thread, and I am simply replying to the last message, but I don't think the HDHR does static IP. It is link-local or dhcp. Hope that clears u a few misconceptions. <br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br> </div></div></blockquote></div></blockquote><div>Any need to include ' ddns-update-style none; ' or set lease time or maximum lease time?<br></div><div><br></div><div>Paul</div></body></html>