* [sisyphus] Смена MAC-адреса для USB-устройства. @ 2008-05-26 20:06 Alexei V. Mezin 2008-05-27 14:21 ` Epiphanov Sergei 2008-05-27 18:13 ` Alexei V. Mezin 0 siblings, 2 replies; 12+ messages in thread From: Alexei V. Mezin @ 2008-05-26 20:06 UTC (permalink / raw) To: sisyphus Какое-то странное поведение наблюдается: есть кабельный модем, который я вынужден подключать по USB. У провайдера за моим подключением значится MAC-адрес сетевухи, а не USB-подключения. Записал в /etc/net/ifaces/eth1/iplink строку address 00:01:6c:d4:6a:10 Под 2.6.18-std-smp-alt12 не работает. Под 2.6.24-std-def-alt8 работает. Сегодня обновился (кстати, с чего это dist-upgrade затронул и ядро? никогда раньше такого не было, при этом lilo.conf оказался без дефолтного варианта загрузки!) до 2.6.25-std-def1. Снова НЕ РАБОТАЕТ. Куда копать? На что вешать? ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Смена MAC-адреса для USB-устройства. 2008-05-26 20:06 [sisyphus] Смена MAC-адреса для USB-устройства Alexei V. Mezin @ 2008-05-27 14:21 ` Epiphanov Sergei 2008-05-27 14:33 ` Led 2008-05-27 18:13 ` Alexei V. Mezin 1 sibling, 1 reply; 12+ messages in thread From: Epiphanov Sergei @ 2008-05-27 14:21 UTC (permalink / raw) To: alexei-mezin, ALT Linux Sisyphus discussions В сообщении от Tuesday 27 May 2008 00:06:54 Alexei V. Mezin написал(а): > Какое-то странное поведение наблюдается: > > есть кабельный модем, который я вынужден подключать по USB. У провайдера > за моим подключением значится MAC-адрес сетевухи, а не USB-подключения. > > Записал в /etc/net/ifaces/eth1/iplink строку > address 00:01:6c:d4:6a:10 > > Под 2.6.18-std-smp-alt12 не работает. Под 2.6.24-std-def-alt8 работает. > Сегодня обновился (кстати, с чего это dist-upgrade затронул и ядро? > никогда раньше такого не было, при этом lilo.conf оказался без > дефолтного варианта загрузки!) до 2.6.25-std-def1. Снова НЕ РАБОТАЕТ. > Куда копать? На что вешать? Хех, а у меня с какого-то перепугу сменился MAC-адрес сетевухи после установки и перезагрузки под ядро 2.6.24-ice-wks. Компьютер не менялся (сетевуха встроена в материнку), настроек на смену MAC нет. :-) -- С уважением, Епифанов Сергей ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Смена MAC-адреса для USB-устройства. 2008-05-27 14:21 ` Epiphanov Sergei @ 2008-05-27 14:33 ` Led 2008-05-28 7:23 ` Epiphanov Sergei 0 siblings, 1 reply; 12+ messages in thread From: Led @ 2008-05-27 14:33 UTC (permalink / raw) To: ALT Linux Sisyphus discussions Tuesday, 27 May 2008 17:21:29 Epiphanov Sergei написав: > В сообщении от Tuesday 27 May 2008 00:06:54 Alexei V. Mezin написал(а): > > Какое-то странное поведение наблюдается: > > > > есть кабельный модем, который я вынужден подключать по USB. У провайдера > > за моим подключением значится MAC-адрес сетевухи, а не USB-подключения. > > > > Записал в /etc/net/ifaces/eth1/iplink строку > > address 00:01:6c:d4:6a:10 > > > > Под 2.6.18-std-smp-alt12 не работает. Под 2.6.24-std-def-alt8 работает. > > Сегодня обновился (кстати, с чего это dist-upgrade затронул и ядро? > > никогда раньше такого не было, при этом lilo.conf оказался без > > дефолтного варианта загрузки!) до 2.6.25-std-def1. Снова НЕ РАБОТАЕТ. > > Куда копать? На что вешать? > > Хех, а у меня с какого-то перепугу сменился MAC-адрес сетевухи после > установки и перезагрузки под ядро 2.6.24-ice-wks. Компьютер не менялся > (сетевуха встроена в материнку), настроек на смену MAC нет. :-) После перезакгрузки с КАКОГО ядра? Какой адаптер? Сменился с какого MAC-адреса на какой? -- Led ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Смена MAC-адреса для USB-устройства. 2008-05-27 14:33 ` Led @ 2008-05-28 7:23 ` Epiphanov Sergei 2008-05-28 7:38 ` Led 0 siblings, 1 reply; 12+ messages in thread From: Epiphanov Sergei @ 2008-05-28 7:23 UTC (permalink / raw) To: ALT Linux Sisyphus discussions В сообщении от Tuesday 27 May 2008 18:33:11 Led написал(а): > > Хех, а у меня с какого-то перепугу сменился MAC-адрес сетевухи после > > установки и перезагрузки под ядро 2.6.24-ice-wks. Компьютер не менялся > > (сетевуха встроена в материнку), настроек на смену MAC нет. :-) > > После перезакгрузки с КАКОГО ядра? Какой адаптер? Сменился с какого > MAC-адреса на какой? Подробности: было ядро 2.6.18-wks-smp-alt2 (+Сизиф от 17.10.2007), самосборный модуль atl1 с диска для материнки ASUS P5K для встроенного в материнку сетевого адаптера. Обновил весь Сизиф, установил ядро 2.6.24-ice-wks-alt5 (+Сизиф с прошлых выходных), модуль atl1 из комплекта этого ядра. # lspci -vv: ... 02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0) Subsystem: ASUSTeK Computer Inc. Device 8226 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 32 bytes Interrupt: pin A routed to IRQ 219 Region 0: Memory at fe9c0000 (64-bit, non-prefetchable) [size=256K] Expansion ROM at fe9a0000 [disabled] [size=128K] Capabilities: [40] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Capabilities: [48] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable+ Address: 00000000fee0300c Data: 4142 Capabilities: [58] Express (v1) Endpoint, MSI 00 DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited ExtTag- AttnBtn+ AttnInd+ PwrInd+ RBE- FLReset- DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported- RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop- MaxPayload 128 bytes, MaxReadReq 512 bytes DevSta: CorrErr- UncorrErr+ FatalErr- UnsuppReq+ AuxPwr+ TransPend- LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s, Latency L0 unlimited, L1 unlimited ClockPM- Suprise- LLActRep- BwNot- LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+ ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt- Kernel driver in use: atl1 Kernel modules: atl1 ... Вот кусок сообщения от arpwatch: hostname: name ip address: 192.168.1.2 ethernet address: 0:1b:fc:96:e6:88 ethernet vendor: <unknown> old ethernet address: 0:13:74:0:5c:38 old ethernet vendor: Attansic Technology Corp. В результате не поднялась сеть, так как в iftab есть привязка имени сетевого интерфейса к MAC-адресу. Нигде, кроме как записей в /etc/net/iftab вида net1 mac aa:bb:cc:dd:ee:ff нет упоминаний о MAC-адресах хотя бы одного адаптера. -- С уважением, Епифанов Сергей ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Смена MAC-адреса для USB-устройства. 2008-05-28 7:23 ` Epiphanov Sergei @ 2008-05-28 7:38 ` Led 2008-05-28 8:17 ` Epiphanov Sergei 0 siblings, 1 reply; 12+ messages in thread From: Led @ 2008-05-28 7:38 UTC (permalink / raw) To: ALT Linux Sisyphus discussions Wednesday, 28 May 2008 10:23:19 Epiphanov Sergei написав: > В сообщении от Tuesday 27 May 2008 18:33:11 Led написал(а): > > > Хех, а у меня с какого-то перепугу сменился MAC-адрес сетевухи после > > > установки и перезагрузки под ядро 2.6.24-ice-wks. Компьютер не менялся > > > (сетевуха встроена в материнку), настроек на смену MAC нет. :-) > > > > После перезакгрузки с КАКОГО ядра? Какой адаптер? Сменился с какого > > MAC-адреса на какой? > > Подробности: было ядро 2.6.18-wks-smp-alt2 (+Сизиф от 17.10.2007), > самосборный модуль atl1 с диска для материнки ASUS P5K для встроенного в > материнку сетевого адаптера. Обновил весь Сизиф, установил ядро > 2.6.24-ice-wks-alt5 (+Сизиф с прошлых выходных), модуль atl1 из комплекта > этого ядра. В случае с 2.6.18 в dmesg нет упоминаний о том, что мак-адрес назначается драйвером, а не берётся нативный? -- Led ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Смена MAC-адреса для USB-устройства. 2008-05-28 7:38 ` Led @ 2008-05-28 8:17 ` Epiphanov Sergei 2008-05-28 8:30 ` Led 0 siblings, 1 reply; 12+ messages in thread From: Epiphanov Sergei @ 2008-05-28 8:17 UTC (permalink / raw) To: ALT Linux Sisyphus discussions В сообщении от Wednesday 28 May 2008 11:38:57 Led написал(а): > В случае с 2.6.18 в dmesg нет упоминаний о том, что мак-адрес назначается > драйвером, а не берётся нативный? Никаких упоминаний. Единственно, с предыдущим ядром были строки вида при запуске сети: May 26 11:12:37 name kernel: ATL1: net1 NIC Link is Up<100 Mbps Full Duplex> Новое ядро (и новый модуль) даже этого не говорят. -- С уважением, Епифанов Сергей ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Смена MAC-адреса для USB-устройства. 2008-05-28 8:17 ` Epiphanov Sergei @ 2008-05-28 8:30 ` Led 0 siblings, 0 replies; 12+ messages in thread From: Led @ 2008-05-28 8:30 UTC (permalink / raw) To: ALT Linux Sisyphus discussions Wednesday, 28 May 2008 11:17:19 Epiphanov Sergei написав: > В сообщении от Wednesday 28 May 2008 11:38:57 Led написал(а): > > В случае с 2.6.18 в dmesg нет упоминаний о том, что мак-адрес назначается > > драйвером, а не берётся нативный? > > Никаких упоминаний. Единственно, с предыдущим ядром были строки вида при > запуске сети: > > May 26 11:12:37 name kernel: ATL1: net1 NIC Link is Up<100 Mbps Full > Duplex> > > Новое ядро (и новый модуль) даже этого не говорят. Странно. Осталось установить: какой из драйверов показывает правильный мак-адрес... Похожая проблема была с forcedeth: драйвер из 2.6.18 неправильно считывал мак-адрес (пока драйвер не обновили) -- Led ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Смена MAC-адреса для USB-устройства. 2008-05-26 20:06 [sisyphus] Смена MAC-адреса для USB-устройства Alexei V. Mezin 2008-05-27 14:21 ` Epiphanov Sergei @ 2008-05-27 18:13 ` Alexei V. Mezin 2008-05-28 15:17 ` Denis Ovsienko 1 sibling, 1 reply; 12+ messages in thread From: Alexei V. Mezin @ 2008-05-27 18:13 UTC (permalink / raw) To: sisyphus Alexei V. Mezin пишет: > > Какое-то странное поведение наблюдается: > > есть кабельный модем, который я вынужден подключать по USB. У провайдера > за моим подключением значится MAC-адрес сетевухи, а не USB-подключения. > > Записал в /etc/net/ifaces/eth1/iplink строку > address 00:01:6c:d4:6a:10 > > Под 2.6.18-std-smp-alt12 не работает. Под 2.6.24-std-def-alt8 работает. > Сегодня обновился (кстати, с чего это dist-upgrade затронул и ядро? > никогда раньше такого не было, при этом lilo.conf оказался без > дефолтного варианта загрузки!) до 2.6.25-std-def1. Снова НЕ РАБОТАЕТ. > Куда копать? На что вешать? "Откатился" на 2.6.24-std-ll, снова все работает. Значит проблема определенно в 25 версии ядра. Вешать багу на ядро? Или на то, что переименовывает интерфейсы? (кстати, а кто это делает?) ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Смена MAC-адреса для USB-устройства. 2008-05-27 18:13 ` Alexei V. Mezin @ 2008-05-28 15:17 ` Denis Ovsienko 2008-05-28 15:32 ` Alexei V. Mezin 0 siblings, 1 reply; 12+ messages in thread From: Denis Ovsienko @ 2008-05-28 15:17 UTC (permalink / raw) To: sisyphus > "Откатился" на 2.6.24-std-ll, снова все работает. Значит проблема > определенно в 25 версии ядра. Вешать багу на ядро? Или на то, что > переименовывает интерфейсы? (кстати, а кто это делает?) Возьмусь предположить, что модуль этого интерфейса сначала создаёт интерфейс, потом ничего не делает (в это время в окружающем мире что-то происходит, в частности, работает etcnet), затем счастливо назначает интерфейсу MAC-адрес. Может помочь использование опций MACADDR_WAITTIME или LINKDELAY. А касательно переименования --- не знаю, что именно вы имеете в виду, поэтому предлагаю не поднимать этот вопрос до разрешения текущего. -- DO4-UANIC ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Смена MAC-адреса для USB-устройства. 2008-05-28 15:17 ` Denis Ovsienko @ 2008-05-28 15:32 ` Alexei V. Mezin 2008-05-28 20:05 ` Alexei V. Mezin 0 siblings, 1 reply; 12+ messages in thread From: Alexei V. Mezin @ 2008-05-28 15:32 UTC (permalink / raw) To: ALT Linux Sisyphus discussions Denis Ovsienko пишет: > Возьмусь предположить, что модуль этого интерфейса сначала создаёт > интерфейс, потом ничего не делает (в это время в окружающем мире что-то > происходит, в частности, работает etcnet), затем счастливо назначает > интерфейсу MAC-адрес. Может помочь использование опций MACADDR_WAITTIME > или LINKDELAY. Это опции etcnet? В файл iplink? > > А касательно переименования --- не знаю, что именно вы имеете в виду, > поэтому предлагаю не поднимать этот вопрос до разрешения текущего. > Прощения прошу, неверно выразился: не "переименовывает", а переписывает MAC. Хотя с переименованием eth1 в akado тоже не вышло, но там еще не понял, почему именно. Как раз отложил до решения первой проблемы. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Смена MAC-адреса для USB-устройства. 2008-05-28 15:32 ` Alexei V. Mezin @ 2008-05-28 20:05 ` Alexei V. Mezin 2008-06-01 14:19 ` Alexei V. Mezin 0 siblings, 1 reply; 12+ messages in thread From: Alexei V. Mezin @ 2008-05-28 20:05 UTC (permalink / raw) To: sisyphus Alexei V. Mezin пишет: > Denis Ovsienko пишет: > >> Возьмусь предположить, что модуль этого интерфейса сначала создаёт >> интерфейс, потом ничего не делает (в это время в окружающем мире что-то >> происходит, в частности, работает etcnet), затем счастливо назначает >> интерфейсу MAC-адрес. Может помочь использование опций MACADDR_WAITTIME >> или LINKDELAY. > > Это опции etcnet? В файл iplink? Так, поскольку сегодня все загрузилось в 2.4.25 без проблем, то очень похоже на гонку, кто раньше переопределит MAC. Вписал MACADDR_WAITTIME куда следует, погляжу, что получится. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [sisyphus] Смена MAC-адреса для USB-устройства. 2008-05-28 20:05 ` Alexei V. Mezin @ 2008-06-01 14:19 ` Alexei V. Mezin 0 siblings, 0 replies; 12+ messages in thread From: Alexei V. Mezin @ 2008-06-01 14:19 UTC (permalink / raw) To: sisyphus Alexei V. Mezin пишет: > Alexei V. Mezin пишет: >> Denis Ovsienko пишет: >> >>> Возьмусь предположить, что модуль этого интерфейса сначала создаёт >>> интерфейс, потом ничего не делает (в это время в окружающем мире что-то >>> происходит, в частности, работает etcnet), затем счастливо назначает >>> интерфейсу MAC-адрес. Может помочь использование опций MACADDR_WAITTIME >>> или LINKDELAY. >> >> Это опции etcnet? В файл iplink? > > Так, поскольку сегодня все загрузилось в 2.4.25 без проблем, то очень > похоже на гонку, кто раньше переопределит MAC. Вписал MACADDR_WAITTIME > куда следует, погляжу, что получится. Нет. Снова слетает MAC-адрес. MACADDR_WAITTIME=30 не помогает. ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2008-06-01 14:19 UTC | newest] Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-05-26 20:06 [sisyphus] Смена MAC-адреса для USB-устройства Alexei V. Mezin 2008-05-27 14:21 ` Epiphanov Sergei 2008-05-27 14:33 ` Led 2008-05-28 7:23 ` Epiphanov Sergei 2008-05-28 7:38 ` Led 2008-05-28 8:17 ` Epiphanov Sergei 2008-05-28 8:30 ` Led 2008-05-27 18:13 ` Alexei V. Mezin 2008-05-28 15:17 ` Denis Ovsienko 2008-05-28 15:32 ` Alexei V. Mezin 2008-05-28 20:05 ` Alexei V. Mezin 2008-06-01 14:19 ` Alexei V. Mezin
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git