Skip to content

Commit

Permalink
docs: Add MAC VTAP example
Browse files Browse the repository at this point in the history
Signed-off-by: maritu <[email protected]>
  • Loading branch information
marituhone authored and liangwen12year committed Mar 28, 2024
1 parent ab77dd1 commit 4bc36b3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions examples/macvtap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: BSD-3-Clause
---
- name: Manage network MAC VTAP
hosts: network-test
vars:
network_connections:
- name: eth0
type: ethernet
state: up
interface_name: eth0
ip:
address:
- 192.168.0.1/24

# Create a virtual ethernet card bound to eth0
- name: veth0
type: macvlan
state: up
parent: eth0
macvlan:
mode: bridge
promiscuous: true
tap: true
ip:
address:
- 192.168.1.1/24

roles:
- linux-system-roles.network

0 comments on commit 4bc36b3

Please sign in to comment.