-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathrandmac.1.html
108 lines (88 loc) · 2.28 KB
/
randmac.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
Content-type: text/html; charset=UTF-8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of RANDMAC</TITLE>
</HEAD><BODY>
<H1>RANDMAC</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>
randmac - generate random MAC addresses
<A NAME="lbAC"> </A>
<H2>SYNOPSIS</H2>
<P>
randmac [options]
<A NAME="lbAD"> </A>
<H2>DESCRIPTION</H2>
<P>
randmac prints a random MAC address.
This utility has been designed to give random MAC addresses to
interfaces of virtual machines.
<A NAME="lbAE"> </A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT>-l, --local<DD>
Generate a local administered MAC.
<DT>-g, --global<DD>
Generate a global unique MAC.
<DT>-u, --unicast<DD>
Generate a MAC for unicast.
<DT>-m, --multicast<DD>
Generate a MAC for multicast.
<DT>-U, --uppercase<DD>
Print uppercase hex digits.
<DT>-e, --eui64<DD>
Generate an EUI64 address.
<DT>-o oui_addr, --oui oui_addr<DD>
Set the Organizationally Unique Identifier (OUI).
<DT>-v vendor, --vendor vendor<DD>
Set the OUI of a specific vendor.
<DT>-q, --qemu<DD>
Set the standard OUI of qemu/kvm.
<DT>-x, --xen<DD>
Set the standard OUI of xen.
<DT>-h, --help<DD>
Display a short help message and exit.
</DL>
<A NAME="lbAF"> </A>
<H2>EXAMPLE</H2>
<P>
Start a kvm VM using a random generated MAC address (while preserving
the standard qemu's OUI)
<DL COMPACT>
<DT><DD>
<PRE>
$ qemu-system-x86_64 -accel kvm ... \
-device e1000,netdev=vde0,mac=`randmac -q` \
-netdev vde,id=vde0,sock=vde://
</PRE>
</DL>
<A NAME="lbAG"> </A>
<H2>SEE ALSO</H2>
<P>
<A HREF="/#/man/man1/qemu.1.html">qemu</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">EXAMPLE</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>