ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Anton Farygin <rider@altlinux.com>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] wire vs. wireless
Date: Mon, 08 Feb 2010 08:29:56 +0300
Message-ID: <hko7g5$6aq$2@ger.gmane.org> (raw)
In-Reply-To: <20100207223918.GG8733@altlinux.org>

08.02.2010 01:39, Alexey I. Froloff пишет:
> On Sun, Feb 07, 2010 at 11:57:15PM +0300, Anton Farygin wrote:
>>>>>> Одинаковый IP на оба интерфейса решает такую проблему.
>>>>>> И пускай оба будут подняты.
>>>>> А с default route что делать?  dev там не меняется.
>>>> Пускай их будет два, с разными метриками.
>>> DHCP, однако.
>> Это не должно мешать, есть же хуки.
> Тогда показывай ;-)

/etc/dhcpcd.enter-hook

а дальше читаем документацию и пишем что-то вроде:

if [ "$interface" = "wlan0" ];then
         SSID=`wpa_cli status|grep "^ssid"|cut -f 2 -d "="`
     if [ "$SSID" = "myaccesspoint" ];then
         if [ "$reason" = "BOUND"  || "$reason" = "REBIND" ];then
             ip ro del default
             ip ro add default via 192.168.1.1 metric 50
             ip ro add 10.150.0.0/16 via 192.168.1.1
             ifup myvpntunnel
         fi
         if [ "$reason" = "RENEW" ];then
             ip ro del default via 192.168.1.1
         fi
fi




  reply	other threads:[~2010-02-08  5:29 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-06 20:14 Dmitry
2010-02-07  9:10 ` Anton Farygin
2010-02-07 10:27   ` Alexey I. Froloff
2010-02-07 16:22     ` Anton Farygin
2010-02-07 18:07       ` Alexey I. Froloff
2010-02-07 20:57         ` Anton Farygin
2010-02-07 22:39           ` Alexey I. Froloff
2010-02-08  5:29             ` Anton Farygin [this message]
2010-02-07 10:35   ` Aleksey Avdeev
2010-02-07 10:57     ` Sergey
2010-02-07 16:21       ` Anton Farygin
2010-02-07 17:52         ` Sergey
2010-02-07 20:56           ` Anton Farygin
2010-02-07 22:40             ` Alexey I. Froloff
2010-02-08  5:23               ` Aleksey Avdeev
2010-02-09  7:57                 ` Anton Farygin
2010-02-18 20:37                   ` Denis Kuznetsov
2010-02-08  5:27               ` Anton Farygin
2010-02-09  8:35               ` Andrey Rahmatullin
2010-02-15 19:00 ` Dmitry

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='hko7g5$6aq$2@ger.gmane.org' \
    --to=rider@altlinux.com \
    --cc=sysadmins@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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git