Portál AbcLinuxu, 9. května 2025 06:05
# /etc/init.d/net.eth0 start
* Caching service dependencies ...
[ ok ]
* Starting eth0
* Bringing up eth0
* dhcp
* Running dhcpcd ...
Info, eth0: dhcpcd 3.0.1 starting
Info, eth0: ethernet address = 0:11:2f:25:46:4a
Info, eth0: broadcasting for a lease
Debug, eth0: Sending DHCP_DISCOVER with xid 31563409
Debug, eth0: waiting on select for 10 seconds
Debug, eth0: Sending DHCP_DISCOVER with xid 31563409
Debug, eth0: Sending DHCP_DISCOVER with xid 31563409
Debug, eth0: Sending DHCP_DISCOVER with xid 31563409
Debug, eth0: Sending DHCP_DISCOVER with xid 31563409
Error, eth0: timed out
Info, eth0: exiting
Konfig site
# cat /etc/conf.d/net
# /etc/conf.d/net:
# $Header:/home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
config_eth0=("dhcp")
dhcpcd_eth0="-H -N -t 10 -d"
#dns_servers_eth0="127.0.0.1 192.168.0.1 80.83.47.11 80.83.47.157 80.83.47.10"
#dns_search_eth0="abo.net2000.ch"
Verze programu
# equery l dhcpcd
[ Searching for package 'dhcpcd' in all categories among: ]
* installed packages
[I--] [ ~] net-misc/dhcpcd-3.0.1 (0)
# equery l baselayout
[ Searching for package 'baselayout' in all categories among: ]
* installed packages
[I--] [M ] sys-apps/baselayout-1.12.5 (0)
# uname -a
Linux mahdi 2.6.16-gentoo-r12 #2 SMP PREEMPT Fri Dec 8 18:06:47 CET 2006 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz GNU/Linux
Drive s dhcpcd 2.0.8. jsem mel tento radek
dhcpcd_eth0="-H -N -t 10 -d -R"
to zpusobilo, ze se neprepisoval resolv.conf a sit me jela, ale bez -R to taky nejelo. Problem nastal nekdy pri prechodu na novejsi baselayout.
Predem diky za kazej napad.
PS - vetsi timeout nepomuze.
mahdi
config_eth0=("192.168.0.3 netmask 255.255.255.0 brd 192.168.0.255")
routes_eth0=("default gw 192.168.0.1")
Starting eth0
Bringing up eth0
dhcpcd
Running dhcpcd ...
eth0 received address 192.168.0.2/24
Starting dnsmasq ...
Mounting network filesystems ...
samba -> start: smbd ...
samba -> start: nmbd ...
ale resolv.conf je prazdnej, nicmene se vytvori korektni obsah v /etc/resolvconf/run/interfaces/eth0
# Generated by dhcpcd for interface eth0
search abo.net2000.ch
nameserver 80.83.47.11
nameserver 80.83.47.157
nameserver 80.83.47.10
a kdyz ho zkopiruju/slinkuju do /etc/resolv.conf tak pak jede i name resolution.
Tento problem jsem mel uz kdysi, a nevim jak ho vyresit. S 2.0.5. je to uplne stejne.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.