Date: Sat, 27 Sep 2014 14:07:27 +0100 (BST) From: Gavin Atkinson <gavin@FreeBSD.org> To: =?ISO-8859-15?Q?Olivier_Cochard-Labb=E9?= <olivier@cochard.me> Cc: freebsd-doc@freebsd.org Subject: Re: Ethernet Wifi failover Message-ID: <alpine.BSF.2.11.1409271400110.20681@ury.york.ac.uk> In-Reply-To: <CA%2Bq%2BTcppQNL_ga%2BPZHL%2B9A7NCsWHPiJnkQSCeNm8EGwSnDdzww@mail.gmail.com> References: <CA%2Bq%2BTcppQNL_ga%2BPZHL%2B9A7NCsWHPiJnkQSCeNm8EGwSnDdzww@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 26 Sep 2014, Olivier Cochard-Labbé wrote: > Hi, > > here is an old post from my blog that can useful on the documentation. > > I want a simple behavior with my laptop: > > 1. If Ethernet cable connected use this connectivity, otherwise use the > wireless; > 2. I want to kept the same IP addresses, event if I'm using DHCP client. > > The solution is quiet simple: > > 1. set-up an aggregate interface in failover mode with Ethernet as > primary and wireless as backup; > 2. Put the Ethernet NIC MAC address on the wireless NIC. Although this might work for some uses, it isn't ideal. Right now, we don't have the infrastructure to actually bridge wired and wireless properly, and I think documenting it would be a bad idea. Thanks, Gavin > > Here are how to do it: > > # *ifconfig -l* > iwn0 bge0 lo0 > => My Ethernet NIC is "bge0" and wireless is "iwn0" here > > # *set MAC=`ifconfig bge0 | grep ether | cut -d ' ' -f 2`* > # *sysrc ifconfig_bge0=up* > ifconfig_bge0: -> up > # *sysrc wlans_iwn0=wlan0* > wlans_iwn0: -> wlan0 > # *sysrc ifconfig_iwn0="ether $MAC"* > ifconfig_iwn0: -> ether 00:1c:23:25:ab:45 > # *sysrc ifconfig_wlan0="WPA up"* > ifconfig_wlan0: WPA DHCP -> WPA up > # *sysrc cloned_interfaces=lagg0* > cloned_interfaces: -> lagg0 > # *sysrc ifconfig_lagg0="laggproto failover laggport bge0 laggport wlan0 > DHCP"* > ifconfig_lagg0: -> laggproto failover laggport bge0 laggport wlan0 DHCP > # *sysrc ifconfig_lagg0_ipv6="inet6 accept_rtadv"* > ifconfig_lagg0_ipv6: -> inet6 accept_rtadv > # *service netif restart* > > And now with Ethernet cable unplugged: > > # *ifconfig lagg0* > lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 > ether 00:1c:23:25:ab:45 > inet6 fe80::41d:23ff:fe25:ab78%lagg0 prefixlen 64 scopeid 0x4 > inet6 2a01:e35:9b9d:a1a0:41d:23ff:fe25:ab45 prefixlen 64 autoconf > inet 192.168.100.7 netmask 0xffffff00 broadcast 192.168.100.255 > nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> > media: Ethernet autoselect > status: active > laggproto failover lagghash l2,l3,l4 > laggport: wlan0 flags=4<ACTIVE> > laggport: bge0 flags=1<MASTER> > > > Then If I plug the Ethernet cable: > > > # ifconfig lagg0 > lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 > ether 00:1c:23:25:ab:45 > inet6 fe80::41d:23ff:fe25:ab45%lagg0 prefixlen 64 scopeid 0x4 > inet6 2a01:e35:9b9d:a1a0:41d:23ff:fe25:ab45 prefixlen 64 autoconf > inet 192.168.100.7 netmask 0xffffff00 broadcast 192.168.100.255 > nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> > media: Ethernet autoselect > status: active > laggproto failover lagghash l2,l3,l4 > laggport: wlan0 flags=0<> > laggport: bge0 flags=5<MASTER,ACTIVE> > _______________________________________________ > freebsd-doc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-doc > To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org" > From owner-freebsd-doc@FreeBSD.ORG Sat Sep 27 14:16:49 2014 Return-Path: <owner-freebsd-doc@FreeBSD.ORG> Delivered-To: www@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A0823DA4; Sat, 27 Sep 2014 14:16:49 +0000 (UTC) Received: from forward3m.mail.yandex.net (forward3m.mail.yandex.net [IPv6:2a02:6b8:0:2519::3:12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 51AD2255; Sat, 27 Sep 2014 14:16:49 +0000 (UTC) Received: from web7m.yandex.ru (web7m.yandex.ru [37.140.138.98]) by forward3m.mail.yandex.net (Yandex) with ESMTP id 43D856B60D80; Sat, 27 Sep 2014 18:16:45 +0400 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web7m.yandex.ru (Yandex) with ESMTP id A913937C0A79; Sat, 27 Sep 2014 18:16:44 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t11827404; bh=Hk8tfSIIMuKfVfx3dPktQGIFYNRT7veujhNwRnRc+fQ=; h=From:To:Cc:Subject:Date; b=vBzfM6WP4wWW58wHBpjgZw9Zhd4bOaVKJxrEceVuL5pVKo5cXk5PfbPzJQc6gjTfD abeyu8Jc8eua3s1+boNYCO/5HtWYMhrrFZ80pNQCNBkKTmTBOCn0Zckr4Tt6kPG7tc rBnMsIjPVlbeS+yepTmDyhCHVxP6QgW48i20j+lcReceived: from client.yota.ru (client.yota.ru [109.188.127.45]) by web7m.yandex.ru with HTTP; Sat, 27 Sep 2014 18:16:44 +0400 From: Can0r <can0r@yandex.ru> Envelope-From: can0r@yandex.ru To: Gavin Atkinson <gavin@freebsd.org> Subject: Re:Ports search issue MIME-Version: 1.0 Message-Id: <31221411827404@web7m.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Sat, 27 Sep 2014 18:16:44 +0400 Content-Transfer-Encoding: 7bit Content-Type: text/plain Cc: www@freebsd.org X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Documentation project <freebsd-doc.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-doc>, <mailto:freebsd-doc-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-doc/> List-Post: <mailto:freebsd-doc@freebsd.org> List-Help: <mailto:freebsd-doc-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-doc>, <mailto:freebsd-doc-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sat, 27 Sep 2014 14:16:49 -0000 Hello! It's totally okay now. Thank you very much for fixing such annoying issue! Regards, Andrey > On Tue, 23 Sep 2014, Can0r wrote: > >> Hello! >> >> There is a strange issue with search engine in ports collection. >> When I type 'php55', it finds just 3 ports: >> http://www.freebsd.org/cgi/ports.cgi?query=php55&stype=all&sektion=all >> However there are lots of ports with this query in their names - all php55 extensions and php55 itself are not displayed in results. >> It is really uncomfortable to use search in this way. >> Is there any solution for this issue? > > I think I've now fixed this in the doc repository. It may take up to 24 > hours for my change to go live on the website. > > Thanks, > > Gavin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.11.1409271400110.20681>
