-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvustack.1.html
148 lines (116 loc) · 3.33 KB
/
vustack.1.html
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
Content-type: text/html; charset=UTF-8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of VUSTACK</TITLE>
</HEAD><BODY>
<H1>VUSTACK</H1>
Section: General Commands Manual (1)<BR>Updated: December 2022<BR><A HREF="#index">Index</A>
<A HREF="/#/man/index">Return to Main Contents</A><HR>
<A NAME="lbAB"> </A>
<H2>NAME</H2>
<P>
vustack - set the default networking stack
<A NAME="lbAC"> </A>
<H2>SYNOPSIS</H2>
<P>
vustack [options ...]
stack command [args]
<A NAME="lbAD"> </A>
<H2>DESCRIPTION</H2>
<P>
vunet is the VUOS module for networking virtualization.
Networking stacks can be loaded using <A HREF="/#/man/man1/vumount.1.html">vumount</A>(1) and are
indentified by a pathname: the mount point.
vustack selects the stack to use among those available;
command runs using the stack selected vustack.
<A NAME="lbAE"> </A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT>-h, --help<DD>
Print a short help message and exit.
If combined with -v print also
the list of protocol family names.
<DT>-s, --supported<DD>
select the stack only for the protocol families supported by
stack.
<DT>-f list, --family list, --families list<DD>
select the stack for the protocol families in list.
list is a
comma separated list of protocol names or numbers.
<DT>-v, --verbose<DD>
print the list of protocol families object of the stack selection.
</DL>
<A NAME="lbAF"> </A>
<H2>EXAMPLES</H2>
<P>
Load vunet and mount a stack:
<DL COMPACT>
<DT><DD>
<PRE>
$ vu_insmod vunet
$ vumount -t vunetvdestack vde:// /dev/net/vde
</PRE>
</DL>
<P>
Run ip link using the stack mounted in /dev/net/vde:
<DL COMPACT>
<DT><DD>
<PRE>
$ 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
</PRE>
</DL>
<P>
Run ip link set vde0 up selecting /dev/net/vde only for the
families supported by vunetvdestack:
<DL COMPACT>
<DT><DD>
<PRE>
$ vustack -s -v /dev/net/vde ip link set vde0 up
Using /dev/net/vde for the following address families:
<A HREF="/#/man/man2/inet.2.html">inet</A>(2) inet6(10) netlink(16) packet(17)
</PRE>
</DL>
<P>
mount a null stack and use it to disable netlink:
<DL COMPACT>
<DT><DD>
<PRE>
$ 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
</PRE>
</DL>
<A NAME="lbAG"> </A>
<H2>SEE ALSO</H2>
<P>
<A HREF="/#/man/man1/umvu.1.html">umvu</A>(1), <A HREF="/#/man/man1/vumount.1.html">vumount</A>(1)
<A NAME="lbAH"> </A>
<H2>AUTHOR</H2>
<P>
VirtualSquare.
Project leader: Renzo Davoli
<P>
<HR>
<A NAME="index"> </A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">OPTIONS</A><DD>
<DT><A HREF="#lbAF">EXAMPLES</A><DD>
<DT><A HREF="#lbAG">SEE ALSO</A><DD>
<DT><A HREF="#lbAH">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 15:22:07 GMT, November 27, 2023
</BODY>
</HTML>