Gebruikershulpmiddelen

Site-hulpmiddelen


installatie_handleidingen:mikrotik:virtual-container-network

Verschillen

Dit geeft de verschillen weer tussen de geselecteerde revisie en de huidige revisie van de pagina.

Link naar deze vergelijking

Volgende revisie
Vorige revisie
installatie_handleidingen:mikrotik:virtual-container-network [2025/09/20 17:44]
abel aangemaakt
installatie_handleidingen:mikrotik:virtual-container-network [2025/10/25 15:40] (huidige)
abel [veth interface for containers]
Regel 1: Regel 1:
-====== veth interface for containers ======+====== veth interface for containers on RouterOS ====== 
 + 
 +===== add IP to DNS server ===== 
 +<code> 
 +/ip dns static 
 +add address=10.100.10.200 name=haproxy.auriel.local 
 +</code> 
 + 
 +===== reserve IP in DHCP server ===== 
 +<code> 
 +/ip dhcp-server lease 
 +add address=10.100.10.200 comment="HA-proxy container veth" dhcp-option=domain-search mac-address=00:00:00:00:00:01 server=dhcpserver_INTER 
 +</code>
  
 ===== create the interface ===== ===== create the interface =====
 +<code>
 +/interface/veth
 +add name=veth-haproxy address=10.100.10.200/24 gateway=10.100.10.254
 +</code>
 ===== add the interface to the bridge ===== ===== add the interface to the bridge =====
 +<code> 
 +/interface bridge port 
 +add bridge=bridge1 interface=veth-haproxy disabled=no hw=no pvid=10 
 +</code> 
 +And add as untagged to VLAN 10: 
 +<code> 
 +/interface/bridge/vlan 
 +edit number=0 untagged 
 +</code> 
 +Add ''veth-haproxy'' to the list ans save with ''CRTL-o''.
  
  
installatie_handleidingen/mikrotik/virtual-container-network.1758383088.txt.gz · Laatst gewijzigd: 2025/09/20 17:44 door abel