Hi,<br><br>I just selected a IP that was outside the DHCP range of my router.<br><br>Best regards,<br>Jordi.<br><br><div class="gmail_quote">2010/2/10 Rainer Stratmann <span dir="ltr">&lt;<a href="mailto:RainerStratmann@t-online.de">RainerStratmann@t-online.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
how to set up a static IP and if there is a DHCP router overwrite the IP.<br>
Is that possible?<br>
best regards, Rainer<br>
<br>
Am Wednesday 10 February 2010 22:20:07 schrieb Jordi Puigsegur:<br>
<div><div></div><div class="h5">&gt; Hi all,<br>
&gt;<br>
&gt; Finally I got it working with a static IP. Here is a recollection of it<br>
&gt; just in case it might help someone (I know it&#39;s basic stuff...).<br>
&gt;<br>
&gt; You assumed right: eth0 gets the IP from DHCP. I use a voyage linux 0.6.2<br>
&gt; out of the box. And this is the output at boot time (through serial port):<br>
&gt;<br>
&gt; Setting up networking....<br>
&gt; Configuring network interfaces...[   18.658114] eth0: link up, 100Mbps,<br>
&gt; full-du1<br>
&gt; Operation failed.<br>
&gt; Failed to bring up eth0.<br>
&gt; done.<br>
&gt; Starting portmap daemon....<br>
&gt; INIT: Entering runlevel: 2<br>
&gt;<br>
&gt; And this is the output of ifdown / ifup<br>
&gt;<br>
&gt; voyage:~# ifdown eth0<br>
&gt; ifdown: interface eth0 not configured<br>
&gt; voyage:~# ifup eth0<br>
&gt; [  121.910943] via-rhine: Reset not complete yet. Trying harder.<br>
&gt; [  121.912129] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1<br>
&gt; Operation failed.<br>
&gt; Failed to bring up eth0.<br>
&gt;<br>
&gt; Actually, at some point the voyage box appears at the router&#39;s DHCP and<br>
&gt; then it disappears ... so I though it could have to do with DHCP<br>
&gt; configuration and tried a static IP (editting /etc/network/interfaces):<br>
&gt;<br>
&gt; #auto eth0<br>
&gt; #iface eth0 inet dhcp<br>
&gt;<br>
&gt; auto eth0<br>
&gt; iface eth0 inet static<br>
&gt;         address 192.168.1.25<br>
&gt;         netmask 255.255.255.0<br>
&gt;         broadcast 192.168.1.255<br>
&gt;         gateway 192.168.1.1<br>
&gt;<br>
&gt; Then it works, but DNS doesn&#39;t:<br>
&gt;<br>
&gt; voyage:~# ping <a href="http://linux.voyage.hk" target="_blank">linux.voyage.hk</a><br>
&gt; ping: unknown host<br>
&gt;<br>
&gt; So I edit /etc/resolv.conf and add two nameserver entries, the sames that<br>
&gt; would be used by DHCP. Now everything works.<br>
&gt;<br>
&gt; Don&#39;t know if this is going to help someone or if there is a better way to<br>
&gt; set things up. I was probably going to configure anyway a fixed IP so I<br>
&gt; don&#39;t care about DHCP not working.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Jordi.<br>
&gt;<br>
&gt; 2010/2/10 Kim-man &#39;Punky&#39; TSE &lt;<a href="mailto:punkytse@punknix.com">punkytse@punknix.com</a>&gt;<br>
&gt;<br>
&gt; &gt; Hi Jordi,<br>
&gt; &gt;<br>
&gt; &gt; I think many of the users didn&#39;t encounter the problem you have.  Try to<br>
&gt; &gt; do &quot;ifdown eth0&quot; and &quot;ifup eth0&quot; to see if it can be restart.  Of course,<br>
&gt; &gt; I assume eth0 get the IP from DHCP.<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt; Punky<br>
&gt; &gt;<br>
&gt; &gt; Jordi Puigsegur wrote:<br>
&gt; &gt;&gt; Hi all,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I just tryied Voyage linux 0.6.2 on a PC Engines ALIX 3D2 board.<br>
&gt; &gt;&gt; Everything works, except network. eth0 fails to start. Voyage 0.5.2<br>
&gt; &gt;&gt; works ok, but I&#39;d rather have the more up to date lenny packages!<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Any idea where to look at or know issue ?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thanks in advance,<br>
&gt; &gt;&gt; Jordi.<br>
&gt; &gt;&gt; ------------------------------------------------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; Voyage-linux mailing list<br>
&gt; &gt;&gt; <a href="mailto:Voyage-linux@list.voyage.hk">Voyage-linux@list.voyage.hk</a><br>
&gt; &gt;&gt; <a href="http://list.voyage.hk/mailman/listinfo/voyage-linux" target="_blank">http://list.voyage.hk/mailman/listinfo/voyage-linux</a><br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Regards,<br>
&gt; &gt; Punky<br>
&gt; &gt;<br>
&gt; &gt; Voyage Solutions (<a href="http://solution.voyage.hk" target="_blank">http://solution.voyage.hk</a>)<br>
&gt; &gt; * Embedded Solutions and Systems<br>
&gt; &gt;  - Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX<br>
&gt; &gt;  - Network Engineering, Development Platform and Consultation<br>
<br>
<br>
<br>
_______________________________________________<br>
Voyage-linux mailing list<br>
<a href="mailto:Voyage-linux@list.voyage.hk">Voyage-linux@list.voyage.hk</a><br>
<a href="http://list.voyage.hk/mailman/listinfo/voyage-linux" target="_blank">http://list.voyage.hk/mailman/listinfo/voyage-linux</a><br>
</div></div></blockquote></div><br>