File: randmac.1

package info (click to toggle)
randmac 0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 112 kB
  • sloc: ansic: 202; makefile: 20
file content (104 lines) | stat: -rw-r--r-- 2,885 bytes parent folder | download
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
.\" 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 2.17.1.1
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "RANDMAC" "1" "December 2022" "VirtualSquare" "General Commands Manual"
.hy
.SH NAME
.PP
randmac \[en] generate random MAC addresses
.SH SYNOPSIS
.PP
\f[V]randmac\f[R] [\f[I]options\f[R]]
.SH DESCRIPTION
.PP
\f[V]randmac\f[R] prints a random MAC address.
This utility has been designed to give random MAC addresses to
interfaces of virtual machines.
.SH OPTIONS
.TP
\f[V]-l\f[R], \f[V]--local\f[R]
Generate a local administered MAC.
.TP
\f[V]-g\f[R], \f[V]--global\f[R]
Generate a global unique MAC.
.TP
\f[V]-u\f[R], \f[V]--unicast\f[R]
Generate a MAC for unicast.
.TP
\f[V]-m\f[R], \f[V]--multicast\f[R]
Generate a MAC for multicast.
.TP
\f[V]-U\f[R], \f[V]--uppercase\f[R]
Print uppercase hex digits.
.TP
\f[V]-e\f[R], \f[V]--eui64\f[R]
Generate an EUI64 address.
.TP
\f[V]-o\f[R] \f[I]oui_addr\f[R], \f[V]--oui\f[R] \f[I]oui_addr\f[R]
Set the Organizationally Unique Identifier (OUI).
.TP
\f[V]-v\f[R] \f[I]vendor\f[R], \f[V]--vendor\f[R] \f[I]vendor\f[R]
Set the OUI of a specific vendor.
.TP
\f[V]-q\f[R], \f[V]--qemu\f[R]
Set the standard OUI of qemu/kvm.
.TP
\f[V]-x\f[R], \f[V]--xen\f[R]
Set the standard OUI of xen.
.TP
\f[V]-h\f[R], \f[V]--help\f[R]
Display a short help message and exit.
.SH EXAMPLE
.PP
Start a kvm VM using a random generated MAC address (while preserving
the standard qemu\[cq]s OUI)
.IP
.nf
\f[C]
$ qemu-system-x86_64 -accel kvm ... \[rs]
  -device e1000,netdev=vde0,mac=\[ga]randmac -q\[ga] \[rs]
  -netdev vde,id=vde0,sock=vde://
\f[R]
.fi
.SH SEE ALSO
.PP
qemu(1)
.SH AUTHOR
.PP
VirtualSquare.
Project leader: Renzo Davoli.