2009/8/10 Stroller <strol...@stellar.eclipse.co.uk>

>
> On 9 Aug 2009, at 08:01, Andrey Vul wrote:
>
>  I somehow killed the dhcp in my openwrt router and failsafe mode
>> requires a static IP address. Stopping net.eth0 and then running
>> '#ifconfig eth0 up; ifconfig eth0 192.168.1.2' resulted with a 'No
>> route to host' error when telnetting to 192.168.1.1 .
>>
>
> Better to edit /etc/conf.d/net for static IP, then restart
> /etc/init.d/net.eth0
>
> See /etc/conf.d/net.example
>
> Probably something like:
>
> config_eth0=( "192.168.1.44 netmask 255.255.255.0 broadcast 192.168.1.255"
> )
> routes_eth0=( "default via 192.168.1.1" )
>
> Stroller.
>
>
>
Check your /etc/resolv.conf as well.  Make sure any automated networking
daemons are shut off, because some of them like to over-write this, which is
bad if they aren't working correctly with the network for some reason.  This
is often the difference between unknown route to host and a functional
network!

~daid

Reply via email to