ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Denis Kirienko <dk@altlinux.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Странная проблема с переименованием сетевых интерфейсов
Date: Tue, 01 Sep 2009 00:36:28 +0400
Message-ID: <h7hc85$cmk$1@ger.gmane.org> (raw)
In-Reply-To: <4A9C3151.4080604@tangramltd.com>

01.09.2009 00:23, Slava Dubrovskiy пишет:
> 31.08.2009 23:04, Denis Kirienko пишет:
>> Добрый день!
>>
>> Столкнулся с проблемой, никак не могу сообразить, что это может быть.
>>
>> Есть пачка абсолютно одинаковых ноутбуков. На один из них была
>> установлена бета-версия школьного Мастера 5.0. Были настроены и
>> заработали сетевые интерфейсы eth0 и wlan0. Интерфейсы управляются через
>> etcnet, NetworkManager отключен полностью.
>>
>> После этого система копируется на другие ноутбуки. Копируется при помощи
>> клонирования содержимого жесткого диска безо всяких изменений. После
>> клонирования системы на другой ноутбук на нем нет сети - ни eth0, ни wlan0.
>>   
> На другом компе маки другие.
> Теперь за переименовывание отвечает udev.
> Ищите у него в конфигах. Например: /etc/udev/rules.d/70-persistent-net.rules

Спасибо, посмотрел этот файл, не очень то понял его синтаксис.
Мне нужно добиться того, чтобы интерфейсы не переименовывались, чтобы
был только eth0 и только wlan0 независимо от их маков.

Как мне записать, вот так что ли?

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="*",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="*",
ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

--
Денис



  reply	other threads:[~2009-08-31 20:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-31 20:04 Denis Kirienko
2009-08-31 20:18 ` Maks Re
2009-08-31 20:23 ` Slava Dubrovskiy
2009-08-31 20:36   ` Denis Kirienko [this message]
2009-09-01  2:34     ` Evgeny Yugov
2009-09-01 17:22 ` Denis Kirienko
2009-09-04  7:28 ` Michael Shigorin

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='h7hc85$cmk$1@ger.gmane.org' \
    --to=dk@altlinux.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

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

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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

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

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

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


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