* Re: [Comm] ADSL в ALD4.1
@ 2008-11-08 14:55 ` Kharitonov A. Dmitry
2008-11-08 14:57 ` Kharitonov A. Dmitry
1 sibling, 0 replies; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-08 14:55 UTC (permalink / raw)
To: ALT Linux Community general discussions
Владимир Головин пишет:
> Здравствуйте!
>
> Такая проблема:
> Поставил ALD4.1 с нуля. Управление сетью выбрал etcnet, с dhcp. В
> результате сеть не заработала, модем DSL-2300U не пингуется (network
> unreachable).
> Выставляю статический адрес - на модем заходит. В режиме dhcp команда
> service network restart выдает:
> [root@localhost ~]# service network restart
> Computing interface groups: .. 2 interfaces found
> Processing /etc/net/vlantab: empty.
> Stopping group 1/realphys (1 interfaces)
> Stopping eth0: RTNETLINK answers: No such process
> ...OK
> Stopping group 0/virtual (1 interfaces)
> Stopping lo: .OK
> Computing interface groups: .. 2 interfaces found
> Starting group 0/virtual (1 interfaces)
> Starting lo: ....OK
> Starting group 1/realphys (1 interfaces)
> Starting eth0: ....Error, eth0: netlink: No such process
> .RTNETLINK answers: No such process
> ..OK
> Processing /etc/net/vlantab: empty.
>
> В ALD4.0 на той же машине работает с таким eth0/options:
> TYPE=eth
> BOOTPROTO=dhcp
> DHCP_ARGS=" -H"
>
> Добавил тот же параметр "-Н", стало так:
> [root@localhost ~]# [root@localhost eth0]# service network restart
> Computing interface groups: .. 2 interfaces found
> Processing /etc/net/vlantab: empty.
> Stopping group 1/realphys (1 interfaces)
> Stopping eth0: RTNETLINK answers: No such process
> ...OK
> Stopping group 0/virtual (1 interfaces)
> Stopping lo: .OK
> Computing interface groups: .. 2 interfaces found
> Starting group 0/virtual (1 interfaces)
> Starting lo: ....OK
> Starting group 1/realphys (1 interfaces)
> Starting eth0: ....Error, eth0: netlink: No such process
> Error, eth0: Failed to lookup hostname via DNS: Temporary failure in
> name resolution
> .RTNETLINK answers: No such process
> ..OK
> Processing /etc/net/vlantab: empty.
>
> Подскажите, если не сложно, что я делаю неправильно? Альтом пользуюсь
> лет шесть, но знаний не хватает, так как проблемы возникают крайне
> редко. :(
lspci ?
ip link ?
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-08 14:55 ` [Comm] ADSL в ALD4.1 Kharitonov A. Dmitry
@ 2008-11-08 14:57 ` Kharitonov A. Dmitry
1 sibling, 1 reply; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-08 14:57 UTC (permalink / raw)
To: ALT Linux Community general discussions
ip a ?
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
@ 2008-11-08 16:14 ` Kharitonov A. Dmitry
2008-11-08 16:21 ` Andriy Dobrovol`s`kii
1 sibling, 1 reply; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-08 16:14 UTC (permalink / raw)
To: ALT Linux Community general discussions
Владимир Головин пишет:
>
>
> 8 ноября 2008 г. 17:57 пользователь Kharitonov A. Dmitry
> <kharpost@rambler.ru <mailto:kharpost@rambler.ru>> написал:
>
> ip a ?
>
>
> [root@localhost ~]# ip a
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet 127.0.0.1/8 <http://127.0.0.1/8> scope host lo
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> qlen 1000
> link/ether 00:14:d1:31:73:54 brd ff:ff:ff:ff:ff:ff
> inet 92.101.165.57/24 <http://92.101.165.57/24> brd 92.101.165.255
> <http://92.101.165.255> scope global eth0
Очень странный адрес. В каком режиме у вас модем? мост? DMZ?
ip r ?
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-08 16:14 ` Kharitonov A. Dmitry
@ 2008-11-08 16:21 ` Andriy Dobrovol`s`kii
1 sibling, 0 replies; 28+ messages in thread
From: Andriy Dobrovol`s`kii @ 2008-11-08 16:21 UTC (permalink / raw)
To: ALT Linux Community general discussions
2008/11/8 Владимир Головин <tarnoga@:
>
> 8 ноября 2008 г. 17:57 пользователь Kharitonov A. Dmitry
> <kharpost@> написал:
>>
>> ip a ?
>
>
> [root@localhost ~]# ip a
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet 127.0.0.1/8 scope host lo
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen
> 1000
> link/ether 00:14:d1:31:73:54 brd ff:ff:ff:ff:ff:ff
> inet 92.101.165.57/24 brd 92.101.165.255 scope global eth0
>
Это говорит, что адрес оно назначает. попробуйте удалить этот адрес и
потом напустить на интерфейс dhcpd.
> [root@localhost ~]# lspci
Тут лучше lspci -k и затем lsmod и поискать рекомендованный модуль в
числе загруженных. Можно ещё сравнить список модулей когда работает и
когда нет.
--
Regards,
Andrii Dobrovol`s`kyj
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
@ 2008-11-08 17:20 ` Kharitonov A. Dmitry
2008-11-08 18:36 ` Владимир Головин
0 siblings, 1 reply; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-08 17:20 UTC (permalink / raw)
To: ALT Linux Community general discussions
Владимир Головин пишет:
>
>
> 8 ноября 2008 г. 19:14 пользователь Kharitonov A. Dmitry
> <kharpost@rambler.ru <mailto:kharpost@rambler.ru>> написал:
>
> Владимир Головин пишет:
>
>
>
> 8 ноября 2008 г. 17:57 пользователь Kharitonov A. Dmitry
> <kharpost@rambler.ru <mailto:kharpost@rambler.ru>
> <mailto:kharpost@rambler.ru <mailto:kharpost@rambler.ru>>>
> написал:
>
>
> ip a ?
>
> [root@localhost ~]# ip a
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet 127.0.0.1/8 <http://127.0.0.1/8> <http://127.0.0.1/8>
> scope host lo
>
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
> pfifo_fast qlen 1000
> link/ether 00:14:d1:31:73:54 brd ff:ff:ff:ff:ff:ff
> inet 92.101.165.57/24 <http://92.101.165.57/24>
> <http://92.101.165.57/24> brd 92.101.165.255
> <http://92.101.165.255> <http://92.101.165.255> scope global eth0
>
> Очень странный адрес. В каком режиме у вас модем? мост? DMZ?
>
> ip r ?
>
> Модем в PPPoE. В ALD4.0, повторюсь все работает.
> [root@localhost ~]# ip r
> 92.101.165.0/24 <http://92.101.165.0/24> dev eth0 proto kernel scope
> link src 92.101.165.57 <http://92.101.165.57>
У вас нет шлюза по умолчанию. По этому и не работает.
ондолжен приходить по dhcp.
покажите все файлы /etc/net/ifaces/eth0/*
покажите настройки dhcp модема
Так же у вас конфликт с модулями
покажите lspci -k
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-08 17:20 ` Kharitonov A. Dmitry
@ 2008-11-08 18:36 ` Владимир Головин
2008-11-08 19:15 ` Kharitonov A. Dmitry
0 siblings, 1 reply; 28+ messages in thread
From: Владимир Головин @ 2008-11-08 18:36 UTC (permalink / raw)
To: ALT Linux Community general discussions
8 ноября 2008 г. 20:20 пользователь Kharitonov A. Dmitry
<kharpost@rambler.ru> написал:
>
> Владимир Головин пишет:
>>
>> [root@localhost ~]# ip r
>> 92.101.165.0/24 <http://92.101.165.0/24> dev eth0 proto kernel scope link src 92.101.165.57 <http://92.101.165.57>
>
> У вас нет шлюза по умолчанию. По этому и не работает.
> ондолжен приходить по dhcp.
> покажите все файлы /etc/net/ifaces/eth0/*
> покажите настройки dhcp модема
> Так же у вас конфликт с модулями
> покажите lspci -k
[root@localhost ifaces]# lspci -k
00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP]
Host Bridge (rev 80)
Kernel driver in use: agpgart-via
Kernel modules: via-agp
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
Kernel modules: shpchp
00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 10)
Kernel driver in use: 8139too
Kernel modules: 8139cp, 8139too
00:0d.0 Multimedia audio controller: ESS Technology ES1969 Solo-1
Audiodrive (rev 02)
Kernel driver in use: ESS ES1938 (Solo-1)
Kernel modules: snd-es1938
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 80)
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 80)
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 80)
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
Kernel driver in use: ehci_hcd
Kernel modules: ehci-hcd
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
Kernel modules: via-ircc, i2c-viapro
00:11.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
Kernel driver in use: VIA_IDE
Kernel modules: via82cxxx, pata_via
01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX
5200] (rev a1)
Kernel driver in use: nvidia
Kernel modules: nvidia, nvidiafb
В выводе lsmod 8139cp и 8139too есть
В eth0:
option:
TYPE=eth
DISABLED=no
BOOTPROTO=dhcp
DHCP_ARGS="-H"
NM_CONTROLLED=no
ipv4adress:
192.168.1.2/24
ipv4route:
default via 192.168.1.0
(Последние два - то, что было в ручную прописано)
А какие настройки модема посмотреть? И веб-интерфейс и telnet там
есть. Вот на вкладке Route Info:
Destination Gateway Subnet Mask Flags Metric
Service Interface
78.36.160.1 * 255.255.255.255 UH
1 pppoe_8_35_1 ppp_8_35_1
92.101.165.57 * 255.255.255.255 UH 0
br0
192.168.1.0 * 255.255.255.0 U
0 br0
default 78.36.160.1 0.0.0.0 UG
0 pppoe_8_35_1 ppp_8_35_1
--
Владимир Головин
tarnoga@gmail.com
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-08 18:36 ` Владимир Головин
@ 2008-11-08 19:15 ` Kharitonov A. Dmitry
2008-11-08 20:04 ` Владимир Головин
0 siblings, 1 reply; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-08 19:15 UTC (permalink / raw)
To: ALT Linux Community general discussions
Владимир Головин пишет:
> 8 ноября 2008 г. 20:20 пользователь Kharitonov A. Dmitry
> <kharpost@rambler.ru> написал:
>
>> Владимир Головин пишет:
>>
>>> [root@localhost ~]# ip r
>>> 92.101.165.0/24 <http://92.101.165.0/24> dev eth0 proto kernel scope link src 92.101.165.57 <http://92.101.165.57>
>>>
>> У вас нет шлюза по умолчанию. По этому и не работает.
>> ондолжен приходить по dhcp.
>> покажите все файлы /etc/net/ifaces/eth0/*
>> покажите настройки dhcp модема
>> Так же у вас конфликт с модулями
>> покажите lspci -k
>>
>
> [root@localhost ifaces]# lspci -k
>
---8<---8<---
> 00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
> RTL-8139/8139C/8139C+ (rev 10)
> Kernel driver in use: 8139too
> Kernel modules: 8139cp, 8139too
>
---8<---8<---
> В выводе lsmod 8139cp и 8139too есть
>
> В eth0:
>
> option:
> TYPE=eth
> DISABLED=no
> BOOTPROTO=dhcp
>
DHCP_ARGS="-H" --- Оно вам точно надо? потенциально может давать трудно отслеживаемые глюки (закоментировать)
> NM_CONTROLLED=no
>
MODULE=8139too --- Добавить
> ipv4adress:
>
192.168.1.2/24 --- закоментировать
> ipv4route:
>
default via 192.168.1.0 --- закоментировать обязательно
После изменения настроек делаете
service network restart
update_chrooted all
> (Последние два - то, что было в ручную прописано)
>
> А какие настройки модема посмотреть? И веб-интерфейс и telnet там
> есть. Вот на вкладке Route Info:
>
У вас, похоже, модем настроен через _одно_ место.
Если вы хотите настроить dhcp на модеме, то вам необходимо на модеме
включить nat
Далее на модеме нужно нормально настроить dhcp.
Чтобы работал торрент и другие сервисы слушающие порт из интернета, на
модеме прописываете виртуальные серверы.
Я бы вам помог настроить, но на сайте д-линка эмулятор вашего модема
недоступен.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-08 19:15 ` Kharitonov A. Dmitry
@ 2008-11-08 20:04 ` Владимир Головин
2008-11-08 20:23 ` Kharitonov A. Dmitry
0 siblings, 1 reply; 28+ messages in thread
From: Владимир Головин @ 2008-11-08 20:04 UTC (permalink / raw)
To: ALT Linux Community general discussions
8 ноября 2008 г. 22:15 пользователь Kharitonov A. Dmitry
<kharpost@rambler.ru> написал:
>> В eth0:
>>
>> option:
>> TYPE=eth
>> DISABLED=no
>> BOOTPROTO=dhcp
>>
>
> DHCP_ARGS="-H" --- Оно вам точно надо? потенциально может давать трудно
> отслеживаемые глюки (закоментировать)
>
>> NM_CONTROLLED=no
>>
>
> MODULE=8139too --- Добавить
>
>> ipv4adress:
>>
>
> 192.168.1.2/24 --- закоментировать
>>
>> ipv4route:
>>
>
> default via 192.168.1.0 --- закоментировать обязательно
>
>
> После изменения настроек делаете
> service network restart
> update_chrooted all
>>
>> (Последние два - то, что было в ручную прописано)
>>
>> А какие настройки модема посмотреть? И веб-интерфейс и telnet там
>> есть. Вот на вкладке Route Info:
>>
>
> У вас, похоже, модем настроен через _одно_ место.
> Если вы хотите настроить dhcp на модеме, то вам необходимо на модеме
> включить nat
> Далее на модеме нужно нормально настроить dhcp.
> Чтобы работал торрент и другие сервисы слушающие порт из интернета, на
> модеме прописываете виртуальные серверы.
>
> Я бы вам помог настроить, но на сайте д-линка эмулятор вашего модема
> недоступен.
К сожалению:
[root@localhost ~]# service network restart
Computing interface groups: .. 2 interfaces found
Processing /etc/net/vlantab: empty.
Stopping group 1/realphys (1 interfaces)
Stopping eth0: ...OK
Stopping group 0/virtual (1 interfaces)
Stopping lo: .OK
Computing interface groups: .. 2 interfaces found
Starting group 0/virtual (1 interfaces)
Starting lo: ....OK
Starting group 1/realphys (1 interfaces)
Starting eth0: ....Error, eth0: netlink: No such process
..OK
Processing /etc/net/vlantab: empty.
[root@localhost ~]# update_chrooted all
[root@localhost ~]# ping 192.168.1.1
connect: Network is unreachable
Как я помню, именно после таких настроек, как вы написали, и
update_chrooted all в ALD4.0 все заработало.
--
Владимир Головин
tarnoga@gmail.com
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-08 20:04 ` Владимир Головин
@ 2008-11-08 20:23 ` Kharitonov A. Dmitry
2008-11-10 9:42 ` Владимир Головин
0 siblings, 1 reply; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-08 20:23 UTC (permalink / raw)
To: ALT Linux Community general discussions
Владимир Головин пишет:
> 8 ноября 2008 г. 22:15 пользователь Kharitonov A. Dmitry
> <kharpost@rambler.ru> написал:
>
>
>>> В eth0:
>>>
>>> option:
>>> TYPE=eth
>>> DISABLED=no
>>> BOOTPROTO=dhcp
>>>
>>>
>> DHCP_ARGS="-H" --- Оно вам точно надо? потенциально может давать трудно
>> отслеживаемые глюки (закоментировать)
>>
>>
>>> NM_CONTROLLED=no
>>>
>>>
>> MODULE=8139too --- Добавить
>>
>>
>>> ipv4adress:
>>>
>>>
>> 192.168.1.2/24 --- закоментировать
>>
>>> ipv4route:
>>>
>>>
>> default via 192.168.1.0 --- закоментировать обязательно
>>
>>
>> После изменения настроек делаете
>> service network restart
>> update_chrooted all
>>
>>> (Последние два - то, что было в ручную прописано)
>>>
>>> А какие настройки модема посмотреть? И веб-интерфейс и telnet там
>>> есть. Вот на вкладке Route Info:
>>>
>>>
>> У вас, похоже, модем настроен через _одно_ место.
>> Если вы хотите настроить dhcp на модеме, то вам необходимо на модеме
>> включить nat
>> Далее на модеме нужно нормально настроить dhcp.
>> Чтобы работал торрент и другие сервисы слушающие порт из интернета, на
>> модеме прописываете виртуальные серверы.
>>
>> Я бы вам помог настроить, но на сайте д-линка эмулятор вашего модема
>> недоступен.
>>
>
> К сожалению:
> [root@localhost ~]# service network restart
> Computing interface groups: .. 2 interfaces found
> Processing /etc/net/vlantab: empty.
> Stopping group 1/realphys (1 interfaces)
> Stopping eth0: ...OK
> Stopping group 0/virtual (1 interfaces)
> Stopping lo: .OK
> Computing interface groups: .. 2 interfaces found
> Starting group 0/virtual (1 interfaces)
> Starting lo: ....OK
> Starting group 1/realphys (1 interfaces)
> Starting eth0: ....Error, eth0: netlink: No such process
> ..OK
> Processing /etc/net/vlantab: empty.
> [root@localhost ~]# update_chrooted all
> [root@localhost ~]# ping 192.168.1.1
> connect: Network is unreachable
>
> Как я помню, именно после таких настроек, как вы написали, и
> update_chrooted all в ALD4.0 все заработало.
>
ifdown eth0
rmmod -f 8139too
rmmod -f 8139cp
ifup eth0
dmesg | tail -40 ?
ifconfig -a ?
rpm -qa | grep dhcp ?
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-08 20:23 ` Kharitonov A. Dmitry
@ 2008-11-10 9:42 ` Владимир Головин
2008-11-11 15:28 ` Владимир Головин
0 siblings, 1 reply; 28+ messages in thread
From: Владимир Головин @ 2008-11-10 9:42 UTC (permalink / raw)
To: ALT Linux Community general discussions
8 ноября 2008 г. 23:23 пользователь Kharitonov A. Dmitry
<kharpost@rambler.ru> написал:
> ifdown eth0
> rmmod -f 8139too
> rmmod -f 8139cp
> ifup eth0
> dmesg | tail -40 ?
> ifconfig -a ?
> rpm -qa | grep dhcp ?
[root@localhost ~]# ifdown eth0
[root@localhost ~]# rmmod -f 8139too
[root@localhost ~]# rmmod -f 8139cp
[root@localhost ~]# ifup eth0
Error, eth0: netlink: No such process
[root@localhost ~]# dmesg | tail -40
---
ACPI: PCI interrupt for device 0000:00:0a.0 disabled
8139too Fast Ethernet driver 0.9.28
ACPI: PCI Interrupt 0000:00:0a.0[A] -> GSI 18 (level, low) -> IRQ 18
eth0: RealTek RTL8139 at 0xf8e1c000, 00:14:d1:31:73:54, IRQ 18
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[root@localhost ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:14:D1:31:73:54
inet addr:78.36.186.234 Bcast:78.36.186.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3540 (3.4 KiB) TX bytes:2124 (2.0 KiB)
Interrupt:18 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:184 (184.0 b) TX bytes:184 (184.0 b)
[root@localhost ~]# rpm -qa | grep dhcp
dhcpcd-3.0.17-alt4
--
Владимир Головин
tarnoga@gmail.com
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
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
0 siblings, 2 replies; 28+ messages in thread
From: Владимир Головин @ 2008-11-11 15:28 UTC (permalink / raw)
To: ALT Linux Community general discussions
10 ноября 2008 г. 12:42 пользователь Владимир Головин
<tarnoga@gmail.com> написал:
> 8 ноября 2008 г. 23:23 пользователь Kharitonov A. Dmitry
> <kharpost@rambler.ru> написал:
>
>> ifdown eth0
>> rmmod -f 8139too
>> rmmod -f 8139cp
>> ifup eth0
>> dmesg | tail -40 ?
>> ifconfig -a ?
>> rpm -qa | grep dhcp ?
>
>
> [root@localhost ~]# ifdown eth0
> [root@localhost ~]# rmmod -f 8139too
> [root@localhost ~]# rmmod -f 8139cp
> [root@localhost ~]# ifup eth0
> Error, eth0: netlink: No such process
> [root@localhost ~]# dmesg | tail -40
>
> ---
>
> ACPI: PCI interrupt for device 0000:00:0a.0 disabled
> 8139too Fast Ethernet driver 0.9.28
> ACPI: PCI Interrupt 0000:00:0a.0[A] -> GSI 18 (level, low) -> IRQ 18
> eth0: RealTek RTL8139 at 0xf8e1c000, 00:14:d1:31:73:54, IRQ 18
> eth0: Identified 8139 chip type 'RTL-8100B/8139D'
> eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
> [root@localhost ~]# ifconfig -a
> eth0 Link encap:Ethernet HWaddr 00:14:D1:31:73:54
> inet addr:78.36.186.234 Bcast:78.36.186.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:6 errors:0 dropped:0 overruns:0 frame:0
> TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:3540 (3.4 KiB) TX bytes:2124 (2.0 KiB)
> Interrupt:18 Base address:0xc000
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:4 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:184 (184.0 b) TX bytes:184 (184.0 b)
>
> [root@localhost ~]# rpm -qa | grep dhcp
> dhcpcd-3.0.17-alt4
>
> --
> Владимир Головин
> tarnoga@gmail.com
>
Вот в ALD 4.0:
[root@shpd-78-36-184-163 ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:14:D1:31:73:54
inet addr:78.36.184.163 Bcast:78.36.184.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10937 errors:0 dropped:0 overruns:0 frame:0
TX packets:16530 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2522451 (2.4 MiB) TX bytes:6612688 (6.3 MiB)
Interrupt:185 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:999 errors:0 dropped:0 overruns:0 frame:0
TX packets:999 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:50172 (48.9 KiB) TX bytes:50172 (48.9 KiB)
Подскажите, пожалуйста, куда еще посмотреть? Может быть попробовать
настроить модем в режиме моста?
--
Владимир Головин
tarnoga@gmail.com
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-11 15:28 ` Владимир Головин
@ 2008-11-11 16:51 ` Andrii Dobrovol`s`kii
2008-11-11 18:04 ` Kharitonov A. Dmitry
1 sibling, 0 replies; 28+ messages in thread
From: Andrii Dobrovol`s`kii @ 2008-11-11 16:51 UTC (permalink / raw)
To: ALT Linux Community general discussions
[-- Attachment #1: Type: text/plain, Size: 545 bytes --]
Владимир Головин пишет:
>
> Подскажите, пожалуйста, куда еще посмотреть? Может быть попробовать
> настроить модем в режиме моста?
>
Лучше четко написать, что Вас беспокоит.
--
Rgrds,
Andriy
*********************************************************************
email: dobr at iop dot kiev dot ua Kyiv, Ukraine
Phone: (380-44) 525-7824 Department of Gas Electronics
Fax: (380-44) 525-2329 Institute of Physics of NASU
*********************dobrATjabber.iop.kiev.ua************************
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
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 ` Владимир Головин
1 sibling, 1 reply; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-11 18:04 UTC (permalink / raw)
To: ALT Linux Community general discussions
Владимир Головин пишет:
> 10 ноября 2008 г. 12:42 пользователь Владимир Головин
> <tarnoga@gmail.com> написал:
>
>> 8 ноября 2008 г. 23:23 пользователь Kharitonov A. Dmitry
>> <kharpost@rambler.ru> написал:
>>
>>
>>
>>> ifdown eth0
>>> rmmod -f 8139too
>>> rmmod -f 8139cp
>>> ifup eth0
>>> dmesg | tail -40 ?
>>> ifconfig -a ?
>>> rpm -qa | grep dhcp ?
>>>
>>
>> [root@localhost ~]# ifdown eth0
>> [root@localhost ~]# rmmod -f 8139too
>> [root@localhost ~]# rmmod -f 8139cp
>> [root@localhost ~]# ifup eth0
>> Error, eth0: netlink: No such process
>>
Этой ошибки быть не должно. Возможно не поднимается dhcpс.
ls -l /var/run/*dhcp*
ifdown eth0
ls -l /var/run/*dhcp*
rmmod -f 8139too
rmmod -f 8139cp
bash -x ifup eth0 ?
ls -l /var/run/*dhcp*
dmesg | tail -40 ? без купюр
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-11 18:04 ` Kharitonov A. Dmitry
@ 2008-11-11 20:34 ` Владимир Головин
2008-11-11 22:52 ` Kharitonov A. Dmitry
0 siblings, 1 reply; 28+ messages in thread
From: Владимир Головин @ 2008-11-11 20:34 UTC (permalink / raw)
To: ALT Linux Community general discussions
11 ноября 2008 г. 21:04 пользователь Kharitonov A. Dmitry
<kharpost@rambler.ru> написал:
> Владимир Головин пишет:
>>> [root@localhost ~]# ifdown eth0
>>> [root@localhost ~]# rmmod -f 8139too
>>> [root@localhost ~]# rmmod -f 8139cp
>>> [root@localhost ~]# ifup eth0
>>> Error, eth0: netlink: No such process
>>>
>
> Этой ошибки быть не должно. Возможно не поднимается dhcpс.
>
> ls -l /var/run/*dhcp*
> ifdown eth0
> ls -l /var/run/*dhcp*
> rmmod -f 8139too
> rmmod -f 8139cp
> bash -x ifup eth0 ?
> ls -l /var/run/*dhcp*
> dmesg | tail -40 ? без купюр
>
[root@localhost ~]# ls -l /var/run/*dhcp*
-rw-r--r-- 1 root root 5 Nov 11 23:19 /var/run/dhcpcd-eth0.pid
[root@localhost ~]# ifdown eth0
[root@localhost ~]# ls -l /var/run/*dhcp*
ls: cannot access /var/run/*dhcp*: No such file or directory
[root@localhost ~]# rmmod -f 8139too
[root@localhost ~]# rmmod -f 8139cp
ERROR: Removing '8139cp': No such file or directory
[root@localhost ~]# bash -x ifup eth0
+ '[' -z eth0 ']'
+ export NAME=eth0
+ NAME=eth0
+ '[' -z '' ']'
+ export SCRIPTDIR=/etc/net/scripts
+ SCRIPTDIR=/etc/net/scripts
+ . /etc/net/scripts/functions
++ DENOISE='egrep ^[^#]'
++ DEFAULT_BONDMODE=0
++ IFACEDIR=/etc/net/ifaces
++ LOCALSCRIPTDIR=/etc/net
++ VARLIBDIR=/var/lib/etcnet
++ VLANTAB=/etc/net/vlantab
++ HOSTTAB=/etc/net/hosttab
++ IFTAB=/etc/net/iftab
++ PROFILE_FILE=/etc/net/profile
++ PROC_CMDLINE=/proc/cmdline
++ DEFAULT_IFPLUGSTATUS=/usr/sbin/ifplugstatus
++ DEFAULT_IFPLUGD=/usr/sbin/ifplugd
++ DEFAULT_IWPRIV=/sbin/iwpriv
++ DEFAULT_IWCONFIG=/sbin/iwconfig
++ DEFAULT_WPA_SUPPLICANT=/usr/sbin/wpa_supplicant
++ DEFAULT_WPA_CLI=/usr/sbin/wpa_cli
++ DEFAULT_PLIPCONFIG=/sbin/plipconfig
++ DEFAULT_VCONFIG=/usr/bin/vconfig
++ DEFAULT_IPSECADM=/usr/sbin/ipsecadm
++ DEFAULT_IFENSLAVE=/sbin/ifenslave
++ DEFAULT_TUNCTL=/usr/sbin/tunctl
++ DEFAULT_BRCTL=/usr/sbin/brctl
++ DEFAULT_ETHTOOL=/usr/sbin/ethtool
++ DEFAULT_PPPD=/usr/sbin/pppd
++ DEFAULT_CHAT=/usr/sbin/chat
++ DEFAULT_PPPOPTIONSFILE=pppoptions
++ DEFAULT_PPPINITCHAT=pppinit
++ DEFAULT_PPPCONNECTCHAT=pppconnect
++ DEFAULT_PPPDISCONNECTCHAT=pppdisconnect
++ DEFAULT_CHATOPTIONS='-t 120'
++ DEFAULT_PPPOE=/usr/sbin/pppoe
++ DEFAULT_PPPOEOPTIONS=-U
++ DEFAULT_PPTP=/usr/sbin/pptp
++ DEFAULT_PENTANETT=/usr/sbin/pentanett
++ DEFAULT_PENTAVALT=/usr/sbin/pentavalt
++ DEFAULT_PENTANET_CONF=pentanet.conf
++ DEFAULT_PENTAVAL_CONF=pentaval.conf
++ DEFAULT_SZAP=/usr/bin/szap
++ DEFAULT_SZAP_ARGS='-n 1 -x'
++ DEFAULT_DVBNET=/usr/bin/dvbnet
++ DEFAULT_PAND=/usr/bin/pand
++ DEFAULT_OSSH=/usr/bin/ssh
++ DEFAULT_OSSHIDENTITY=identity
++ DEFAULT_OVPN=/usr/sbin/openvpn
++ DEFAULT_OVPNCONFFILE=ovpnoptions
++ DEFAULT_OVPNCAFILE=ovpnca
++ DEFAULT_OVPNCRTFILE=ovpncrt
++ DEFAULT_OVPNKEYFILE=ovpnkey
++ DEFAULT_OVPNTLSAUTHFILE=ovpntlsauth
++ DEFAULT_OVPNUSER=openvpn
++ DEFAULT_OVPNGROUP=openvpn
++ OVPNCHROOTDIR=/var/lib/openvpn
++ OVPNRUNDIR=/var/run
++ declare -frx is_yes is_no SourceIfNotEmpty ExecIfExecutable
supported_type name2type
++ declare -frx pickup_options print_error print_message
print_progress print_nack
++ declare -frx iface_is_up try_rmmod get_mapped_ifname
profiled_filename init_netprofile
++ declare -frx init_nethost foreach_child ifdown_children
ifup_children ifup_parents
++ declare -frx ifdown_parents iface_exists seen_iface add_seen_iface
xargise_file
++ declare -frx have_ifplugd pickup_defaults trim need_detection
stop_dhcp_client
++ declare -frx stop_ipv4ll_client modprobe_with_rename modprobe_tuntap
++ declare -frx eval_string kill_by_pidfile
++ declare -rx DENOISE DEFAULT_BONDMODE IFACEDIR LOCALSCRIPTDIR VARLIBDIR
++ declare -rx VLANTAB HOSTTAB IFTAB PROFILE_FILE PROC_CMDLINE
DEFAULT_IFPLUGSTATUS
++ declare -rx DEFAULT_IFPLUGD DEFAULT_IWCONFIG DEFAULT_WPA_SUPPLICANT
DEFAULT_WPA_CLI DEFAULT_PLIPCONFIG
++ declare -rx DEFAULT_IWPRIV DEFAULT_VCONFIG DEFAULT_PENTANETT
DEFAULT_PENTAVALT DEFAULT_PENTANET_CONF
++ declare -rx DEFAULT_PENTAVAL_CONF DEFAULT_IPSECADM
DEFAULT_IFENSLAVE DEFAULT_BRCTL
++ declare -rx DEFAULT_ETHTOOL DEFAULT_PPPD DEFAULT_CHAT DEFAULT_PPPOPTIONSFILE
++ declare -rx DEFAULT_PPPINITCHAT DEFAULT_PPPCONNECTCHAT
DEFAULT_PPPDISCONNECTCHAT
++ declare -rx DEFAULT_CHATOPTIONS DEFAULT_PPPOE DEFAULT_PPPOEOPTIONS
DEFAULT_PPTP
++ declare -rx DEFAULT_SZAP DEFAULT_SZAP_ARGS DEFAULT_DVBNET DEFAULT_PAND
++ declare -rx DEFAULT_OSSH DEFAULT_OSSHIDENTITY
++ declare -rx DEFAULT_OVPN DEFAULT_OVPNCONFFILE DEFAULT_OVPNKEYFILE
DEFAULT_OVPNCAFILE
++ declare -rx DEFAULT_OVPNCRTFILE DEFAULT_OVPNUSER DEFAULT_OVPNGROUP
OVPNCHROOTDIR OVPNRUNDIR
++ declare -rx DEFAULT_OVPNTLSAUTHFILE
+ pickup_defaults
+ local of
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options = /etc/net/options -a /etc/net/options =
/etc/net/options ']'
+ SourceIfNotEmpty /etc/net/options
+ local f
+ f=/etc/net/options
+ shift
+ '[' -s /etc/net/options ']'
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options.d/00-default = /etc/net/options.d/00-default -a
/etc/net/options.d/00-default = /etc/net/options.d/00-default ']'
+ SourceIfNotEmpty /etc/net/options.d/00-default
+ local f
+ f=/etc/net/options.d/00-default
+ shift
+ '[' -s /etc/net/options.d/00-default ']'
+ . /etc/net/options.d/00-default
++ SILENT_REMOVABLES=off
++ VLAN_NAMETYPE=DEV_PLUS_VID_NO_PAD
++ IP=/sbin/ip
++ TC=/sbin/tc
++ OVPN=/usr/sbin/openvpn
++ MODPROBE=/sbin/modprobe
++ LSMOD=/sbin/lsmod
++ INSMOD=/sbin/insmod
++ RMMOD=/sbin/rmmod
++ SYSCTL=/sbin/sysctl
++ IFRENAME=/sbin/ifrename
++ TUNCTL=/usr/sbin/tunctl
++ ZCIP_CLIENT=/usr/sbin/avahi-autoipd
++ IPX_INTERFACE=/sbin/ipx_interface
++ IPX_INTERNAL_NET=/sbin/ipx_internal_net
++ IPX_CONFIGURE=/sbin/ipx_configure
++ ALLOW_UNKNOWN=no
++ IPTABLES=/sbin/iptables
++ IP6TABLES=/sbin/ip6tables
++ EBTABLES=/sbin/ebtables
++ GOOD_MODULE_LIST='eepro100 e100 8139too tulip 3c59x hostap
via-rhine sk98lin r8169'
++ NEVER_RMMOD=yes
++ AUTO_BROADCAST=off
++ IFGROUP[0]='lo dummy'
++ IFGROUP[1]='eth plip usb dvb bnep tuntap'
++ IFGROUP[2]='vlan bond bri teql'
++ IFGROUP[3]='iptun ipsectun ovpn ossh'
++ IFGROUP[4]=ppp
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options.d/50-ALTLinux-desktop =
/etc/net/options.d/50-ALTLinux-desktop -a
/etc/net/options.d/50-ALTLinux-desktop =
/etc/net/options.d/50-ALTLinux-desktop ']'
+ SourceIfNotEmpty /etc/net/options.d/50-ALTLinux-desktop
+ local f
+ f=/etc/net/options.d/50-ALTLinux-desktop
+ shift
+ '[' -s /etc/net/options.d/50-ALTLinux-desktop ']'
+ . /etc/net/options.d/50-ALTLinux-desktop
++ RESOLV_POSTIN_CMD=/sbin/update_chrooted
++ RESOLV_POSTIN_ARGS=conf
++ ALLOW_UNKNOWN=on
++ SILENT_REMOVABLES=yes
++ DHCP_CLIENT=/sbin/dhcpcd
++ DHCP_TIMEOUT=30
++ DHCP_GRACE_TIME=2
++ DHCP_HOSTNAME=localhost
++ BRCTL=/sbin/brctl
+ '[' -z /etc/net/scripts ']'
+ '[' -d /etc/net/ifaces/eth0@ ']'
+ MYIFACEDIR=/etc/net/ifaces/eth0
+ '[' -d /etc/net/ifaces/eth0 ']'
+ export MYIFACEDIR NETPROFILE
+ init_netprofile
+ '[' -n '' ']'
+ '[' -n /etc/net/ifaces/eth0 -a -s /etc/net/ifaces/eth0/selectprofile
-a -x /etc/net/ifaces/eth0/selectprofile ']'
+ '[' -z '' ']'
+ '[' -r /proc/cmdline ']'
++ cat /proc/cmdline
++ sed 's/ / /g'
++ sed 's/ /\n/g'
++ egrep '^netprofile='
++ cut -d= -f2
+ NETPROFILE=
+ '[' -z '' -a -s /etc/net/profile -a -r /etc/net/profile ']'
+ return 0
+ pickup_options
+ local of prof_of
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename /etc/net/ifaces/eth0/options
++ local CAND BASE=/etc/net/ifaces/eth0/options
++ CAND=/etc/net/ifaces/eth0/options
++ '[' -e /etc/net/ifaces/eth0/options ']'
++ echo /etc/net/ifaces/eth0/options
++ return 0
+ prof_of=/etc/net/ifaces/eth0/options
+ '[' -f /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options
= /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options =
/etc/net/ifaces/eth0/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/eth0/options
+ local f
+ f=/etc/net/ifaces/eth0/options
+ shift
+ '[' -s /etc/net/ifaces/eth0/options ']'
+ . /etc/net/ifaces/eth0/options
++ TYPE=eth
++ DISABLED=no
++ BOOTPROTO=dhcp
++ NM_CONTROLLED=no
++ MODULE=8139too
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename '/etc/net/ifaces/eth0/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/eth0/options.d/*'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ echo '/etc/net/ifaces/eth0/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/eth0/options.d/*'
+ '[' -f '/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' ']'
+ continue
+ is_yes no
+ case "$1" in
+ return 1
+ '[' -z eth ']'
+ '[' -z eth ']'
+ supported_type eth
+ local TYPE=eth
+ '[' -x /etc/net/scripts/create-eth -o -x /etc/net/scripts/destroy-eth ']'
+ return 0
+ for of in '$IFACEDIR/default/options' '$IFACEDIR/default/options.d/*'
++ profiled_filename /etc/net/ifaces/default/options
++ local CAND BASE=/etc/net/ifaces/default/options
++ CAND=/etc/net/ifaces/default/options
++ '[' -e /etc/net/ifaces/default/options ']'
++ echo /etc/net/ifaces/default/options
++ return 0
+ prof_of=/etc/net/ifaces/default/options
+ '[' -f /etc/net/ifaces/default/options -a
/etc/net/ifaces/default/options = /etc/net/ifaces/default/options -a
/etc/net/ifaces/default/options = /etc/net/ifaces/default/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/default/options
+ local f
+ f=/etc/net/ifaces/default/options
+ shift
+ '[' -s /etc/net/ifaces/default/options ']'
+ . /etc/net/ifaces/default/options
++ DISABLED=no
++ BOOTPROTO=dhcp
++ ONBOOT=yes
++ USE_HOTPLUG=no
++ USE_PCMCIA=no
++ CONFIG_IPV4=yes
++ CONFIG_IPV6=no
++ CONFIG_IPX=no
++ CONFIG_QOS=yes
++ CONFIG_WIRELESS=no
++ CONFIG_FW=no
++ KEEP_DOWN=no
++ DONT_FLUSH=no
++ IFUP_CHILDREN=no
++ IFUP_PARENTS=yes
++ IFDOWN_CHILDREN=yes
++ IFDOWN_PARENTS=no
+ for of in '$IFACEDIR/default/options' '$IFACEDIR/default/options.d/*'
++ profiled_filename '/etc/net/ifaces/default/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/default/options.d/*'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ echo '/etc/net/ifaces/default/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/default/options.d/*'
+ '[' -f '/etc/net/ifaces/default/options.d/*' -a
'/etc/net/ifaces/default/options.d/*' =
'/etc/net/ifaces/default/options.d/*' -a
'/etc/net/ifaces/default/options.d/*' =
'/etc/net/ifaces/default/options.d/*' ']'
+ continue
+ for of in '$IFACEDIR/default/options-$TYPE'
'$IFACEDIR/default/options-$TYPE.d/*'
++ profiled_filename /etc/net/ifaces/default/options-eth
++ local CAND BASE=/etc/net/ifaces/default/options-eth
++ CAND=/etc/net/ifaces/default/options-eth
++ '[' -e /etc/net/ifaces/default/options-eth ']'
++ echo /etc/net/ifaces/default/options-eth
++ return 0
+ prof_of=/etc/net/ifaces/default/options-eth
+ '[' -f /etc/net/ifaces/default/options-eth -a
/etc/net/ifaces/default/options-eth =
/etc/net/ifaces/default/options-eth -a
/etc/net/ifaces/default/options-eth =
/etc/net/ifaces/default/options-eth ']'
+ SourceIfNotEmpty /etc/net/ifaces/default/options-eth
+ local f
+ f=/etc/net/ifaces/default/options-eth
+ shift
+ '[' -s /etc/net/ifaces/default/options-eth ']'
+ . /etc/net/ifaces/default/options-eth
++ USE_IFPLUGD=no
++ PERSISTENT_IFPLUGD=no
++ IFPLUGD_EXTRA_ARGS='--delay-up=0 --delay-down=10'
++ LINKDETECT=auto
++ LINKDELAY=5
++ CONFIG_WIRELESS=yes
++ AUTO_BROADCAST=yes
+ for of in '$IFACEDIR/default/options-$TYPE'
'$IFACEDIR/default/options-$TYPE.d/*'
++ profiled_filename '/etc/net/ifaces/default/options-eth.d/*'
++ local CAND 'BASE=/etc/net/ifaces/default/options-eth.d/*'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ echo '/etc/net/ifaces/default/options-eth.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/default/options-eth.d/*'
+ '[' -f '/etc/net/ifaces/default/options-eth.d/*' -a
'/etc/net/ifaces/default/options-eth.d/*' =
'/etc/net/ifaces/default/options-eth.d/*' -a
'/etc/net/ifaces/default/options-eth.d/*' =
'/etc/net/ifaces/default/options-eth.d/*' ']'
+ continue
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename /etc/net/ifaces/eth0/options
++ local CAND BASE=/etc/net/ifaces/eth0/options
++ CAND=/etc/net/ifaces/eth0/options
++ '[' -e /etc/net/ifaces/eth0/options ']'
++ echo /etc/net/ifaces/eth0/options
++ return 0
+ prof_of=/etc/net/ifaces/eth0/options
+ '[' -f /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options
= /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options =
/etc/net/ifaces/eth0/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/eth0/options
+ local f
+ f=/etc/net/ifaces/eth0/options
+ shift
+ '[' -s /etc/net/ifaces/eth0/options ']'
+ . /etc/net/ifaces/eth0/options
++ TYPE=eth
++ DISABLED=no
++ BOOTPROTO=dhcp
++ NM_CONTROLLED=no
++ MODULE=8139too
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename '/etc/net/ifaces/eth0/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/eth0/options.d/*'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ echo '/etc/net/ifaces/eth0/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/eth0/options.d/*'
+ '[' -f '/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' ']'
+ continue
+ SourceIfNotEmpty /etc/net/scripts/functions-eth
+ local f
+ f=/etc/net/scripts/functions-eth
+ shift
+ '[' -s /etc/net/scripts/functions-eth ']'
+ . /etc/net/scripts/functions-eth
+ is_yes no
+ case "$1" in
+ return 1
+ '[' '' = boot ']'
+ iface_is_up eth0
+ local NAME=eth0
+ /sbin/ip -o link show dev eth0
+ cut '-d ' -f3
+ grep -qs '[<,]UP[,>]'
+ seen_iface eth0
+ local needle=eth0
+ return 1
+ export SEEN_IFACES
+ add_seen_iface eth0
+ local newname=eth0
+ SEEN_IFACES=eth0
+ is_yes yes
+ case "$1" in
+ return 0
+ ifup_parents
+ '[' -z '' -a -z '' ']'
+ return 0
+ ExecIfExecutable /etc/net/ifup-pre-local eth0
+ local f
+ f=/etc/net/ifup-pre-local
+ shift
+ '[' -x /etc/net/ifup-pre-local ']'
+ ExecIfExecutable /etc/net/ifaces/eth0/ifup-pre eth0
+ local f
+ f=/etc/net/ifaces/eth0/ifup-pre
+ shift
+ '[' -x /etc/net/ifaces/eth0/ifup-pre ']'
+ ExecIfExecutable /etc/net/scripts/create-eth eth0
+ local f
+ f=/etc/net/scripts/create-eth
+ shift
+ '[' -x /etc/net/scripts/create-eth ']'
+ /etc/net/scripts/create-eth eth0
+ print_progress
+ is_yes ''
+ case "$1" in
+ return 1
+ return 0
++ profiled_filename /etc/net/iftab
++ local CAND BASE=/etc/net/iftab
++ CAND=/etc/net/iftab
++ '[' -e /etc/net/iftab ']'
++ CAND=/etc/net/iftab
++ '[' -e /etc/net/iftab ']'
++ CAND=/etc/net/iftab
++ '[' -e /etc/net/iftab ']'
++ echo /etc/net/iftab
++ return 0
+ IFTAB_FILE=/etc/net/iftab
+ '[' -s /etc/net/iftab ']'
+ /etc/net/scripts/ifup-common eth0
Error, eth0: netlink: No such process
[root@localhost ~]# ls -l /var/run/*dhcp*
-rw-r--r-- 1 root root 5 Nov 11 23:24 /var/run/dhcpcd-eth0.pid
[root@localhost ~]# dmesg | tail -40
usb 4-2: new high speed USB device using ehci_hcd and address 3
usb 4-2: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
usb 4-2: New USB device found, idVendor=0324, idProduct=bc06
usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 4-2: Product: ATV
usb 4-2: Manufacturer: OCZ
usb 4-2: SerialNumber: AA04012700023049
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 1:0:0:0: Direct-Access OCZ ATV 1100 PQ: 0 ANSI: 0 CCS
sd 1:0:0:0: [sda] 3915776 512-byte hardware sectors (2005 MB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 43 00 00 00
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] 3915776 512-byte hardware sectors (2005 MB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 43 00 00 00
sd 1:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 1:0:0:0: [sda] Attached SCSI removable disk
sd 1:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
FAT: utf8 is not a recommended IO charset for FAT filesystems,
filesystem will be case sensitive!
ACPI: PCI interrupt for device 0000:00:0a.0 disabled
8139too Fast Ethernet driver 0.9.28
ACPI: PCI Interrupt 0000:00:0a.0[A] -> GSI 18 (level, low) -> IRQ 18
eth0: RealTek RTL8139 at 0xf887e000, 00:14:d1:31:73:54, IRQ 18
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
agpgart: Found an AGP 3.5 compliant device at 0000:00:00.0.
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode
FAT: utf8 is not a recommended IO charset for FAT filesystems,
filesystem will be case sensitive!
ACPI: PCI interrupt for device 0000:00:0a.0 disabled
8139too Fast Ethernet driver 0.9.28
ACPI: PCI Interrupt 0000:00:0a.0[A] -> GSI 18 (level, low) -> IRQ 18
eth0: RealTek RTL8139 at 0xf887e000, 00:14:d1:31:73:54, IRQ 18
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Извините, что длинно.
--
Владимир Головин
tarnoga@gmail.com
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-11 20:34 ` Владимир Головин
@ 2008-11-11 22:52 ` Kharitonov A. Dmitry
2008-11-12 10:16 ` Владимир Головин
0 siblings, 1 reply; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-11 22:52 UTC (permalink / raw)
To: ALT Linux Community general discussions
Владимир Головин пишет:
> 11 ноября 2008 г. 21:04 пользователь Kharitonov A. Dmitry
> <kharpost@rambler.ru> написал:
>
>> Владимир Головин пишет:
>>
>
>
>>>> [root@localhost ~]# ifdown eth0
>>>> [root@localhost ~]# rmmod -f 8139too
>>>> [root@localhost ~]# rmmod -f 8139cp
>>>> [root@localhost ~]# ifup eth0
>>>> Error, eth0: netlink: No such process
>>>>
>>>>
>> Этой ошибки быть не должно. Возможно не поднимается dhcpс.
>>
>> ls -l /var/run/*dhcp*
>> ifdown eth0
>> ls -l /var/run/*dhcp*
>> rmmod -f 8139too
>> rmmod -f 8139cp
>> bash -x ifup eth0 ?
>> ls -l /var/run/*dhcp*
>> dmesg | tail -40 ? без купюр
>>
>>
>
> [root@localhost ~]# ls -l /var/run/*dhcp*
> -rw-r--r-- 1 root root 5 Nov 11 23:19 /var/run/dhcpcd-eth0.pid
> [root@localhost ~]# ifdown eth0
> [root@localhost ~]# ls -l /var/run/*dhcp*
> ls: cannot access /var/run/*dhcp*: No such file or directory
> [root@localhost ~]# rmmod -f 8139too
> [root@localhost ~]# rmmod -f 8139cp
> ERROR: Removing '8139cp': No such file or directory
> [root@localhost ~]# bash -x ifup eth0
> + '[' -z eth0 ']'
> + export NAME=eth0
> + NAME=eth0
>
Гламурные ножнички
---8<---8<---
> Извините, что длинно.
>
Длинно это когда письмо в рассылку не уходит....
dhcpc похоже поднимается
Трассируем дальше
# echo '#!/bin/bash -x' | cat - /etc/net/scripts/ifup-common > /tmp/1
# cat /tmp/1 > /etc/net/scripts/ifup-common
# ifdown eth0
# ifup eth0
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-11 22:52 ` Kharitonov A. Dmitry
@ 2008-11-12 10:16 ` Владимир Головин
2008-11-12 14:26 ` Kharitonov A. Dmitry
0 siblings, 1 reply; 28+ messages in thread
From: Владимир Головин @ 2008-11-12 10:16 UTC (permalink / raw)
To: ALT Linux Community general discussions
12 ноября 2008 г. 1:52 пользователь Kharitonov A. Dmitry
<kharpost@rambler.ru> написал:
> dhcpc похоже поднимается
>
> Трассируем дальше
> # echo '#!/bin/bash -x' | cat - /etc/net/scripts/ifup-common > /tmp/1 # cat
> /tmp/1 > /etc/net/scripts/ifup-common
> # ifdown eth0
> # ifup eth0
>
[root@localhost ~]# dmesg | echo '#!/bin/bash -x' | cat -
/etc/net/scripts/ifup-common > /tmp/1
[root@localhost ~]# cat /tmp/1 > /etc/net/scripts/ifup-common
[root@localhost ~]# ifdown eth0
[root@localhost ~]# ifup eth0
+ '[' -z eth0 ']'
+ NAME=eth0
+ pickup_defaults
+ local of
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options = /etc/net/options -a /etc/net/options =
/etc/net/options ']'
+ SourceIfNotEmpty /etc/net/options
+ local f
+ f=/etc/net/options
+ shift
+ '[' -s /etc/net/options ']'
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options.d/00-default = /etc/net/options.d/00-default -a
/etc/net/options.d/00-default = /etc/net/options.d/00-default ']'
+ SourceIfNotEmpty /etc/net/options.d/00-default
+ local f
+ f=/etc/net/options.d/00-default
+ shift
+ '[' -s /etc/net/options.d/00-default ']'
+ . /etc/net/options.d/00-default
++ SILENT_REMOVABLES=off
++ VLAN_NAMETYPE=DEV_PLUS_VID_NO_PAD
++ IP=/sbin/ip
++ TC=/sbin/tc
++ OVPN=/usr/sbin/openvpn
++ MODPROBE=/sbin/modprobe
++ LSMOD=/sbin/lsmod
++ INSMOD=/sbin/insmod
++ RMMOD=/sbin/rmmod
++ SYSCTL=/sbin/sysctl
++ IFRENAME=/sbin/ifrename
++ TUNCTL=/usr/sbin/tunctl
++ ZCIP_CLIENT=/usr/sbin/avahi-autoipd
++ IPX_INTERFACE=/sbin/ipx_interface
++ IPX_INTERNAL_NET=/sbin/ipx_internal_net
++ IPX_CONFIGURE=/sbin/ipx_configure
++ ALLOW_UNKNOWN=no
++ IPTABLES=/sbin/iptables
++ IP6TABLES=/sbin/ip6tables
++ EBTABLES=/sbin/ebtables
++ GOOD_MODULE_LIST='eepro100 e100 8139too tulip 3c59x hostap
via-rhine sk98lin r8169'
++ NEVER_RMMOD=yes
++ AUTO_BROADCAST=off
++ IFGROUP[0]='lo dummy'
++ IFGROUP[1]='eth plip usb dvb bnep tuntap'
++ IFGROUP[2]='vlan bond bri teql'
++ IFGROUP[3]='iptun ipsectun ovpn ossh'
++ IFGROUP[4]=ppp
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options.d/50-ALTLinux-desktop =
/etc/net/options.d/50-ALTLinux-desktop -a
/etc/net/options.d/50-ALTLinux-desktop =
/etc/net/options.d/50-ALTLinux-desktop ']'
+ SourceIfNotEmpty /etc/net/options.d/50-ALTLinux-desktop
+ local f
+ f=/etc/net/options.d/50-ALTLinux-desktop
+ shift
+ '[' -s /etc/net/options.d/50-ALTLinux-desktop ']'
+ . /etc/net/options.d/50-ALTLinux-desktop
++ RESOLV_POSTIN_CMD=/sbin/update_chrooted
++ RESOLV_POSTIN_ARGS=conf
++ ALLOW_UNKNOWN=on
++ SILENT_REMOVABLES=yes
++ DHCP_CLIENT=/sbin/dhcpcd
++ DHCP_TIMEOUT=30
++ DHCP_GRACE_TIME=2
++ DHCP_HOSTNAME=localhost
++ BRCTL=/sbin/brctl
+ '[' -z /etc/net/scripts ']'
+ pickup_options
+ local of prof_of
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename /etc/net/ifaces/eth0/options
++ local CAND BASE=/etc/net/ifaces/eth0/options
++ CAND=/etc/net/ifaces/eth0/options
++ '[' -e /etc/net/ifaces/eth0/options ']'
++ echo /etc/net/ifaces/eth0/options
++ return 0
+ prof_of=/etc/net/ifaces/eth0/options
+ '[' -f /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options
= /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options =
/etc/net/ifaces/eth0/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/eth0/options
+ local f
+ f=/etc/net/ifaces/eth0/options
+ shift
+ '[' -s /etc/net/ifaces/eth0/options ']'
+ . /etc/net/ifaces/eth0/options
++ TYPE=eth
++ DISABLED=no
++ BOOTPROTO=dhcp
++ NM_CONTROLLED=no
++ MODULE=8139too
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename '/etc/net/ifaces/eth0/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/eth0/options.d/*'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ echo '/etc/net/ifaces/eth0/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/eth0/options.d/*'
+ '[' -f '/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' ']'
+ continue
+ is_yes no
+ case "$1" in
+ return 1
+ '[' -z eth ']'
+ '[' -z eth ']'
+ supported_type eth
+ local TYPE=eth
+ '[' -x /etc/net/scripts/create-eth -o -x /etc/net/scripts/destroy-eth ']'
+ return 0
+ for of in '$IFACEDIR/default/options' '$IFACEDIR/default/options.d/*'
++ profiled_filename /etc/net/ifaces/default/options
++ local CAND BASE=/etc/net/ifaces/default/options
++ CAND=/etc/net/ifaces/default/options
++ '[' -e /etc/net/ifaces/default/options ']'
++ echo /etc/net/ifaces/default/options
++ return 0
+ prof_of=/etc/net/ifaces/default/options
+ '[' -f /etc/net/ifaces/default/options -a
/etc/net/ifaces/default/options = /etc/net/ifaces/default/options -a
/etc/net/ifaces/default/options = /etc/net/ifaces/default/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/default/options
+ local f
+ f=/etc/net/ifaces/default/options
+ shift
+ '[' -s /etc/net/ifaces/default/options ']'
+ . /etc/net/ifaces/default/options
++ DISABLED=no
++ BOOTPROTO=dhcp
++ ONBOOT=yes
++ USE_HOTPLUG=no
++ USE_PCMCIA=no
++ CONFIG_IPV4=yes
++ CONFIG_IPV6=no
++ CONFIG_IPX=no
++ CONFIG_QOS=yes
++ CONFIG_WIRELESS=no
++ CONFIG_FW=no
++ KEEP_DOWN=no
++ DONT_FLUSH=no
++ IFUP_CHILDREN=no
++ IFUP_PARENTS=yes
++ IFDOWN_CHILDREN=yes
++ IFDOWN_PARENTS=no
+ for of in '$IFACEDIR/default/options' '$IFACEDIR/default/options.d/*'
++ profiled_filename '/etc/net/ifaces/default/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/default/options.d/*'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ echo '/etc/net/ifaces/default/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/default/options.d/*'
+ '[' -f '/etc/net/ifaces/default/options.d/*' -a
'/etc/net/ifaces/default/options.d/*' =
'/etc/net/ifaces/default/options.d/*' -a
'/etc/net/ifaces/default/options.d/*' =
'/etc/net/ifaces/default/options.d/*' ']'
+ continue
+ for of in '$IFACEDIR/default/options-$TYPE'
'$IFACEDIR/default/options-$TYPE.d/*'
++ profiled_filename /etc/net/ifaces/default/options-eth
++ local CAND BASE=/etc/net/ifaces/default/options-eth
++ CAND=/etc/net/ifaces/default/options-eth
++ '[' -e /etc/net/ifaces/default/options-eth ']'
++ echo /etc/net/ifaces/default/options-eth
++ return 0
+ prof_of=/etc/net/ifaces/default/options-eth
+ '[' -f /etc/net/ifaces/default/options-eth -a
/etc/net/ifaces/default/options-eth =
/etc/net/ifaces/default/options-eth -a
/etc/net/ifaces/default/options-eth =
/etc/net/ifaces/default/options-eth ']'
+ SourceIfNotEmpty /etc/net/ifaces/default/options-eth
+ local f
+ f=/etc/net/ifaces/default/options-eth
+ shift
+ '[' -s /etc/net/ifaces/default/options-eth ']'
+ . /etc/net/ifaces/default/options-eth
++ USE_IFPLUGD=no
++ PERSISTENT_IFPLUGD=no
++ IFPLUGD_EXTRA_ARGS='--delay-up=0 --delay-down=10'
++ LINKDETECT=auto
++ LINKDELAY=5
++ CONFIG_WIRELESS=yes
++ AUTO_BROADCAST=yes
+ for of in '$IFACEDIR/default/options-$TYPE'
'$IFACEDIR/default/options-$TYPE.d/*'
++ profiled_filename '/etc/net/ifaces/default/options-eth.d/*'
++ local CAND 'BASE=/etc/net/ifaces/default/options-eth.d/*'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ echo '/etc/net/ifaces/default/options-eth.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/default/options-eth.d/*'
+ '[' -f '/etc/net/ifaces/default/options-eth.d/*' -a
'/etc/net/ifaces/default/options-eth.d/*' =
'/etc/net/ifaces/default/options-eth.d/*' -a
'/etc/net/ifaces/default/options-eth.d/*' =
'/etc/net/ifaces/default/options-eth.d/*' ']'
+ continue
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename /etc/net/ifaces/eth0/options
++ local CAND BASE=/etc/net/ifaces/eth0/options
++ CAND=/etc/net/ifaces/eth0/options
++ '[' -e /etc/net/ifaces/eth0/options ']'
++ echo /etc/net/ifaces/eth0/options
++ return 0
+ prof_of=/etc/net/ifaces/eth0/options
+ '[' -f /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options
= /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options =
/etc/net/ifaces/eth0/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/eth0/options
+ local f
+ f=/etc/net/ifaces/eth0/options
+ shift
+ '[' -s /etc/net/ifaces/eth0/options ']'
+ . /etc/net/ifaces/eth0/options
++ TYPE=eth
++ DISABLED=no
++ BOOTPROTO=dhcp
++ NM_CONTROLLED=no
++ MODULE=8139too
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename '/etc/net/ifaces/eth0/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/eth0/options.d/*'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ echo '/etc/net/ifaces/eth0/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/eth0/options.d/*'
+ '[' -f '/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' ']'
+ continue
+ SourceIfNotEmpty /etc/net/scripts/functions-eth
+ local f
+ f=/etc/net/scripts/functions-eth
+ shift
+ '[' -s /etc/net/scripts/functions-eth ']'
+ . /etc/net/scripts/functions-eth
+ '[' eth = ovpn ']'
+ : /usr/sbin/ifplugd
+ '[' -z '' ']'
++ have_ifplugd
++ '[' -x /usr/sbin/ifplugd ']'
++ echo yes
+ HAVE_IFPLUGD=yes
+ . /etc/net/scripts/functions-eth
+ case "$USE_IFPLUGD" in
+ is_yes ''
+ case "$1" in
+ return 1
+ is_yes
+ case "$1" in
+ return 1
+ xargise_file /etc/net/ifaces/default/iplink '/sbin/ip link set dev eth0'
+ local BASEFILE=/etc/net/ifaces/default/iplink
+ local 'PROCESSOR=/sbin/ip link set dev eth0'
++ profiled_filename /etc/net/ifaces/default/iplink
++ local CAND BASE=/etc/net/ifaces/default/iplink
++ CAND=/etc/net/ifaces/default/iplink
++ '[' -e /etc/net/ifaces/default/iplink ']'
++ CAND=/etc/net/ifaces/default/iplink
++ '[' -e /etc/net/ifaces/default/iplink ']'
++ CAND=/etc/net/ifaces/default/iplink
++ '[' -e /etc/net/ifaces/default/iplink ']'
++ echo /etc/net/ifaces/default/iplink
++ return 0
+ local REALFILE=/etc/net/ifaces/default/iplink
+ '[' -s /etc/net/ifaces/default/iplink ']'
+ return 0
+ xargise_file /etc/net/ifaces/default/iplink-eth '/sbin/ip link set dev eth0'
+ local BASEFILE=/etc/net/ifaces/default/iplink-eth
+ local 'PROCESSOR=/sbin/ip link set dev eth0'
++ profiled_filename /etc/net/ifaces/default/iplink-eth
++ local CAND BASE=/etc/net/ifaces/default/iplink-eth
++ CAND=/etc/net/ifaces/default/iplink-eth
++ '[' -e /etc/net/ifaces/default/iplink-eth ']'
++ CAND=/etc/net/ifaces/default/iplink-eth
++ '[' -e /etc/net/ifaces/default/iplink-eth ']'
++ CAND=/etc/net/ifaces/default/iplink-eth
++ '[' -e /etc/net/ifaces/default/iplink-eth ']'
++ echo /etc/net/ifaces/default/iplink-eth
++ return 0
+ local REALFILE=/etc/net/ifaces/default/iplink-eth
+ '[' -s /etc/net/ifaces/default/iplink-eth ']'
+ return 0
+ xargise_file /etc/net/ifaces/eth0/iplink '/sbin/ip link set dev eth0'
+ local BASEFILE=/etc/net/ifaces/eth0/iplink
+ local 'PROCESSOR=/sbin/ip link set dev eth0'
++ profiled_filename /etc/net/ifaces/eth0/iplink
++ local CAND BASE=/etc/net/ifaces/eth0/iplink
++ CAND=/etc/net/ifaces/eth0/iplink
++ '[' -e /etc/net/ifaces/eth0/iplink ']'
++ CAND=/etc/net/ifaces/eth0/iplink
++ '[' -e /etc/net/ifaces/eth0/iplink ']'
++ CAND=/etc/net/ifaces/eth0/iplink
++ '[' -e /etc/net/ifaces/eth0/iplink ']'
++ echo /etc/net/ifaces/eth0/iplink
++ return 0
+ local REALFILE=/etc/net/ifaces/eth0/iplink
+ '[' -s /etc/net/ifaces/eth0/iplink ']'
+ return 0
+ is_yes no
+ case "$1" in
+ return 1
+ /sbin/ip link set dev eth0 up
+ print_progress
+ is_yes ''
+ case "$1" in
+ return 1
+ return 0
+ is_yes yes
+ case "$1" in
+ return 0
+ is_wireless eth0
+ '[' -d /sys/class ']'
+ '[' -d /sys/class/net/eth0/wireless ']'
+ xargise_file /etc/net/ifaces/eth0/ipneigh '/sbin/ip neigh replace dev eth0'
+ local BASEFILE=/etc/net/ifaces/eth0/ipneigh
+ local 'PROCESSOR=/sbin/ip neigh replace dev eth0'
++ profiled_filename /etc/net/ifaces/eth0/ipneigh
++ local CAND BASE=/etc/net/ifaces/eth0/ipneigh
++ CAND=/etc/net/ifaces/eth0/ipneigh
++ '[' -e /etc/net/ifaces/eth0/ipneigh ']'
++ CAND=/etc/net/ifaces/eth0/ipneigh
++ '[' -e /etc/net/ifaces/eth0/ipneigh ']'
++ CAND=/etc/net/ifaces/eth0/ipneigh
++ '[' -e /etc/net/ifaces/eth0/ipneigh ']'
++ echo /etc/net/ifaces/eth0/ipneigh
++ return 0
+ local REALFILE=/etc/net/ifaces/eth0/ipneigh
+ '[' -s /etc/net/ifaces/eth0/ipneigh ']'
+ return 0
+ is_yes yes
+ case "$1" in
+ return 0
+ /etc/net/scripts/config-ipv4 eth0 start '' ''
Error, eth0: netlink: No such process
+ is_yes no
+ case "$1" in
+ return 1
+ is_yes no
+ case "$1" in
+ return 1
+ is_yes yes
+ case "$1" in
+ return 0
+ SourceIfNotEmpty /etc/net/scripts/functions-ipv4
+ local f
+ f=/etc/net/scripts/functions-ipv4
+ shift
+ '[' -s /etc/net/scripts/functions-ipv4 ']'
+ . /etc/net/scripts/functions-ipv4
++ get_ipv4_addresses eth0
++ local NAME=eth0
+++ /sbin/ip -4 addr show dev eth0
+++ grep -ose '\binet[[:space:]]\+[0-9.]\+'
+++ cut -f2 '-d '
++ printf 92.101.166.100
+ IPV4ADDRESS=92.101.166.100
+ is_yes no
+ case "$1" in
+ return 1
+ is_yes no
+ case "$1" in
+ return 1
+ is_yes yes
+ case "$1" in
+ return 0
+ /etc/net/scripts/config-qos eth0 start 92.101.166.100 ''
++ profiled_filename /etc/net/ifaces/eth0/resolv.conf
++ local CAND BASE=/etc/net/ifaces/eth0/resolv.conf
++ CAND=/etc/net/ifaces/eth0/resolv.conf
++ '[' -e /etc/net/ifaces/eth0/resolv.conf ']'
++ CAND=/etc/net/ifaces/eth0/resolv.conf
++ '[' -e /etc/net/ifaces/eth0/resolv.conf ']'
++ CAND=/etc/net/ifaces/eth0/resolv.conf
++ '[' -e /etc/net/ifaces/eth0/resolv.conf ']'
++ echo /etc/net/ifaces/eth0/resolv.conf
++ return 0
+ MYRESOLVCONF=/etc/net/ifaces/eth0/resolv.conf
+ '[' -s /etc/net/ifaces/eth0/resolv.conf ']'
++ profiled_filename /etc/net/ifaces/sysctl.conf
++ local CAND BASE=/etc/net/ifaces/sysctl.conf
++ CAND=/etc/net/ifaces/sysctl.conf
++ '[' -e /etc/net/ifaces/sysctl.conf ']'
++ CAND=/etc/net/ifaces/sysctl.conf
++ '[' -e /etc/net/ifaces/sysctl.conf ']'
++ CAND=/etc/net/ifaces/sysctl.conf
++ '[' -e /etc/net/ifaces/sysctl.conf ']'
++ echo /etc/net/ifaces/sysctl.conf
++ return 0
+ GLOBAL_SYSCTL=/etc/net/ifaces/sysctl.conf
++ profiled_filename /etc/net/ifaces/default/sysctl.conf-eth
++ local CAND BASE=/etc/net/ifaces/default/sysctl.conf-eth
++ CAND=/etc/net/ifaces/default/sysctl.conf-eth
++ '[' -e /etc/net/ifaces/default/sysctl.conf-eth ']'
++ CAND=/etc/net/ifaces/default/sysctl.conf-eth
++ '[' -e /etc/net/ifaces/default/sysctl.conf-eth ']'
++ CAND=/etc/net/ifaces/default/sysctl.conf-eth
++ '[' -e /etc/net/ifaces/default/sysctl.conf-eth ']'
++ echo /etc/net/ifaces/default/sysctl.conf-eth
++ return 0
+ TYPESPEC_SYSCTL=/etc/net/ifaces/default/sysctl.conf-eth
++ profiled_filename /etc/net/ifaces/eth0/sysctl.conf
++ local CAND BASE=/etc/net/ifaces/eth0/sysctl.conf
++ CAND=/etc/net/ifaces/eth0/sysctl.conf
++ '[' -e /etc/net/ifaces/eth0/sysctl.conf ']'
++ CAND=/etc/net/ifaces/eth0/sysctl.conf
++ '[' -e /etc/net/ifaces/eth0/sysctl.conf ']'
++ CAND=/etc/net/ifaces/eth0/sysctl.conf
++ '[' -e /etc/net/ifaces/eth0/sysctl.conf ']'
++ echo /etc/net/ifaces/eth0/sysctl.conf
++ return 0
+ MY_SYSCTL=/etc/net/ifaces/eth0/sysctl.conf
+ '[' -s /etc/net/ifaces/sysctl.conf ']'
+ '[' -s /etc/net/ifaces/default/sysctl.conf-eth ']'
+ '[' -s /etc/net/ifaces/eth0/sysctl.conf ']'
+ ExecIfExecutable /etc/net/scripts/setup-eth eth0
+ local f
+ f=/etc/net/scripts/setup-eth
+ shift
+ '[' -x /etc/net/scripts/setup-eth ']'
+ /etc/net/scripts/setup-eth eth0
+ print_progress
+ is_yes ''
+ case "$1" in
+ return 1
+ return 0
+ iface_is_up eth0
+ local NAME=eth0
+ /sbin/ip -o link show dev eth0
+ cut '-d ' -f3
+ grep -qs '[<,]UP[,>]'
+ ExecIfExecutable /etc/net/ifup-post-local eth0
+ local f
+ f=/etc/net/ifup-post-local
+ shift
+ '[' -x /etc/net/ifup-post-local ']'
+ ExecIfExecutable /etc/net/ifaces/eth0/ifup-post eth0
+ local f
+ f=/etc/net/ifaces/eth0/ifup-post
+ shift
+ '[' -x /etc/net/ifaces/eth0/ifup-post ']'
+ is_yes no
+ case "$1" in
+ return 1
+ exit 0
--
Владимир Головин
tarnoga@gmail.com
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-12 10:16 ` Владимир Головин
@ 2008-11-12 14:26 ` Kharitonov A. Dmitry
2008-11-12 16:26 ` Владимир Головин
0 siblings, 1 reply; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-12 14:26 UTC (permalink / raw)
To: ALT Linux Community general discussions
Владимир Головин пишет:
> 12 ноября 2008 г. 1:52 пользователь Kharitonov A. Dmitry
> <kharpost@rambler.ru> написал:
>
>
>> dhcpc похоже поднимается
>>
>> Трассируем дальше
>> # echo '#!/bin/bash -x' | cat - /etc/net/scripts/ifup-common > /tmp/1 # cat
>> /tmp/1 > /etc/net/scripts/ifup-common
>> # ifdown eth0
>> # ifup eth0
>>
>>
>
> [root@localhost ~]# dmesg | echo '#!/bin/bash -x' | cat -
> /etc/net/scripts/ifup-common > /tmp/1
> [root@localhost ~]# cat /tmp/1 > /etc/net/scripts/ifup-common
> [root@localhost ~]# ifdown eth0
> [root@localhost ~]# ifup eth0
>
---8<---8<---
> + case "$1" in
> + return 0
> + /etc/net/scripts/config-ipv4 eth0 start '' ''
> Error, eth0: netlink: No such process
>
---8<---8<---
Трассируем дальше
# echo '#!/bin/bash' | cat - /etc/net/scripts/ifup-common > /tmp/1
# cat /tmp/1 > /etc/net/scripts/ifup-common
# echo '#!/bin/bash -x' | cat - /etc/net/scripts/config-ipv4 > /tmp/1
# cat /tmp/1 > /etc/net/scripts/config-ipv4
# ifdown eth0
# ifup eth0
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-12 14:26 ` Kharitonov A. Dmitry
@ 2008-11-12 16:26 ` Владимир Головин
2008-11-12 20:08 ` Kharitonov A. Dmitry
0 siblings, 1 reply; 28+ messages in thread
From: Владимир Головин @ 2008-11-12 16:26 UTC (permalink / raw)
To: ALT Linux Community general discussions
12 ноября 2008 г. 17:26 пользователь Kharitonov A. Dmitry
<kharpost@rambler.ru> написал:
> Трассируем дальше
> # echo '#!/bin/bash' | cat - /etc/net/scripts/ifup-common > /tmp/1 # cat
> /tmp/1 > /etc/net/scripts/ifup-common
>
> # echo '#!/bin/bash -x' | cat - /etc/net/scripts/config-ipv4 > /tmp/1 # cat
> /tmp/1 > /etc/net/scripts/config-ipv4
>
> # ifdown eth0
> # ifup eth0
[root@localhost ~]# echo '#!/bin/bash' | cat -
/etc/net/scripts/ifup-common > /tmp/1
[root@localhost ~]# cat /tmp/1 > /etc/net/scripts/ifup-common
[root@localhost ~]# echo '#!/bin/bash -x' | cat -
/etc/net/scripts/config-ipv4 > /tmp/1
[root@localhost ~]# cat /tmp/1 > /etc/ne/scripts/config-ipv4
[root@localhost ~]# ifdown eth0
+ '[' 4 -ge 2 ']'
+ NAME=eth0
+ ACTION=stop
+ eval 'IPV4ADDRESS=()'
++ IPV4ADDRESS=()
+ eval 'IPV6ADDRESS=()'
++ IPV6ADDRESS=()
+ pickup_defaults
+ local of
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options = /etc/net/options -a /etc/net/options =
/etc/net/options ']'
+ SourceIfNotEmpty /etc/net/options
+ local f
+ f=/etc/net/options
+ shift
+ '[' -s /etc/net/options ']'
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options.d/00-default = /etc/net/options.d/00-default -a
/etc/net/options.d/00-default = /etc/net/options.d/00-default ']'
+ SourceIfNotEmpty /etc/net/options.d/00-default
+ local f
+ f=/etc/net/options.d/00-default
+ shift
+ '[' -s /etc/net/options.d/00-default ']'
+ . /etc/net/options.d/00-default
++ SILENT_REMOVABLES=off
++ VLAN_NAMETYPE=DEV_PLUS_VID_NO_PAD
++ IP=/sbin/ip
++ TC=/sbin/tc
++ OVPN=/usr/sbin/openvpn
++ MODPROBE=/sbin/modprobe
++ LSMOD=/sbin/lsmod
++ INSMOD=/sbin/insmod
++ RMMOD=/sbin/rmmod
++ SYSCTL=/sbin/sysctl
++ IFRENAME=/sbin/ifrename
++ TUNCTL=/usr/sbin/tunctl
++ ZCIP_CLIENT=/usr/sbin/avahi-autoipd
++ IPX_INTERFACE=/sbin/ipx_interface
++ IPX_INTERNAL_NET=/sbin/ipx_internal_net
++ IPX_CONFIGURE=/sbin/ipx_configure
++ ALLOW_UNKNOWN=no
++ IPTABLES=/sbin/iptables
++ IP6TABLES=/sbin/ip6tables
++ EBTABLES=/sbin/ebtables
++ GOOD_MODULE_LIST='eepro100 e100 8139too tulip 3c59x hostap
via-rhine sk98lin r8169'
++ NEVER_RMMOD=yes
++ AUTO_BROADCAST=off
++ IFGROUP[0]='lo dummy'
++ IFGROUP[1]='eth plip usb dvb bnep tuntap'
++ IFGROUP[2]='vlan bond bri teql'
++ IFGROUP[3]='iptun ipsectun ovpn ossh'
++ IFGROUP[4]=ppp
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options.d/50-ALTLinux-desktop =
/etc/net/options.d/50-ALTLinux-desktop -a
/etc/net/options.d/50-ALTLinux-desktop =
/etc/net/options.d/50-ALTLinux-desktop ']'
+ SourceIfNotEmpty /etc/net/options.d/50-ALTLinux-desktop
+ local f
+ f=/etc/net/options.d/50-ALTLinux-desktop
+ shift
+ '[' -s /etc/net/options.d/50-ALTLinux-desktop ']'
+ . /etc/net/options.d/50-ALTLinux-desktop
++ RESOLV_POSTIN_CMD=/sbin/update_chrooted
++ RESOLV_POSTIN_ARGS=conf
++ ALLOW_UNKNOWN=on
++ SILENT_REMOVABLES=yes
++ DHCP_CLIENT=/sbin/dhcpcd
++ DHCP_TIMEOUT=30
++ DHCP_GRACE_TIME=2
++ DHCP_HOSTNAME=localhost
++ BRCTL=/sbin/brctl
+ '[' -z /etc/net/scripts ']'
+ pickup_options
+ local of prof_of
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename /etc/net/ifaces/eth0/options
++ local CAND BASE=/etc/net/ifaces/eth0/options
++ CAND=/etc/net/ifaces/eth0/options
++ '[' -e /etc/net/ifaces/eth0/options ']'
++ echo /etc/net/ifaces/eth0/options
++ return 0
+ prof_of=/etc/net/ifaces/eth0/options
+ '[' -f /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options
= /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options =
/etc/net/ifaces/eth0/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/eth0/options
+ local f
+ f=/etc/net/ifaces/eth0/options
+ shift
+ '[' -s /etc/net/ifaces/eth0/options ']'
+ . /etc/net/ifaces/eth0/options
++ TYPE=eth
++ DISABLED=no
++ BOOTPROTO=dhcp
++ NM_CONTROLLED=no
++ MODULE=8139too
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename '/etc/net/ifaces/eth0/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/eth0/options.d/*'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ echo '/etc/net/ifaces/eth0/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/eth0/options.d/*'
+ '[' -f '/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' ']'
+ continue
+ is_yes no
+ case "$1" in
+ return 1
+ '[' -z eth ']'
+ '[' -z eth ']'
+ supported_type eth
+ local TYPE=eth
+ '[' -x /etc/net/scripts/create-eth -o -x /etc/net/scripts/destroy-eth ']'
+ return 0
+ for of in '$IFACEDIR/default/options' '$IFACEDIR/default/options.d/*'
++ profiled_filename /etc/net/ifaces/default/options
++ local CAND BASE=/etc/net/ifaces/default/options
++ CAND=/etc/net/ifaces/default/options
++ '[' -e /etc/net/ifaces/default/options ']'
++ echo /etc/net/ifaces/default/options
++ return 0
+ prof_of=/etc/net/ifaces/default/options
+ '[' -f /etc/net/ifaces/default/options -a
/etc/net/ifaces/default/options = /etc/net/ifaces/default/options -a
/etc/net/ifaces/default/options = /etc/net/ifaces/default/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/default/options
+ local f
+ f=/etc/net/ifaces/default/options
+ shift
+ '[' -s /etc/net/ifaces/default/options ']'
+ . /etc/net/ifaces/default/options
++ DISABLED=no
++ BOOTPROTO=dhcp
++ ONBOOT=yes
++ USE_HOTPLUG=no
++ USE_PCMCIA=no
++ CONFIG_IPV4=yes
++ CONFIG_IPV6=no
++ CONFIG_IPX=no
++ CONFIG_QOS=yes
++ CONFIG_WIRELESS=no
++ CONFIG_FW=no
++ KEEP_DOWN=no
++ DONT_FLUSH=no
++ IFUP_CHILDREN=no
++ IFUP_PARENTS=yes
++ IFDOWN_CHILDREN=yes
++ IFDOWN_PARENTS=no
+ for of in '$IFACEDIR/default/options' '$IFACEDIR/default/options.d/*'
++ profiled_filename '/etc/net/ifaces/default/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/default/options.d/*'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ echo '/etc/net/ifaces/default/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/default/options.d/*'
+ '[' -f '/etc/net/ifaces/default/options.d/*' -a
'/etc/net/ifaces/default/options.d/*' =
'/etc/net/ifaces/default/options.d/*' -a
'/etc/net/ifaces/default/options.d/*' =
'/etc/net/ifaces/default/options.d/*' ']'
+ continue
+ for of in '$IFACEDIR/default/options-$TYPE'
'$IFACEDIR/default/options-$TYPE.d/*'
++ profiled_filename /etc/net/ifaces/default/options-eth
++ local CAND BASE=/etc/net/ifaces/default/options-eth
++ CAND=/etc/net/ifaces/default/options-eth
++ '[' -e /etc/net/ifaces/default/options-eth ']'
++ echo /etc/net/ifaces/default/options-eth
++ return 0
+ prof_of=/etc/net/ifaces/default/options-eth
+ '[' -f /etc/net/ifaces/default/options-eth -a
/etc/net/ifaces/default/options-eth =
/etc/net/ifaces/default/options-eth -a
/etc/net/ifaces/default/options-eth =
/etc/net/ifaces/default/options-eth ']'
+ SourceIfNotEmpty /etc/net/ifaces/default/options-eth
+ local f
+ f=/etc/net/ifaces/default/options-eth
+ shift
+ '[' -s /etc/net/ifaces/default/options-eth ']'
+ . /etc/net/ifaces/default/options-eth
++ USE_IFPLUGD=no
++ PERSISTENT_IFPLUGD=no
++ IFPLUGD_EXTRA_ARGS='--delay-up=0 --delay-down=10'
++ LINKDETECT=auto
++ LINKDELAY=5
++ CONFIG_WIRELESS=yes
++ AUTO_BROADCAST=yes
+ for of in '$IFACEDIR/default/options-$TYPE'
'$IFACEDIR/default/options-$TYPE.d/*'
++ profiled_filename '/etc/net/ifaces/default/options-eth.d/*'
++ local CAND 'BASE=/etc/net/ifaces/default/options-eth.d/*'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ echo '/etc/net/ifaces/default/options-eth.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/default/options-eth.d/*'
+ '[' -f '/etc/net/ifaces/default/options-eth.d/*' -a
'/etc/net/ifaces/default/options-eth.d/*' =
'/etc/net/ifaces/default/options-eth.d/*' -a
'/etc/net/ifaces/default/options-eth.d/*' =
'/etc/net/ifaces/default/options-eth.d/*' ']'
+ continue
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename /etc/net/ifaces/eth0/options
++ local CAND BASE=/etc/net/ifaces/eth0/options
++ CAND=/etc/net/ifaces/eth0/options
++ '[' -e /etc/net/ifaces/eth0/options ']'
++ echo /etc/net/ifaces/eth0/options
++ return 0
+ prof_of=/etc/net/ifaces/eth0/options
+ '[' -f /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options
= /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options =
/etc/net/ifaces/eth0/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/eth0/options
+ local f
+ f=/etc/net/ifaces/eth0/options
+ shift
+ '[' -s /etc/net/ifaces/eth0/options ']'
+ . /etc/net/ifaces/eth0/options
++ TYPE=eth
++ DISABLED=no
++ BOOTPROTO=dhcp
++ NM_CONTROLLED=no
++ MODULE=8139too
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename '/etc/net/ifaces/eth0/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/eth0/options.d/*'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ echo '/etc/net/ifaces/eth0/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/eth0/options.d/*'
+ '[' -f '/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' ']'
+ continue
+ SourceIfNotEmpty /etc/net/scripts/functions-eth
+ local f
+ f=/etc/net/scripts/functions-eth
+ shift
+ '[' -s /etc/net/scripts/functions-eth ']'
+ . /etc/net/scripts/functions-eth
+ case $ACTION in
+ . /etc/net/scripts/functions-ipv4
+ config_ipv4_routes_rules del
+ local OP=del
++ profiled_filename /etc/net/ifaces/eth0/ipv4route
++ local CAND BASE=/etc/net/ifaces/eth0/ipv4route
++ CAND=/etc/net/ifaces/eth0/ipv4route
++ '[' -e /etc/net/ifaces/eth0/ipv4route ']'
++ echo /etc/net/ifaces/eth0/ipv4route
++ return 0
+ local SRCFILE=/etc/net/ifaces/eth0/ipv4route
+ local SUFFIX
+ IPV4ADDRESS=($(get_ipv4_addresses $NAME))
++ get_ipv4_addresses eth0
++ local NAME=eth0
+++ /sbin/ip -4 addr show dev eth0
+++ grep -ose '\binet[[:space:]]\+[0-9.]\+'
+++ cut -f2 '-d '
++ printf ''
+ '[' del = del ']'
+ REVERSE='|tac'
+ '[' -s /etc/net/ifaces/eth0/ipv4route ']'
+ eval 'egrep ^[^#] "/etc/net/ifaces/eth0/ipv4route" |tac'
++ egrep '^[^#]' /etc/net/ifaces/eth0/ipv4route
++ tac
+ read FIRST REST
+ process_ipv4rules del
+ local OP=del
+ local REVERSE
+ '[' del = del ']'
+ REVERSE='|tac'
++ profiled_filename /etc/net/ifaces/eth0/ipv4rule
++ local CAND BASE=/etc/net/ifaces/eth0/ipv4rule
++ CAND=/etc/net/ifaces/eth0/ipv4rule
++ '[' -e /etc/net/ifaces/eth0/ipv4rule ']'
++ CAND=/etc/net/ifaces/eth0/ipv4rule
++ '[' -e /etc/net/ifaces/eth0/ipv4rule ']'
++ CAND=/etc/net/ifaces/eth0/ipv4rule
++ '[' -e /etc/net/ifaces/eth0/ipv4rule ']'
++ echo /etc/net/ifaces/eth0/ipv4rule
++ return 0
+ SRCFILE=/etc/net/ifaces/eth0/ipv4rule
+ '[' -s /etc/net/ifaces/eth0/ipv4rule ']'
+ is_yes no
+ case "$1" in
+ return 1
+ /sbin/ip -4 address flush dev eth0
[root@localhost ~]# ifup eth0
+ '[' 4 -ge 2 ']'
+ NAME=eth0
+ ACTION=start
+ eval 'IPV4ADDRESS=()'
++ IPV4ADDRESS=()
+ eval 'IPV6ADDRESS=()'
++ IPV6ADDRESS=()
+ pickup_defaults
+ local of
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options = /etc/net/options -a /etc/net/options =
/etc/net/options ']'
+ SourceIfNotEmpty /etc/net/options
+ local f
+ f=/etc/net/options
+ shift
+ '[' -s /etc/net/options ']'
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options.d/00-default = /etc/net/options.d/00-default -a
/etc/net/options.d/00-default = /etc/net/options.d/00-default ']'
+ SourceIfNotEmpty /etc/net/options.d/00-default
+ local f
+ f=/etc/net/options.d/00-default
+ shift
+ '[' -s /etc/net/options.d/00-default ']'
+ . /etc/net/options.d/00-default
++ SILENT_REMOVABLES=off
++ VLAN_NAMETYPE=DEV_PLUS_VID_NO_PAD
++ IP=/sbin/ip
++ TC=/sbin/tc
++ OVPN=/usr/sbin/openvpn
++ MODPROBE=/sbin/modprobe
++ LSMOD=/sbin/lsmod
++ INSMOD=/sbin/insmod
++ RMMOD=/sbin/rmmod
++ SYSCTL=/sbin/sysctl
++ IFRENAME=/sbin/ifrename
++ TUNCTL=/usr/sbin/tunctl
++ ZCIP_CLIENT=/usr/sbin/avahi-autoipd
++ IPX_INTERFACE=/sbin/ipx_interface
++ IPX_INTERNAL_NET=/sbin/ipx_internal_net
++ IPX_CONFIGURE=/sbin/ipx_configure
++ ALLOW_UNKNOWN=no
++ IPTABLES=/sbin/iptables
++ IP6TABLES=/sbin/ip6tables
++ EBTABLES=/sbin/ebtables
++ GOOD_MODULE_LIST='eepro100 e100 8139too tulip 3c59x hostap
via-rhine sk98lin r8169'
++ NEVER_RMMOD=yes
++ AUTO_BROADCAST=off
++ IFGROUP[0]='lo dummy'
++ IFGROUP[1]='eth plip usb dvb bnep tuntap'
++ IFGROUP[2]='vlan bond bri teql'
++ IFGROUP[3]='iptun ipsectun ovpn ossh'
++ IFGROUP[4]=ppp
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options.d/50-ALTLinux-desktop =
/etc/net/options.d/50-ALTLinux-desktop -a
/etc/net/options.d/50-ALTLinux-desktop =
/etc/net/options.d/50-ALTLinux-desktop ']'
+ SourceIfNotEmpty /etc/net/options.d/50-ALTLinux-desktop
+ local f
+ f=/etc/net/options.d/50-ALTLinux-desktop
+ shift
+ '[' -s /etc/net/options.d/50-ALTLinux-desktop ']'
+ . /etc/net/options.d/50-ALTLinux-desktop
++ RESOLV_POSTIN_CMD=/sbin/update_chrooted
++ RESOLV_POSTIN_ARGS=conf
++ ALLOW_UNKNOWN=on
++ SILENT_REMOVABLES=yes
++ DHCP_CLIENT=/sbin/dhcpcd
++ DHCP_TIMEOUT=30
++ DHCP_GRACE_TIME=2
++ DHCP_HOSTNAME=localhost
++ BRCTL=/sbin/brctl
+ '[' -z /etc/net/scripts ']'
+ pickup_options
+ local of prof_of
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename /etc/net/ifaces/eth0/options
++ local CAND BASE=/etc/net/ifaces/eth0/options
++ CAND=/etc/net/ifaces/eth0/options
++ '[' -e /etc/net/ifaces/eth0/options ']'
++ echo /etc/net/ifaces/eth0/options
++ return 0
+ prof_of=/etc/net/ifaces/eth0/options
+ '[' -f /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options
= /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options =
/etc/net/ifaces/eth0/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/eth0/options
+ local f
+ f=/etc/net/ifaces/eth0/options
+ shift
+ '[' -s /etc/net/ifaces/eth0/options ']'
+ . /etc/net/ifaces/eth0/options
++ TYPE=eth
++ DISABLED=no
++ BOOTPROTO=dhcp
++ NM_CONTROLLED=no
++ MODULE=8139too
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename '/etc/net/ifaces/eth0/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/eth0/options.d/*'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ echo '/etc/net/ifaces/eth0/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/eth0/options.d/*'
+ '[' -f '/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' ']'
+ continue
+ is_yes no
+ case "$1" in
+ return 1
+ '[' -z eth ']'
+ '[' -z eth ']'
+ supported_type eth
+ local TYPE=eth
+ '[' -x /etc/net/scripts/create-eth -o -x /etc/net/scripts/destroy-eth ']'
+ return 0
+ for of in '$IFACEDIR/default/options' '$IFACEDIR/default/options.d/*'
++ profiled_filename /etc/net/ifaces/default/options
++ local CAND BASE=/etc/net/ifaces/default/options
++ CAND=/etc/net/ifaces/default/options
++ '[' -e /etc/net/ifaces/default/options ']'
++ echo /etc/net/ifaces/default/options
++ return 0
+ prof_of=/etc/net/ifaces/default/options
+ '[' -f /etc/net/ifaces/default/options -a
/etc/net/ifaces/default/options = /etc/net/ifaces/default/options -a
/etc/net/ifaces/default/options = /etc/net/ifaces/default/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/default/options
+ local f
+ f=/etc/net/ifaces/default/options
+ shift
+ '[' -s /etc/net/ifaces/default/options ']'
+ . /etc/net/ifaces/default/options
++ DISABLED=no
++ BOOTPROTO=dhcp
++ ONBOOT=yes
++ USE_HOTPLUG=no
++ USE_PCMCIA=no
++ CONFIG_IPV4=yes
++ CONFIG_IPV6=no
++ CONFIG_IPX=no
++ CONFIG_QOS=yes
++ CONFIG_WIRELESS=no
++ CONFIG_FW=no
++ KEEP_DOWN=no
++ DONT_FLUSH=no
++ IFUP_CHILDREN=no
++ IFUP_PARENTS=yes
++ IFDOWN_CHILDREN=yes
++ IFDOWN_PARENTS=no
+ for of in '$IFACEDIR/default/options' '$IFACEDIR/default/options.d/*'
++ profiled_filename '/etc/net/ifaces/default/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/default/options.d/*'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ echo '/etc/net/ifaces/default/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/default/options.d/*'
+ '[' -f '/etc/net/ifaces/default/options.d/*' -a
'/etc/net/ifaces/default/options.d/*' =
'/etc/net/ifaces/default/options.d/*' -a
'/etc/net/ifaces/default/options.d/*' =
'/etc/net/ifaces/default/options.d/*' ']'
+ continue
+ for of in '$IFACEDIR/default/options-$TYPE'
'$IFACEDIR/default/options-$TYPE.d/*'
++ profiled_filename /etc/net/ifaces/default/options-eth
++ local CAND BASE=/etc/net/ifaces/default/options-eth
++ CAND=/etc/net/ifaces/default/options-eth
++ '[' -e /etc/net/ifaces/default/options-eth ']'
++ echo /etc/net/ifaces/default/options-eth
++ return 0
+ prof_of=/etc/net/ifaces/default/options-eth
+ '[' -f /etc/net/ifaces/default/options-eth -a
/etc/net/ifaces/default/options-eth =
/etc/net/ifaces/default/options-eth -a
/etc/net/ifaces/default/options-eth =
/etc/net/ifaces/default/options-eth ']'
+ SourceIfNotEmpty /etc/net/ifaces/default/options-eth
+ local f
+ f=/etc/net/ifaces/default/options-eth
+ shift
+ '[' -s /etc/net/ifaces/default/options-eth ']'
+ . /etc/net/ifaces/default/options-eth
++ USE_IFPLUGD=no
++ PERSISTENT_IFPLUGD=no
++ IFPLUGD_EXTRA_ARGS='--delay-up=0 --delay-down=10'
++ LINKDETECT=auto
++ LINKDELAY=5
++ CONFIG_WIRELESS=yes
++ AUTO_BROADCAST=yes
+ for of in '$IFACEDIR/default/options-$TYPE'
'$IFACEDIR/default/options-$TYPE.d/*'
++ profiled_filename '/etc/net/ifaces/default/options-eth.d/*'
++ local CAND 'BASE=/etc/net/ifaces/default/options-eth.d/*'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ echo '/etc/net/ifaces/default/options-eth.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/default/options-eth.d/*'
+ '[' -f '/etc/net/ifaces/default/options-eth.d/*' -a
'/etc/net/ifaces/default/options-eth.d/*' =
'/etc/net/ifaces/default/options-eth.d/*' -a
'/etc/net/ifaces/default/options-eth.d/*' =
'/etc/net/ifaces/default/options-eth.d/*' ']'
+ continue
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename /etc/net/ifaces/eth0/options
++ local CAND BASE=/etc/net/ifaces/eth0/options
++ CAND=/etc/net/ifaces/eth0/options
++ '[' -e /etc/net/ifaces/eth0/options ']'
++ echo /etc/net/ifaces/eth0/options
++ return 0
+ prof_of=/etc/net/ifaces/eth0/options
+ '[' -f /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options
= /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options =
/etc/net/ifaces/eth0/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/eth0/options
+ local f
+ f=/etc/net/ifaces/eth0/options
+ shift
+ '[' -s /etc/net/ifaces/eth0/options ']'
+ . /etc/net/ifaces/eth0/options
++ TYPE=eth
++ DISABLED=no
++ BOOTPROTO=dhcp
++ NM_CONTROLLED=no
++ MODULE=8139too
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename '/etc/net/ifaces/eth0/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/eth0/options.d/*'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ echo '/etc/net/ifaces/eth0/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/eth0/options.d/*'
+ '[' -f '/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' ']'
+ continue
+ SourceIfNotEmpty /etc/net/scripts/functions-eth
+ local f
+ f=/etc/net/scripts/functions-eth
+ shift
+ '[' -s /etc/net/scripts/functions-eth ']'
+ . /etc/net/scripts/functions-eth
+ case $ACTION in
+ . /etc/net/scripts/functions-ipv4
+ is_yes no
+ case "$1" in
+ return 1
+ /sbin/ip -4 address flush dev eth0
+ print_progress
+ is_yes ''
+ case "$1" in
+ return 1
+ return 0
+ iface_is_up eth0
+ local NAME=eth0
+ /sbin/ip -o link show dev eth0
+ cut '-d ' -f3
+ grep -qs '[<,]UP[,>]'
+ case "$BOOTPROTO" in
+ try_dhcp
+ '[' -x /sbin/dhcpcd ']'
+ need_detection
+ '[' eth = eth ']'
+ case "${1:-$LINKDETECT}" in
+ '[' -x /usr/sbin/ifplugstatus ']'
+ local driver pick
+ '[' -n 8139too ']'
+ driver=8139too
+ for pick in '$GOOD_MODULE_LIST'
+ '[' eepro100 = 8139too ']'
+ for pick in '$GOOD_MODULE_LIST'
+ '[' e100 = 8139too ']'
+ 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
+ local RET=0
+ '[' 0 '!=' 0 ']'
+ print_progress
+ is_yes ''
+ case "$1" in
+ return 1
+ return 0
+ return 0
+ config_ipv4_routes_rules add
+ local OP=add
++ profiled_filename /etc/net/ifaces/eth0/ipv4route
++ local CAND BASE=/etc/net/ifaces/eth0/ipv4route
++ CAND=/etc/net/ifaces/eth0/ipv4route
++ '[' -e /etc/net/ifaces/eth0/ipv4route ']'
++ echo /etc/net/ifaces/eth0/ipv4route
++ return 0
+ local SRCFILE=/etc/net/ifaces/eth0/ipv4route
+ local SUFFIX
+ IPV4ADDRESS=($(get_ipv4_addresses $NAME))
++ get_ipv4_addresses eth0
++ local NAME=eth0
+++ /sbin/ip -4 addr show dev eth0
+++ grep -ose '\binet[[:space:]]\+[0-9.]\+'
+++ cut -f2 '-d '
++ printf 92.101.166.100
+ '[' add = del ']'
+ '[' -s /etc/net/ifaces/eth0/ipv4route ']'
+ eval 'egrep ^[^#] "/etc/net/ifaces/eth0/ipv4route" '
++ egrep '^[^#]' /etc/net/ifaces/eth0/ipv4route
+ read FIRST REST
+ process_ipv4rules add
+ local OP=add
+ local REVERSE
+ '[' add = del ']'
++ profiled_filename /etc/net/ifaces/eth0/ipv4rule
++ local CAND BASE=/etc/net/ifaces/eth0/ipv4rule
++ CAND=/etc/net/ifaces/eth0/ipv4rule
++ '[' -e /etc/net/ifaces/eth0/ipv4rule ']'
++ CAND=/etc/net/ifaces/eth0/ipv4rule
++ '[' -e /etc/net/ifaces/eth0/ipv4rule ']'
++ CAND=/etc/net/ifaces/eth0/ipv4rule
++ '[' -e /etc/net/ifaces/eth0/ipv4rule ']'
++ echo /etc/net/ifaces/eth0/ipv4rule
++ return 0
+ SRCFILE=/etc/net/ifaces/eth0/ipv4rule
+ '[' -s /etc/net/ifaces/eth0/ipv4rule ']'
--
Владимир Головин
tarnoga@gmail.com
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-12 16:26 ` Владимир Головин
@ 2008-11-12 20:08 ` Kharitonov A. Dmitry
2008-11-12 21:05 ` Владимир Головин
0 siblings, 1 reply; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-12 20:08 UTC (permalink / raw)
To: ALT Linux Community general discussions
> + 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
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-12 20:08 ` Kharitonov A. Dmitry
@ 2008-11-12 21:05 ` Владимир Головин
2008-11-13 3:35 ` Kharitonov A. Dmitry
0 siblings, 1 reply; 28+ messages in thread
From: Владимир Головин @ 2008-11-12 21:05 UTC (permalink / raw)
To: ALT Linux Community general discussions
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
--
Владимир Головин
tarnoga@gmail.com
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-12 21:05 ` Владимир Головин
@ 2008-11-13 3:35 ` Kharitonov A. Dmitry
2008-11-13 10:42 ` Владимир Головин
0 siblings, 1 reply; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-13 3:35 UTC (permalink / raw)
To: ALT Linux Community general discussions
Владимир Головин пишет:
> 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
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-13 3:35 ` Kharitonov A. Dmitry
@ 2008-11-13 10:42 ` Владимир Головин
2008-11-13 12:16 ` Kharitonov A. Dmitry
2008-11-13 20:35 ` Kharitonov A. Dmitry
0 siblings, 2 replies; 28+ messages in thread
From: Владимир Головин @ 2008-11-13 10:42 UTC (permalink / raw)
To: ALT Linux Community general discussions
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
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-13 10:42 ` Владимир Головин
@ 2008-11-13 12:16 ` Kharitonov A. Dmitry
2008-11-13 20:35 ` Kharitonov A. Dmitry
1 sibling, 0 replies; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-13 12:16 UTC (permalink / raw)
To: ALT Linux Community general discussions
Владимир Головин пишет:
> 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
>
Однозначно у вас не правильно настроен модем.
Вы его или в режим моста переведите, что не рекомендуется (не безопасно)
или настройте нат и правильно dhcp.
Покажите настройки dhcp на модеме.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-13 10:42 ` Владимир Головин
2008-11-13 12:16 ` Kharitonov A. Dmitry
@ 2008-11-13 20:35 ` Kharitonov A. Dmitry
2008-11-13 21:54 ` Владимир Головин
1 sibling, 1 reply; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-13 20:35 UTC (permalink / raw)
To: ALT Linux Community general discussions
Владимир Головин пишет:
> 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
>
Владимир, может вам объяснить как работает сеть и тогда вам станет
понятно, где у вас ошибка и как её исправить?
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-13 20:35 ` Kharitonov A. Dmitry
@ 2008-11-13 21:54 ` Владимир Головин
2008-11-14 15:05 ` Kharitonov A. Dmitry
0 siblings, 1 reply; 28+ messages in thread
From: Владимир Головин @ 2008-11-13 21:54 UTC (permalink / raw)
To: ALT Linux Community general discussions
> Владимир, может вам объяснить как работает сеть и тогда вам станет понятно,
> где у вас ошибка и как её исправить?
Сомневаюсь :(
Насколько я понимаю модем по адресу 192.168.1.1 должен отвечать так или иначе?
Это же самый простейший вариант настройки, прошивка с сайта Авангарда.
Все Windows работают с ним с дефолтными настройками (на своем
компьютере, правда, не пробовал). ALD 4.0 тоже работает (меняю
винчестер и загружаюсь).
Буду дальше пытаться.
--
Владимир Головин
tarnoga@gmail.com
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-13 21:54 ` Владимир Головин
@ 2008-11-14 15:05 ` Kharitonov A. Dmitry
2008-11-15 12:53 ` Владимир Головин
0 siblings, 1 reply; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-14 15:05 UTC (permalink / raw)
To: ALT Linux Community general discussions
Владимир Головин пишет:
>> Владимир, может вам объяснить как работает сеть и тогда вам станет понятно,
>> где у вас ошибка и как её исправить?
>>
>
>
> Сомневаюсь :(
> Насколько я понимаю модем по адресу 192.168.1.1 должен отвечать так или иначе?
>
В вашем случае нет. У вас не прописан маршрут к сети, по которой
откликается модем. По этому вы и получаете сообщение, что сеть недоступна.
> Это же самый простейший вариант настройки, прошивка с сайта Авангарда.
> Все Windows работают с ним с дефолтными настройками (на своем
> компьютере, правда, не пробовал). ALD 4.0 тоже работает (меняю
> винчестер и загружаюсь).
>
Значит в 4.0 маршруты прописаны вручную.
покажите из 4.0
cat /var/lib/dhcpcd/dhcpcd-eth0.info
Маршруты должен давать сам модем, если у вас включен нат, или провайдер,
если у вас включен мост (бридж). В режиме моста модем прозрачен, к нему
нет доступа.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-14 15:05 ` Kharitonov A. Dmitry
@ 2008-11-15 12:53 ` Владимир Головин
2008-11-16 14:16 ` Kharitonov A. Dmitry
0 siblings, 1 reply; 28+ messages in thread
From: Владимир Головин @ 2008-11-15 12:53 UTC (permalink / raw)
To: ALT Linux Community general discussions
14 ноября 2008 г. 18:05 пользователь Kharitonov A. Dmitry
<kharpost@rambler.ru> написал:
> Владимир Головин пишет:
>>>
>>> Владимир, может вам объяснить как работает сеть и тогда вам станет
>>> понятно,
>>> где у вас ошибка и как её исправить?
>>>
>>
>>
>> Сомневаюсь :(
>> Насколько я понимаю модем по адресу 192.168.1.1 должен отвечать так или
>> иначе?
>>
>
> В вашем случае нет. У вас не прописан маршрут к сети, по которой откликается
> модем. По этому вы и получаете сообщение, что сеть недоступна.
>>
>> Это же самый простейший вариант настройки, прошивка с сайта Авангарда.
>> Все Windows работают с ним с дефолтными настройками (на своем
>> компьютере, правда, не пробовал). ALD 4.0 тоже работает (меняю
>> винчестер и загружаюсь).
>>
>
> Значит в 4.0 маршруты прописаны вручную.
> покажите из 4.0
> cat /var/lib/dhcpcd/dhcpcd-eth0.info
>
[root@shpd-78-36-184-213 lib]# cat /etc/dhcpc/dhcpcd-eth0.info
IPADDR=78.36.184.213
NETMASK=255.255.255.0
NETWORK=78.36.184.0
BROADCAST=78.36.184.255
GATEWAY=78.36.160.1
HOSTNAME='shpd-78-36-184-213.static.vologda.ru'
DNS=78.36.171.200,212.48.193.36
DHCPSID=192.168.1.1
DHCPGIADDR=0.0.0.0
DHCPSIADDR=0.0.0.0
DHCPCHADDR=00:14:D1:31:73:54
DHCPSHADDR=00:1B:11:75:90:27
DHCPSNAME=''
LEASETIME=30
RENEWALTIME=15
REBINDTIME=26
INTERFACE='eth0'
CLASSID='Linux 2.6.18-std-smp-alt7 i686'
CLIENTID=00:14:D1:31:73:54
> Маршруты должен давать сам модем, если у вас включен нат, или провайдер,
> если у вас включен мост (бридж). В режиме моста модем прозрачен, к нему нет
> доступа.
>
nat в модеме вообще не было. Теперь я залил в него прошивку от
DSL-2500, который роутер и нат в нем есть. Попробую настроить без
DHCP.
--
Владимир Головин
tarnoga@gmail.com
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] ADSL в ALD4.1
2008-11-15 12:53 ` Владимир Головин
@ 2008-11-16 14:16 ` Kharitonov A. Dmitry
0 siblings, 0 replies; 28+ messages in thread
From: Kharitonov A. Dmitry @ 2008-11-16 14:16 UTC (permalink / raw)
To: ALT Linux Community general discussions
Владимир Головин пишет:
> 14 ноября 2008 г. 18:05 пользователь Kharitonov A. Dmitry
> <kharpost@rambler.ru> написал:
>
>> Владимир Головин пишет:
>>
>>>> Владимир, может вам объяснить как работает сеть и тогда вам станет
>>>> понятно,
>>>> где у вас ошибка и как её исправить?
>>>>
>>>>
>>> Сомневаюсь :(
>>> Насколько я понимаю модем по адресу 192.168.1.1 должен отвечать так или
>>> иначе?
>>>
>>>
>> В вашем случае нет. У вас не прописан маршрут к сети, по которой откликается
>> модем. По этому вы и получаете сообщение, что сеть недоступна.
>>
>>> Это же самый простейший вариант настройки, прошивка с сайта Авангарда.
>>> Все Windows работают с ним с дефолтными настройками (на своем
>>> компьютере, правда, не пробовал). ALD 4.0 тоже работает (меняю
>>> винчестер и загружаюсь).
>>>
>>>
>> Значит в 4.0 маршруты прописаны вручную.
>> покажите из 4.0
>> cat /var/lib/dhcpcd/dhcpcd-eth0.info
>>
>>
>
> [root@shpd-78-36-184-213 lib]# cat /etc/dhcpc/dhcpcd-eth0.info
> IPADDR=78.36.184.213
> NETMASK=255.255.255.0
> NETWORK=78.36.184.0
> BROADCAST=78.36.184.255
> GATEWAY=78.36.160.1
> HOSTNAME='shpd-78-36-184-213.static.vologda.ru'
> DNS=78.36.171.200,212.48.193.36
> DHCPSID=192.168.1.1
> DHCPGIADDR=0.0.0.0
> DHCPSIADDR=0.0.0.0
> DHCPCHADDR=00:14:D1:31:73:54
> DHCPSHADDR=00:1B:11:75:90:27
> DHCPSNAME=''
> LEASETIME=30
> RENEWALTIME=15
> REBINDTIME=26
> INTERFACE='eth0'
> CLASSID='Linux 2.6.18-std-smp-alt7 i686'
> CLIENTID=00:14:D1:31:73:54
>
>
>> Маршруты должен давать сам модем, если у вас включен нат, или провайдер,
>> если у вас включен мост (бридж). В режиме моста модем прозрачен, к нему нет
>> доступа.
>>
>>
> nat в модеме вообще не было. Теперь я залил в него прошивку от
> DSL-2500, который роутер и нат в нем есть. Попробую настроить без
> DHCP.
>
Попробуйте переустановить пакет etcnet из бранча
^ permalink raw reply [flat|nested] 28+ messages in thread
end of thread, other threads:[~2008-11-16 14:16 UTC | newest]
Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-08 14:55 ` [Comm] ADSL в ALD4.1 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 ` Владимир Головин
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
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