ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Владимир Головин" <tarnoga@gmail.com>
To: "ALT Linux Community general discussions" <community@lists.altlinux.org>
Subject: Re: [Comm] ADSL в ALD4.1
Date: Thu, 13 Nov 2008 13:42:08 +0300
Message-ID: <bd6761710811130242s47d7b5bfo6bfbf4392f034f94@mail.gmail.com> (raw)
In-Reply-To: <491BA06A.4030709@rambler.ru>

13 ноября 2008 г. 6:35 пользователь Kharitonov A. Dmitry
<kharpost@rambler.ru> написал:
> Владимир Головин пишет:
>>
>> 12 ноября 2008 г. 23:08 пользователь Kharitonov A. Dmitry
>> <kharpost@rambler.ru> написал:
>>
>>>>
>>>> + 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

--
Владимир Головин
tarnoga@gmail.com

  reply	other threads:[~2008-11-13 10:42 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-08 14:55 ` Kharitonov A. Dmitry
2008-11-08 14:57 ` Kharitonov A. Dmitry
2008-11-08 16:14     ` Kharitonov A. Dmitry
2008-11-08 17:20         ` Kharitonov A. Dmitry
2008-11-08 18:36           ` Владимир Головин
2008-11-08 19:15             ` Kharitonov A. Dmitry
2008-11-08 20:04               ` Владимир Головин
2008-11-08 20:23                 ` Kharitonov A. Dmitry
2008-11-10  9:42                   ` Владимир Головин
2008-11-11 15:28                     ` Владимир Головин
2008-11-11 16:51                       ` Andrii Dobrovol`s`kii
2008-11-11 18:04                       ` Kharitonov A. Dmitry
2008-11-11 20:34                         ` Владимир Головин
2008-11-11 22:52                           ` Kharitonov A. Dmitry
2008-11-12 10:16                             ` Владимир Головин
2008-11-12 14:26                               ` Kharitonov A. Dmitry
2008-11-12 16:26                                 ` Владимир Головин
2008-11-12 20:08                                   ` Kharitonov A. Dmitry
2008-11-12 21:05                                     ` Владимир Головин
2008-11-13  3:35                                       ` Kharitonov A. Dmitry
2008-11-13 10:42                                         ` Владимир Головин [this message]
2008-11-13 12:16                                           ` Kharitonov A. Dmitry
2008-11-13 20:35                                           ` Kharitonov A. Dmitry
2008-11-13 21:54                                             ` Владимир Головин
2008-11-14 15:05                                               ` Kharitonov A. Dmitry
2008-11-15 12:53                                                 ` Владимир Головин
2008-11-16 14:16                                                   ` Kharitonov A. Dmitry
2008-11-08 16:21     ` Andriy Dobrovol`s`kii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bd6761710811130242s47d7b5bfo6bfbf4392f034f94@mail.gmail.com \
    --to=tarnoga@gmail.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git