ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] 2 сетевые карты меняются местами
Date: Fri, 19 May 2006 16:37:41 +0400
Message-ID: <20060519123741.GC19254@master.mivlgu.local> (raw)
In-Reply-To: <446DB8F6.3010601@altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 1768 bytes --]

On Fri, May 19, 2006 at 03:24:22PM +0300, Andrei Bulava wrote:
> Что-то у меня не очень получилось с ifrename. Ситуация: два сетевых
> интерфейса, по моей задумке eth0: 8139too и eth1: forcedeth. Так вот,
> если ifrename запускать после того, как модули уже загружены в обратном
> порядке (первым пошёл forcedeth и занял eth0, а вторым пошёл 8139too и
> ему достался eth1), то переименование не выходит:
> 
> # /etc/init.d/network start
> Computing interface groups: ... 3 interfaces found
> Starting group 0/virtual (1 interfaces)
>         Starting lo: .....OK
> Starting group 1/realphys (2 interfaces)
>         Starting eth0: .Error: cannot change name of eth1 to eth0: File
> exists
> ......OK
>         Starting eth1: .Error: cannot change name of eth0 to eth1:
> Device or resource busy
> ....OK
> Processing /etc/net/vlantab: empty.

Чтобы ifrename работал надёжно, нужно, чтобы назначаемые администратором
имена не пересекались с именами, автоматически выбираемыми ядром.  Т.е.,
придётся вместо имён вида eth[0-9]* использовать что-то другое.

Вроде бы при переименовании интерфейсов средствами udev эта проблема
обходится (udev при невозможности переименовать интерфейс из-за занятости
имени назначает для интерфейса временное имя, после чего некоторое время
ждёт освобождения нужного имени), но всё равно это выглядит как-то
ненадёжно.

> И только когда я внёс модули forcedeth и 8139too в
> /etc/hotplug/blacklist, мне удалось получить нормальный порядок интерфейсов.
> 
> Кстати, будет ли альтернативой внесению всех имеющихся модулей сетевых
> карт изменение на NETPLUG=no в /etc/sysconfig/hotplug?

Менять /etc/sysconfig/hotplug теперь бесполезно - модули теперь грузятся
существенно раньше, ещё при запуске udev.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2006-05-19 12:37 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-16 10:57 Pavel Shurubura
2006-05-16 11:10 ` Шенцев Алексей Владимирович
2006-05-16 11:24   ` Andrei Bulava
2006-05-16 11:51     ` Шенцев Алексей Владимирович
2006-05-16 11:57       ` Шенцев Алексей Владимирович
2006-05-16 12:10       ` Шенцев Алексей Владимирович
2006-05-21  7:54     ` Michael Shigorin
2006-05-22  5:18       ` Шенцев Алексей Владимирович
2006-05-22  5:40         ` Michael Shigorin
2006-05-16 11:32   ` Anton Farygin
2006-05-16 11:48     ` Sergey Vlasov
2006-05-16 12:02       ` Anton Farygin
2006-05-16 12:11         ` Anton Gorlov
2006-05-19 12:24         ` Andrei Bulava
2006-05-19 12:29           ` Шенцев Алексей Владимирович
2006-05-19 12:37           ` Sergey Vlasov [this message]
2006-05-19 13:40             ` Andrei Bulava
2006-05-21  7:57               ` Michael Shigorin
2006-05-19 12:39           ` Yuriy Kashirin
2006-05-19 12:40           ` Kirill A. Shutemov
2006-05-19 13:38             ` Anton Gorlov
2006-05-21  7:59               ` Michael Shigorin
2006-05-21 10:45                 ` Anton Gorlov
2006-05-18 12:25   ` Pavel Shurubura
2006-05-18 12:33     ` Anton Gorlov
2006-05-18 12:59     ` Sergey Vlasov
2006-05-16 11:11 ` Anton Gorlov
2006-05-16 11:27   ` Andrei Bulava
2006-05-21  7:52     ` Michael Shigorin
2006-05-16 11:32   ` Sergey Vlasov
2006-05-16 11:18 ` Andrei Bulava
2006-05-16 12:19   ` Andrii Dobrovol`s`kii

Reply instructions:

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

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

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

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

  git send-email \
    --in-reply-to=20060519123741.GC19254@master.mivlgu.local \
    --to=vsu@altlinux.ru \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

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

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

ALT Linux 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