1podman-network-create(1)()                          podman-network-create(1)()
2
3
4

NAME

6       podman-network-create - Create a Podman CNI network
7
8

SYNOPSIS

10       podman network create  [options] name
11
12

DESCRIPTION

14       Create  a CNI-network configuration for use with Podman. At the time of
15       this writing, the only network type that can be  created  is  a  bridge
16       network.
17
18
19       If  no  options are provided, Podman will assign a free subnet and name
20       for your network.
21
22
23       Upon completion of creating the network, Podman will display  the  path
24       to the newly added network file.
25
26

OPTIONS

28       -d, , --driver
29
30
31       Driver  to  manage the network (default "bridge").  Currently on bridge
32       is supported.
33
34
35       --gateway
36
37
38       Define a gateway for the subnet. If  you  want  to  provide  a  gateway
39       address, you must also provide a subnet option.
40
41
42       --internal
43
44
45       Restrict external access of this network
46
47
48       --ip-range
49
50
51       Allocate  container IP from a range.  The range must be a complete sub‐
52       net and in CIDR notation.  The ip-range option must be used with a sub‐
53       net option.
54
55
56       --subnet
57
58
59       The subnet in CIDR notation.
60
61

EXAMPLE

63       Create a network with no options
64
65
66              # podman network create
67              /etc/cni/net.d/cni-podman-4.conflist
68
69
70
71       Create a network named newnet that uses 192.5.0.0/16 for its subnet.
72
73
74              # podman network create --subnet 192.5.0.0/16 newnet
75              /etc/cni/net.d/newnet.conflist
76
77
78
79       Create  a  network named newnet that uses 192.168.33.0/24 and defines a
80       gateway as 192.168.133.3
81
82
83              # podman network create --subnet 192.168.33.0/24 --gateway 192.168.33.3 newnet
84              /etc/cni/net.d/newnet.conflist
85
86
87
88       Create a network that uses a *192.168.55.0/24** subnet and  has  an  IP
89       address range of 192.168.55.129 - 192.168.55.254.
90
91
92              # podman network create --subnet 192.168.55.0/24 --ip-range 192.168.55.128/25
93              /etc/cni/net.d/cni-podman-5.conflist
94
95
96

SEE ALSO

98       podman(1), podman-network(1), podman-network-inspect(1)
99
100

HISTORY

102       August  2019,  Originally  compiled  by  Brent  Baude bbaude@redhat.com
103       ⟨mailto:bbaude@redhat.com⟩
104
105
106
107                                                    podman-network-create(1)()
Impressum