1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
.\" Copyright (C) 2019 VirtualSquare. Project Leader: Renzo Davoli
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License,
.\" as published by the Free Software Foundation, either version 2
.\" of the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
.\" MA 02110-1301 USA.
.\"
.\" Automatically generated by Pandoc 3.1.11
.\"
.TH "VUSTACK" "1" "November 2024" "VirtualSquare\-VUOS" "General Commands Manual"
.SH NAME
\f[CB]vustack\f[R] \[en] set the default networking stack
.SH SYNOPSIS
\f[CB]vustack\f[R] [\f[I]options\f[R] \&...]
\f[I]stack\f[R] \f[I]command\f[R] [\f[I]args\f[R]]
.SH DESCRIPTION
\f[CB]vunet\f[R] is the VUOS module for networking virtualization.
Networking stacks can be loaded using \f[CB]vumount\f[R](1) and are
identified by a pathname: the mount point.
\f[CB]vustack\f[R] selects the stack to use among those available;
\f[I]command\f[R] runs using the stack selected \f[CB]vustack\f[R].
.SH OPTIONS
.TP
\f[CB]\-h\f[R], \f[CB]\-\-help\f[R]
Print a short help message and exit.
If combined with \f[CB]\-v\f[R] print also
the list of protocol family names.
.TP
\f[CB]\-s\f[R], \f[CB]\-\-supported\f[R]
select the stack only for the protocol families supported by
\f[I]stack\f[R].
.TP
\f[CB]\-f\f[R] \f[I]list\f[R], \f[CB]\-\-family\f[R] \f[I]list\f[R], \f[CB]\-\-families\f[R] \f[I]list\f[R]
select the stack for the protocol families in \f[I]list\f[R].
\f[I]list\f[R] is a
comma separated list of protocol names or numbers.
.TP
\f[CB]\-v\f[R], \f[CB]\-\-verbose\f[R]
print the list of protocol families object of the stack selection.
.SH EXAMPLES
Load \f[CB]vunet\f[R] and mount a stack:
.IP
.EX
$ vu_insmod vunet
$ vumount \-t vunetvdestack vde:// /dev/net/vde
.EE
.PP
Run \f[I]ip link\f[R] using the stack mounted in /dev/net/vde:
.IP
.EX
$ vustack /dev/net/vde ip link
1: lo: *LOOPBACK* mtu 65536 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: vde0: *BROADCAST,MULTICAST* mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 5a:1e:97:fa:ab:a3 brd ff:ff:ff:ff:ff:ff
.EE
.PP
Run \f[I]ip link set vde0 up\f[R] selecting /dev/net/vde only for the
families supported by vunetvdestack:
.IP
.EX
$ vustack \-s \-v /dev/net/vde ip link set vde0 up
Using /dev/net/vde for the following address families:
inet(2) inet6(10) netlink(16) packet(17)
.EE
.PP
mount a null stack and use it to disable netlink:
.IP
.EX
$ vumount \-t vunetnull vde:// /dev/net/null
$ exec vustack \-f netlink \-v /dev/net/null bash
Using /dev/net/null for the following address families:
netlink(16)
$ ip addr
Cannot open netlink socket: Address family not supported by protocol
.EE
.SH SEE ALSO
umvu(1), vumount(1)
.SH AUTHOR
VirtualSquare.
Project leader: Renzo Davoli
|