Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


lxd_vlan_macvlan

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
lxd_vlan_macvlan [2021/10/17 09:44] adminlxd_vlan_macvlan [2021/10/17 10:07] (current) admin
Line 1: Line 1:
 =====Netplan, LXD and MACVLAN over VLAN===== =====Netplan, LXD and MACVLAN over VLAN=====
- 
-**work in progress** 
- 
  
 Netplan (currently) does not support MACVLAN interfaces. So here I use a post-up hook script to create a MACVLAN interface for the host in order to communicate with containers. Netplan (currently) does not support MACVLAN interfaces. So here I use a post-up hook script to create a MACVLAN interface for the host in order to communicate with containers.
Line 36: Line 33:
  
 MYNIC="enp1s0" MYNIC="enp1s0"
- 
-echo "$(date) ==========================================" >> /tmp/log 
-set >> /tmp/log 
- 
  
 if [[ "${IFACE}" == "${MYNIC}" ]]; then if [[ "${IFACE}" == "${MYNIC}" ]]; then
Line 76: Line 69:
 used_by: used_by:
 </code> </code>
 +  * Apply config.<code> 
 +netplan apply 
 +</code>
  
  
  
 {{tag>[netplan lxd macvlan]}} {{tag>[netplan lxd macvlan]}}
lxd_vlan_macvlan.txt · Last modified: 2021/10/17 10:07 by admin