From b5bb3cdf925730a693eed9e2528b92c04975c7d0 Mon Sep 17 00:00:00 2001 From: Kirill Semenkov Date: Mon, 17 Dec 2018 12:10:50 +0300 Subject: Veth support added Signed-off-by: Robin H. Johnson --- doc/net.example.Linux.in | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'doc') diff --git a/doc/net.example.Linux.in b/doc/net.example.Linux.in index 3b414ba..6fc6094 100644 --- a/doc/net.example.Linux.in +++ b/doc/net.example.Linux.in @@ -914,6 +914,30 @@ # of the node as well #openvpn_tun1="--user foo --group bar" +#----------------------------------------------------------------------------- +# Virtual interface device (veth) +# For veth support install iproute2 and awk +# +# The script uses "standard" ways of IP-address assignement in net.lo script. Network namespaces are not implemented here +# because net.lo currently knows nothing about network namespaces. +# +# You must specify veth interface type to avoid interference with "normal" interfaces startup +# The interface type must be set for both peers +#type_veth0="veth" +# Here we declare peers for "ip link add" command +#veth_veth0="veth0 veth1" +#config_veth0="192.168.0.1/24" +# +# Avoids race +#rc_net_veth1_need="net.veth0" +#type_veth1="veth" +# Both peers are created when the first one starts, we don't need to create the second peer +# explicitly, we just configure it +#veth_veth1_create="no" +#config_veth1="192.168.2.1/24" +# + + #----------------------------------------------------------------------------- # Bridging (802.1d) # Preferred: iproute2, emerge sys-apps/iproute2 -- cgit v1.2.3-65-gdbad