ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Шенцев Алексей Владимирович" <ashen@nsrz.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] 2 сетевые карты меняются местами
Date: Tue, 16 May 2006 15:51:17 +0400
Message-ID: <200605161551.17480.ashen@nsrz.ru> (raw)
In-Reply-To: <4469B650.2040503@altlinux.ru>

В сообщении от 16 мая 2006 15:24 Andrei Bulava написал(a):
> Так я не пробовал, но ход мыслей в общем понятен. Можно подробнее:
>
> 1. "установи карты как статические" - команды? конфиги?
>
> 2. "отключи их использование в hotplug" - то же.
>
> 3. "ifplugd отправить в off" - единственное, что я понял:
>
> # chkconfig ifplugd off; service ifplugd stop

Покажу как у меня настроен шлюз в инет с: eth0, смотрящим в ЛВС; eth1, 
смотрящим в инет на шлюз провайдера. Ну наверное проще будет начать с 
последнего пункта по нисходящему.
3) Так как etcnet сам управляет сетевыми картами (об этом сказано в 
документации по etcnet), то:
$ chkconfig --list ifplugd
ifplugd         0:выкл  1:выкл  2:выкл  3:выкл  4:выкл  5:выкл  6:выкл
2) Если у тебя карточки постоянно присутствуют, т.е. они не pcimca или не usb 
устройства, то использование сети в hotplug нужно отключить (а вот этого в 
документации нет, из личной переписки с Денисом), т.е. 
в /etc/sysconfig/hotplug должно быть прописано так, дабы hotplug не 
передёргивал сеть:
$ cat /etc/sysconfig/hotplug | grep NET
NETPLUG=no
1) Ну а далие настройки сетевух через сам etcnet:
$ cat /etc/net/iftab
# Generated by /etc/net initconf script
eth0 mac 00:c0:df:06:09:7b
# Generated by /etc/net initconf script
eth0 driver 8139too
# Generated by /etc/net initconf script
eth1 mac 00:04:79:66:31:a5
# Generated by /etc/net initconf script
eth1 driver 3c59x

$ cat /etc/net/sysctl.conf
# This file was formerly part of /etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_timestamps = 0

Для устройства eth0
$ ls /etc/net/ifaces/eth0
ipv4address  ipv4route  options

$ cat /etc/net/ifaces/eth0/options
TYPE=eth
MODULE=8139too
BOOTPROTO=static

$ cat /etc/net/ifaces/eth0/ipv4address
#eth0 смотрит в ЛВС
192.168.2.2/24

$cat /etc/net/ifaces/eth0/ipv4route
default via <ip-адрес внешнего интерфейса>

Для устройства eth1
$ ls /etc/net/ifaces/eth1
ipv4address  ipv4route  options

$ cat /etc/net/ifaces/eth1/options
TYPE=eth
MODULE=3c59x
BOOTPROTO=static

$ cat /etc/net/ifaces/eth1/ipv4address
<ip-адрес смотрящий в инет>

$ cat /etc/net/ifaces/eth1/ipv4route
default via <ip-адрес шлюза провайдера>

-- 
С уважением Шенцев Алексей Владимирович.
E-mail: ashen@nsrz.ru
ICQ: 271053845

  reply	other threads:[~2006-05-16 11:51 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     ` Шенцев Алексей Владимирович [this message]
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
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=200605161551.17480.ashen@nsrz.ru \
    --to=ashen@nsrz.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