ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Oleg K.Artemjev <olli@rbauto.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Порядок присвоения eth0, eth1 ... однотипным картам?
Date: Wed, 17 Sep 2003 18:34:33 +0400
Message-ID: <20030917183433.7ca19cdc.olli@rbauto.ru> (raw)
In-Reply-To: <3F68728F.9070908@netorn.ru>

On Wed, 17 Sep 2003 17:41:19 +0300
"Vadim V. Zhytnikov" <vvzhy@netorn.ru> wrote:
> В какм порядке сетевым интерфейсам присваиваются номера
> eth0, eth1, eth2 ...
AFAIK, в порядке нумерации pci при вкомпиленной поддержке; в порядке загрузки модулей
при разных картах и модульной поддержке. Как заставить одинаковые PCI карты вставать не в порядке
следования слотов при загрузке из поддержки из одного модуля не в курсе. Для isa - развести на
разные io/irq. Но это все как-то криво - проще шнурки перебросить и MAC сменить если что.

> Вопрос возник когда по техническим причинам пришлось
> переставлять карты  в другие PCI слоты.  Нужно, чтобы,
> скажем, именно eth1 был шлюзом в интернет (так
> сделаны все конфиги и брандмауэр), причём это должна
> быть физически вполне определённая карта, т.к.
> провайдер помнит именно её MAC адрес.
workaround:

man ifconfig
/hw
/ether

# за работу нижеследующего не ручаюсь, но писать на русском было бы больше, пользовать как ориентир:
for f in rpm -ql `rpm -qf /etc/sysconfig`; do grep MAC $f > /dev/null ; ret=$?; if [ "$ret" = 0 ]; then echo $f; fi; done 

hint:

ifconfig eth0 down
ifconfig eth0 hw ether 1:2:3:4:5:6
ifconfig eth0 up


-- 
Bye.Olli.			http://olli.digger.org.ru




  parent reply	other threads:[~2003-09-17 14:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-17 14:41 Vadim V. Zhytnikov
2003-09-17 12:24 ` [Comm] " Sergey Vlasov
2003-09-17 14:14 ` [Comm] " ipAlex
2003-09-17 14:34 ` Oleg K.Artemjev [this message]
2003-09-17 16:47   ` Vadim V. Zhytnikov
2003-09-18  4:42     ` [Comm]Порядок " Alexey Novikov
2003-09-18  8:23       ` Grigory Milev
2003-09-18 11:35         ` [Comm]=?koi8-r?b?8M/S0cTPyw==?= присвоенияeth0, eth1 ...однотипным картам Alexey Novikov
2003-09-18  9:39     ` [Comm] Порядок присвоения eth0, eth1 ... однотипным картам? Oleg K.Artemjev
2003-09-17 14:38 ` Artem Pastukhov
2003-09-17 16:22 ` A.L. Klyutchenya
2003-09-17 17:44   ` Vadim V. Zhytnikov

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=20030917183433.7ca19cdc.olli@rbauto.ru \
    --to=olli@rbauto.ru \
    --cc=community@altlinux.ru \
    /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