summaryrefslogtreecommitdiff
path: root/doc/guix-cookbook.texi
diff options
context:
space:
mode:
author45mg <45mg.writes@gmail.com>2025-03-22 22:33:16 +0530
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2025-03-23 11:29:41 +0900
commit7581fb5bfb735b2253a478902ed784550600b0f0 (patch)
treea8a14767eb5d5cdd2c20efa978206260a59fb01c /doc/guix-cookbook.texi
parent18763ba3fc2861b661f91b3010d7ffebe4d2eb2e (diff)
doc: cookbook: Clarify virtual network switches.
* doc/guix-cookbook.texi (Virtual Machines): [Routed network for libvirt] {Creating a virtual network switch}: Remove unnecessarily noncommital language ("a few components/configurations, such as..."). Correct 'TUN interface', as bridges are currently used. Add a link to the libvirt Wiki for more information. Change-Id: I6ffdeca8e4d32155c8cce547d4930bf1b0cb471b Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'doc/guix-cookbook.texi')
-rw-r--r--doc/guix-cookbook.texi21
1 files changed, 13 insertions, 8 deletions
diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi
index 13ff5bf8143..7dc8a3d2f50 100644
--- a/doc/guix-cookbook.texi
+++ b/doc/guix-cookbook.texi
@@ -3897,14 +3897,19 @@ hosted on the virtual machine.
3897 3897
3898@subsection Creating a virtual network switch 3898@subsection Creating a virtual network switch
3899 3899
3900A virtual network switch consists of a few components/configurations, 3900A virtual network switch consists of a virtual network device called a
3901such as a @abbr{TUN, network tunnel} interface, DHCP server (dnsmasq) 3901`virtual bridge', DHCP server (dnsmasq) and firewall rules
3902and firewall rules (iptables). The @command{virsh} command, provided by 3902(iptables). See the
3903the @code{libvirt} package, makes it very easy to create a virtual 3903@url{https://wiki.libvirt.org/VirtualNetworking.html, libvirt Wiki
3904switch. You first need to choose a network subnet for your virtual 3904article on Virtual Networking} for more details on the modes of
3905switch; if your home LAN is in the @samp{192.168.1.0/24} network, you 3905operation, management and implementation of virtual network switches.
3906could opt to use e.g.@: @samp{192.168.2.0/24}. Define an XML file, 3906
3907e.g.@: @file{/tmp/virbr0.xml}, containing the following: 3907The @command{virsh} command, provided by the @code{libvirt}
3908package, makes it very easy to create a virtual switch. You first need
3909to choose a network subnet for your virtual switch; if your home LAN is
3910in the @samp{192.168.1.0/24} network, you could opt to use e.g.@:
3911@samp{192.168.2.0/24}. Define an XML file, e.g.@:
3912@file{/tmp/virbr0.xml}, containing the following:
3908 3913
3909@example 3914@example
3910<network> 3915<network>