* [Comm] How to automate bridging
@ 2004-01-16 8:14 Grigory Batalov
0 siblings, 0 replies; only message in thread
From: Grigory Batalov @ 2004-01-16 8:14 UTC (permalink / raw)
To: community
Здравствуйте!
Хочется при включении компьютера сразу поднимать мост на сетевой
карте (eth0) примерно так:
BRCTL=/sbin/brctl
TUNCTL=/usr/local/sbin/tunctl
IFCONFIG=/sbin/ifconfig
[ -x $TUNCTL ] && $TUNCTL -t tap0
[ -x $IFCONFIG ] && $IFCONFIG tap0 up
[ -x $IFCONFIG ] && $IFCONFIG eth0 up
[ -x $BRCTL ] && $BRCTL addbr br0
[ -x $BRCTL ] && $BRCTL addif br0 eth0
[ -x $BRCTL ] && $BRCTL addif br0 tap0
И чтобы в дальнейшем либо на eth0, либо на br0 (пока не решил,
что правильнее) поднялся IP и IPX из соответствующего ifcfg-*.
Куда лучше (и правильнее) прописать эти строчки?
А ещё чтобы при service network stop выполнялось вот это:
[ -x $BRCTL ] && $BRCTL delif br0 eth0
[ -x $BRCTL ] && $BRCTL delif br0 tap0
[ -x $BRCTL ] && $BRCTL delbr br0
??
--
Григорий Баталов,
начальник бюро
системного администрирования
ОАО "Ковдорский ГОК"
+7-(81535)-76036
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-01-16 8:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-16 8:14 [Comm] How to automate bridging Grigory Batalov
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