* [gentoo-user] static ip
@ 2009-08-09 7:01 Andrey Vul
2009-08-09 8:04 ` Mick
2009-08-09 15:07 ` Stroller
0 siblings, 2 replies; 4+ messages in thread
From: Andrey Vul @ 2009-08-09 7:01 UTC (permalink / raw
To: gentoo-user
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 .
--
Andrey Vul
andrey dot vul at gmail dot com
andrey dot vul at utoronto dot ca
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
Google is your friend.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] static ip
2009-08-09 7:01 [gentoo-user] static ip Andrey Vul
@ 2009-08-09 8:04 ` Mick
2009-08-09 15:07 ` Stroller
1 sibling, 0 replies; 4+ messages in thread
From: Mick @ 2009-08-09 8:04 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 603 bytes --]
On Sunday 09 August 2009, 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 .
I think the No route to host means that your router interface is not up for
some reason.
Do you get the same problem if you run /etc/init.d/net.eth0 start and then you
run ifconfig eth0 192.168.1.2
Otherwise also run: route add default gw 192.168.1.1
HTH.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] static ip
2009-08-09 7:01 [gentoo-user] static ip Andrey Vul
2009-08-09 8:04 ` Mick
@ 2009-08-09 15:07 ` Stroller
2009-08-13 1:45 ` daid kahl
1 sibling, 1 reply; 4+ messages in thread
From: Stroller @ 2009-08-09 15:07 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] static ip
2009-08-09 15:07 ` Stroller
@ 2009-08-13 1:45 ` daid kahl
0 siblings, 0 replies; 4+ messages in thread
From: daid kahl @ 2009-08-13 1:45 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 976 bytes --]
2009/8/10 Stroller <stroller@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
[-- Attachment #2: Type: text/html, Size: 1524 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-13 1:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-09 7:01 [gentoo-user] static ip Andrey Vul
2009-08-09 8:04 ` Mick
2009-08-09 15:07 ` Stroller
2009-08-13 1:45 ` daid kahl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox