Skip to content

Commit 536b8ce

Browse files
smyle10cathay4t
authored andcommitted
Add the document for IPvLAN
Signed-off-by: Mingyu Shi <[email protected]>
1 parent 41c9a2e commit 536b8ce

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

devel/yaml_api.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
* [Linux Virtual Ethernet(veth) Interface](#linux-virtual-ethernetveth-interface)
7171
* [IPsec Encryption](#ipsec-encryption)
7272
* [Loopback Interface](#loopback-interface)
73+
* [IPvLAN Interface](#ipvlan-interface)
7374
* [Routes](#routes)
7475
* [Route Rules](#route-rules)
7576
* [DNS Resolver](#dns-resolver)
@@ -1567,6 +1568,39 @@ Use `state: absent` will revert loopback interface back to kernel defaults.
15671568
Even desired state does not have `127.0.0.1/8` or `::1/128`, nmstate will
15681569
still include those two IPs to loopback interface.
15691570

1571+
### IPvLAN Interface
1572+
1573+
New feature in 2.2.38
1574+
1575+
Example YAML:
1576+
1577+
```yml
1578+
interfaces:
1579+
- name: ipvlan0
1580+
type: ipvlan
1581+
state: up
1582+
ipvlan:
1583+
mode: l3
1584+
base-iface: eth1
1585+
private: false
1586+
vepa: false
1587+
```
1588+
The `ipvlan` section contains these options:
1589+
* `mode`: String. Should be `l2`, `l3` or `l3s`.
1590+
* `l2`: ipvlan receive and respond to ARP requests, it provides good
1591+
performance, but less control on the network traffic.
1592+
* `l3`: ipvlan process only L3 traffic and above, does not respond to ARP
1593+
request and users must configure the neighbour entries for the IPVLAN IP
1594+
addresses on the relevant peers manually.
1595+
* `l3s`: ipvlan process the same way as in L3 mode, except that both egress
1596+
and ingress traffics of a relevant container are landed on netfilter chain
1597+
in the default namespace.
1598+
* `base-iface`: String. Parent interface name.
1599+
* `private`: Boolean. It controls the isolation between the ipvlan interface and
1600+
other devices on the network.
1601+
* `vepa`: Boolean. When enabled, traffic will be forwarded through a central
1602+
switch, helping improve network management and reduce broadcast traffic.
1603+
15701604
## Routes
15711605

15721606
The `routes` top section of network state contains two type routes:

0 commit comments

Comments
 (0)