Date: Mon, 16 Mar 2015 02:49:58 +0300 From: Oleg Ginzburg <olevole@olevole.ru> To: Bryan Venteicher <bryanv@freebsd.org> Cc: freebsd-net@freebsd.org Subject: Re: SIOCSVH, SIOCGVH ioctl(2) and virtio ethernet driver Message-ID: <3860521.yJlCc0OyhB@kde4.my.domain> In-Reply-To: <CAGaYwLcjGQuRPQDX%2Bji7i=YQ6_J_Z2-aegAFnAHC9ukBaqL4BA@mail.gmail.com> References: <36413168.TE9MLvZCzL@kde4.my.domain> <CAGaYwLcjGQuRPQDX%2Bji7i=YQ6_J_Z2-aegAFnAHC9ukBaqL4BA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 29 December 2014 14:18:01 Bryan Venteicher wrote: > On Fri, Dec 26, 2014 at 8:09 AM, Oleg Ginzburg <olevole@olevole.ru> wrote: > > is it possible to use the carp(4) protocol with > > vtnet(4) interfaces ( which is used, for example, in bhyve(8) ) > > Currently, the standard carp init operation causes an SIOCGVH error: > > > > /sbin/ifconfig vtnet0 vhid 1 advskew 100 pass pass 10.10.10.10/24 alias > > ifconfig: SIOCGVH: Protocol not supported > > You probably don't have the carp(4) module loaded. Sorry for delay. Unfortunately the problem somewhere else. Depending on the FreeBSD revision there is a different behavior except usual. E.g: a) 10.1-RELEASE and 10-STABLE: % kldload carp % kldstat -m carp Id Refs Name 486 1 carp % /sbin/ifconfig vtnet0 vhid 1 advskew 100 pass navuhodonosor 192.168.1.210/24 state master alias ifconfig: SIOCSVH: Invalid argument b) On FreeBSD-current r276500M CARP IP is established for some seconds, then vanishes: % /sbin/ifconfig vtnet0 vhid 1 advskew 100 pass navuhodonosor 192.168.1.210/24 state master alias % ifconfig vtnet0 vtnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE> ether 00:a0:98:d7:e3:65 inet 192.168.1.170 netmask 0xffffff00 broadcast 192.168.1.255 inet 192.168.1.210 netmask 0xffffff00 broadcast 192.168.1.255 vhid 1 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet 10Gbase-T <full-duplex> status: active carp: BACKUP vhid 1 advbase 1 advskew 100 % ifconfig vtnet0 vtnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE> ether 00:a0:98:d7:e3:65 inet 192.168.1.170 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet 10Gbase-T <full-duplex> status: active % dmesg ... carp_alloc_if: ifpromisc(vtnet0) failed: 45 carp: VHID 1@vtnet0: INIT -> BACKUP carp: VHID 1@vtnet0: BACKUP -> MASTER (master down) ifa_del_loopback_route: deletion failed: 3 ifa_del_loopback_route: deletion failed: 3 And one more dmesg from the server with more fresher revision (r280012M): carp_alloc_if: ifpromisc(vtnet0) failed: 45 carp: 1@vtnet0: INIT -> BACKUP (initialization complete) carp: 1@vtnet0: BACKUP -> MASTER (master timed out) -- TOX ID: olevole@toxme.se (B4A584A75560D5A93DBF387FAAC56669DA18797078A46B9A9818726BEE643E52A43A6A2E3DA0) E-mail: olevole at olevole.ru XMPP/jabber: olevole at jabber.ru Voice: 199.48.133.74/1001 PGP public key: http://www.olevole.ru/olevole_pgpkey.asc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3860521.yJlCc0OyhB>