ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: SKeeper <sceper@yandex.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] etcnet и 2 адреса на одном интерфейсе
Date: Fri, 15 Feb 2008 10:49:33 +0300
Message-ID: <47B5440D.1030102@yandex.ru> (raw)
In-Reply-To: <d77783290802142336l7626364alb69715a16198fd05@mail.gmail.com>

Маны это очень познавательно, но вы видимо меня не правильно поняли. :)
Мне не нужно менять профили сети, мне нужно одновременно иметь на одном 
физическом адресе один статический и один динамический

Денис Черносов пишет:
> Хм... 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
>
> ...
>
>
> Ну и далее по тексту.  Если коротко, то один из профилей соединения 
> умолчальный, а остальные загружаются с явным указанием. Можно сделать 
> при загрузке, а можно и на лету поменять...
>
>
>



  parent reply	other threads:[~2008-02-15  7:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-14 12:32 SKeeper
2008-02-14 20:13 ` Sergey Alembekov
2008-02-14 20:19   ` Хихин Руслан
2008-02-15  7:28     ` SKeeper
2008-02-14 20:45   ` Olvin
2008-02-15  7:05     ` Gleb Kulikov
2008-02-15  7:35       ` Kostarev Alexey
2008-02-15  7:47         ` SKeeper
2008-02-15  7:49         ` SKeeper [this message]
2008-02-15  9:03           ` Владимир Гусев
2008-02-15  9:09             ` Владимир Гусев
2008-02-15 11:37               ` SKeeper
2008-02-15  7:28     ` SKeeper
2008-02-15  9:01   ` Владимир Гусев
2008-02-15  9:15 ` Pavlov Konstantin
2008-02-15 11:38   ` SKeeper

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=47B5440D.1030102@yandex.ru \
    --to=sceper@yandex.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