commit: b5bb3cdf925730a693eed9e2528b92c04975c7d0 Author: Kirill Semenkov <semenkovk <AT> gmail <DOT> com> AuthorDate: Mon Dec 17 09:10:50 2018 +0000 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> CommitDate: Sun Apr 21 04:10:41 2019 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=b5bb3cdf
Veth support added Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> doc/net.example.Linux.in | 24 ++++++++++++++++++++++++ net/Makefile | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) 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 diff --git a/net/Makefile b/net/Makefile index 390f8d8..dab94f9 100644 --- a/net/Makefile +++ b/net/Makefile @@ -14,7 +14,7 @@ INC-Linux= adsl.sh apipa.sh arping.sh bonding.sh br2684ctl.sh bridge.sh \ ccwgroup.sh clip.sh ethtool.sh iproute2.sh ifplugd.sh ip6to4.sh \ ipppd.sh iwconfig.sh netplugd.sh pppd.sh pump.sh tuntap.sh udhcpc.sh \ vlan.sh macvlan.sh ip6rd.sh firewalld.sh dummy.sh hsr.sh l2tp.sh \ - iw.sh wireguard.sh + iw.sh wireguard.sh veth.sh SRCS-NetBSD= ifwatchd.sh.in INC-NetBSD= ifwatchd.sh