From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.2.5 Message-ID: <491C8F9A.10509@rambler.ru> Date: Thu, 13 Nov 2008 23:35:38 +0300 From: "Kharitonov A. Dmitry" User-Agent: Thunderbird 2.0.0.17 (X11/20080929) MIME-Version: 1.0 To: ALT Linux Community general discussions References: <4919C946.3070602@rambler.ru> <491A0CBF.4030208@rambler.ru> <491AE794.3020703@rambler.ru> <491B37D8.9030904@rambler.ru> <491BA06A.4030709@rambler.ru> In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Comm] =?koi8-r?b?QURTTCDXIEFMRDQuMQ==?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 20:35:15 -0000 Archived-At: List-Archive: List-Post: Владимир Головин пишет: > 13 ноября 2008 г. 6:35 пользователь Kharitonov A. Dmitry > написал: > >> Владимир Головин пишет: >> >>> 12 ноября 2008 г. 23:08 пользователь Kharitonov A. Dmitry >>> написал: >>> >>> >>>>> + for pick in '$GOOD_MODULE_LIST' >>>>> + '[' 8139too = 8139too ']' >>>>> + return 0 >>>>> + check_eth_link eth0 >>>>> + local TARGET=eth0 >>>>> + local LMAX=5 >>>>> + '[' 5 -ge 0 -a 5 -le 300 ']' >>>>> + '[' -x /usr/sbin/ifplugstatus ']' >>>>> + local i=0 result >>>>> + true >>>>> + /usr/sbin/ifplugstatus -q eth0 >>>>> + result=2 >>>>> + '[' 2 = 2 ']' >>>>> + return 0 >>>>> + print_progress >>>>> + is_yes '' >>>>> + case "$1" in >>>>> + return 1 >>>>> + return 0 >>>>> ++ dhcp_cmdline >>>>> ++ local H T >>>>> ++ case `basename $DHCP_CLIENT` in >>>>> +++ basename /sbin/dhcpcd >>>>> ++ '[' -n localhost ']' >>>>> ++ case "$DHCP_HOSTNAME" in >>>>> ++ '[' -n localhost.localdomain -a localhost.localdomain '!=' >>>>> localhost -a localhost.localdomain '!=' localhost.localdomain ']' >>>>> ++ T='-t 30' >>>>> ++ echo ' -d -t 30 eth0' >>>>> + DHCP_CMDLINE=' -d -t 30 eth0' >>>>> + /sbin/dhcpcd -d -t 30 eth0 >>>>> Error, eth0: netlink: No such process >>>>> >>>>> >>>>> >>>> # echo '#!/bin/bash' | cat - /etc/net/scripts/config-ipv4 > /tmp/1 >>>> # cat /tmp/1 > /etc/ne/scripts/config-ipv4 >>>> # ifdown eth0 >>>> # ifup eth0 >>>> # hostname >>>> # /sbin/dhcpcd -d -t 30 eth0 >>>> # cat /var/lib/dhcpcd/dhcpcd-eth0.info >>>> >>>> >>> [root@localhost scripts]# echo '#!/bin/bash' | cat - >>> /etc/net/scripts/config-ipv4 > /tmp/1 >>> [root@localhost scripts]# cat /tmp/1 > /etc/net/scripts/config-ipv4 >>> [root@localhost scripts]# ifdown eth0 >>> [root@localhost scripts]# ifup eth0 >>> Error, eth0: netlink: No such process >>> [root@localhost scripts]# hostname >>> localhost.localdomain >>> [root@localhost scripts]# /sbin/dhcpcd -d -t 30 eth0 >>> Error, eth0: dhcpcd already running (/var/run/dhcpcd-eth0.pid) >>> [root@localhost scripts]# cat /var/lib/dhcpcd/dhcpcd-eth0.info >>> IPADDR='92.101.166.100' >>> NETMASK='255.255.255.0' >>> BROADCAST='92.101.166.255' >>> ROUTES='0.0.0.0,0.0.0.0,78.36.160.1' >>> DNSSERVERS='78.36.171.200 212.48.193.36' >>> DHCPSID='192.168.1.1' >>> DHCPSNAME='' >>> LEASETIME='30' >>> RENEWALTIME='15' >>> REBINDTIME='26' >>> INTERFACE='eth0' >>> CLASSID='dhcpcd 3.0.17' >>> CLIENTID='00:14:d1:31:73:54' >>> DHCPCHADDR='00:14:d1:31:73:54' >>> [root@localhost scripts]# ping 192.168.1.1 >>> connect: Network is unreachable >>> >>> >> # ifdown eth0 >> # /sbin/dhcpcd -d -t 30 eth0 >> В cat /etc/net/options.d/00-default из списка "GOOD_MODULE_LIST=" уберите >> "8139too" >> Должно помочь >> # ifdown eth0 >> # rm -f /var/lib/dhcpcd/dhcpcd-eth0.info >> # ifup eth0 >> # cat /var/lib/dhcpcd/dhcpcd-eth0.info >> uname -a >> >> > [root@localhost etc]# ifdown eth0 > [root@localhost etc]# /sbin/dhcpcd -d -t 30 eth0 > Info, eth0: dhcpcd 3.0.17 starting > Info, eth0: hardware address = 00:14:d1:31:73:54 > Info, eth0: broadcasting for a lease > Debug, eth0: sending DHCP_DISCOVER with xid 0x6c305095 > Debug, eth0: waiting on select for 30 seconds > Debug, eth0: got a packet with xid 0x6c305095 > Info, eth0: offered 92.101.189.55 from 192.168.1.1 > Debug, eth0: sending DHCP_REQUEST with xid 0x6c305095 > Debug, eth0: waiting on select for 30 seconds > Debug, eth0: got a packet with xid 0x6c305095 > Info, eth0: leased 92.101.189.55 for 30 seconds > Info, eth0: no renewal time supplied, assuming 15 seconds > Info, eth0: no rebind time supplied, assuming 26 seconds > Info, eth0: adding IP address 92.101.189.55/24 > Info, eth0: adding default route via 78.36.160.1 metric 0 > Error, eth0: netlink: No such process > Debug, eth0: writing /etc/resolv.conf > Debug, eth0: writing /var/lib/dhcpcd/dhcpcd-eth0.info > Debug, eth0: exec "/etc/dhcpcd.sh /var/lib/dhcpcd/dhcpcd-eth0.info new" > Debug, eth0: forking to background > [root@localhost etc]# rm -f /var/lib/dhcpcd/dhcpcd-eth0.info > [root@localhost etc]# ifup eth0 > [root@localhost etc]# cat /var/lib/dhcpcd/dhcpcd-eth0.info > IPADDR='92.101.189.55' > NETMASK='255.255.255.0' > BROADCAST='92.101.189.255' > ROUTES='0.0.0.0,0.0.0.0,78.36.160.1' > DNSSERVERS='78.36.171.200 212.48.193.36' > DHCPSID='192.168.1.1' > DHCPSNAME='' > LEASETIME='30' > RENEWALTIME='15' > REBINDTIME='26' > INTERFACE='eth0' > CLASSID='dhcpcd 3.0.17' > CLIENTID='00:14:d1:31:73:54' > DHCPCHADDR='00:14:d1:31:73:54' > [root@localhost etc]# uname -a > Linux localhost.localdomain 2.6.25-std-def-alt8.M41.1 #1 SMP Thu Sep > 11 01:14:41 MSD 2008 i686 GNU/Linux > [root@localhost etc]# ping 192.168.1.1 > connect: Network is unreachable > Владимир, может вам объяснить как работает сеть и тогда вам станет понятно, где у вас ошибка и как её исправить?