|
70 | 70 | * [Linux Virtual Ethernet(veth) Interface](#linux-virtual-ethernetveth-interface)
|
71 | 71 | * [IPsec Encryption](#ipsec-encryption)
|
72 | 72 | * [Loopback Interface](#loopback-interface)
|
| 73 | + * [IPvLAN Interface](#ipvlan-interface) |
73 | 74 | * [Routes](#routes)
|
74 | 75 | * [Route Rules](#route-rules)
|
75 | 76 | * [DNS Resolver](#dns-resolver)
|
@@ -1567,6 +1568,39 @@ Use `state: absent` will revert loopback interface back to kernel defaults.
|
1567 | 1568 | Even desired state does not have `127.0.0.1/8` or `::1/128`, nmstate will
|
1568 | 1569 | still include those two IPs to loopback interface.
|
1569 | 1570 |
|
| 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 | + |
1570 | 1604 | ## Routes
|
1571 | 1605 |
|
1572 | 1606 | The `routes` top section of network state contains two type routes:
|
|
0 commit comments