mirror of
https://github.com/containers/podman.git
synced 2025-05-22 01:27:07 +08:00
add macvlan as a supported network driver
instead of using the --macvlan to indicate that you want to make a macvlan network, podman network create now honors the driver name of *macvlan*. Any options to macvlan, like the parent device, should be specified as a -o option. For example, -o parent=eth0. the --macvlan option was marked as deprecated in the man page but is still supported for the duration of 3.0. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -7,8 +7,9 @@ podman\-network-create - Create a Podman CNI network
|
||||
**podman network create** [*options*] name
|
||||
|
||||
## DESCRIPTION
|
||||
Create a CNI-network configuration for use with Podman. By default, Podman creates a bridge connection. A
|
||||
*Macvlan* connection can be created with the *macvlan* option. In the case of *Macvlan* connections, the
|
||||
Create a CNI-network configuration for use with Podman. By default, Podman creates a bridge connection.
|
||||
A *Macvlan* connection can be created with the *-d macvlan* option. A parent device for macvlan can
|
||||
be designated with the *-o parent=<device>* option. In the case of *Macvlan* connections, the
|
||||
CNI *dhcp* plugin needs to be activated or the container image must have a DHCP client to interact
|
||||
with the host network's DHCP server.
|
||||
|
||||
@ -55,6 +56,8 @@ Set metadata for a network (e.g., --label mykey=value).
|
||||
|
||||
#### **--macvlan**
|
||||
|
||||
*This option is being deprecated*
|
||||
|
||||
Create a *Macvlan* based connection rather than a classic bridge. You must pass an interface name from the host for the
|
||||
Macvlan connection.
|
||||
|
||||
@ -101,7 +104,7 @@ Create a network that uses a *192.168.55.0/24** subnet and has an IP address ran
|
||||
|
||||
Create a Macvlan based network using the host interface eth0
|
||||
```
|
||||
# podman network create --macvlan eth0 newnet
|
||||
# podman network create -d macvlan -o parent=eth0 newnet
|
||||
/etc/cni/net.d/newnet.conflist
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user