Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] static ip
Date: Sun, 09 Aug 2009 15:08:01
Message-Id: 002DB15C-CD86-498D-B409-9D7EEA9F2220@stellar.eclipse.co.uk
In Reply to: [gentoo-user] static ip by Andrey Vul
1 On 9 Aug 2009, at 08:01, Andrey Vul wrote:
2
3 > I somehow killed the dhcp in my openwrt router and failsafe mode
4 > requires a static IP address. Stopping net.eth0 and then running
5 > '#ifconfig eth0 up; ifconfig eth0 192.168.1.2' resulted with a 'No
6 > route to host' error when telnetting to 192.168.1.1 .
7
8 Better to edit /etc/conf.d/net for static IP, then restart /etc/init.d/
9 net.eth0
10
11 See /etc/conf.d/net.example
12
13 Probably something like:
14
15 config_eth0=( "192.168.1.44 netmask 255.255.255.0 broadcast
16 192.168.1.255" )
17 routes_eth0=( "default via 192.168.1.1" )
18
19 Stroller.

Replies

Subject Author
Re: [gentoo-user] static ip daid kahl <daidxor@×××××.com>