From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.3 X-Yandex-Spam: 1 X-Yandex-Front: smtp2 X-Yandex-TimeMark: 1203061875 X-MsgDayCount: 4 X-Comment: RFC 2476 MSA function at smtp2.yandex.ru logged sender identity as: sceper Message-ID: <47B5440D.1030102@yandex.ru> Date: Fri, 15 Feb 2008 10:49:33 +0300 From: SKeeper User-Agent: Thunderbird 2.0.0.6 (X11/20070804) MIME-Version: 1.0 To: ALT Linux Community general discussions References: <47B434FB.8070408@yandex.ru> <20080214201323.GA9187@banzay-book.aspirinka.net> <47B4A84F.1010607@rambler.ru> <200802151305.05190.glebus@asd.iao.ru> In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Comm] =?koi8-r?b?ZXRjbmV0IMkgMiDBxNLF08EgzsEgz8TOz80gyc7UxdLG?= =?koi8-r?b?xcrTxQ==?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2008 07:51:23 -0000 Archived-At: List-Archive: List-Post: Маны это очень познавательно, но вы видимо меня не правильно поняли. :) Мне не нужно менять профили сети, мне нужно одновременно иметь на одном физическом адресе один статический и один динамический Денис Черносов пишет: > Хм... man etcnet > > ... > CONFIGURATION PROFILES > A profile is a configuration superset. E.g. when a notebook > boots up in several different net- > works, it's desirable to select current configuration by just > one parameter. Current profile > name can be set via: > > 1. environment variable NETPROFILE (not a good idea I guess) > > 2. file /etc/net/profile (file should contain just one word, > e.g. "office" w/o quotes) > > 3. kernel boot parameter "netprofile", e.g. "LILO: linux > netprofile=home" > > Specifying a profile does nothing by default. But if etcnet > scripts know the current profile > name (e.g. "home") and look for a configuration file > (e.g. "options") and "options#home" > exists, then "options#home" will be used instead of > "options". The same for ipv4address, > ipv4route, ipv4rule, ipv6address, iplink and so on). > > Now if you want to boot the same host in two different > networks, you will most probably have > to create additional ipv4address#yourprofilename for another > address and ipv4route#yourpro- > filename for another default route. Same for resolv.conf, I guess. > > Next example: booting two different hosts from the same HDD > (root fs). The same as previous, > but additional options#yourprofilename and > iftab#yourprofilename for the different network > card. > > To switch between configurations without editing > /etc/net/profile one can use: > > # service etcnet startwith office > > # service etcnet restartwith home > > ... > > > Ну и далее по тексту. Если коротко, то один из профилей соединения > умолчальный, а остальные загружаются с явным указанием. Можно сделать > при загрузке, а можно и на лету поменять... > > >