Compare commits

...

3 Commits

Author SHA1 Message Date
Martin Bley
82dcb5e351 added LaTeX source 2026-03-01 08:15:25 +01:00
Martin Bley
b6dd03e02f Merge branch 'main' of git.mb-oss.de:martin/IPv6-Lab 2026-03-01 08:03:33 +01:00
Martin Bley
3d91d700cd Added network config for impala 2026-03-01 08:02:32 +01:00
2 changed files with 124 additions and 5 deletions

View File

@@ -91,7 +91,20 @@ Then start it
bridged-network Aktiv ja ja
vSwitch0 Aktiv ja ja
On the hosts torino, we need just one interface connected to vSwitch0.
## impala
```impala``` is the WAN router of the lab. On the external interface, the router acts as a DHCPv6 client in order to receive a Prefix Delegation from the DSL-Router (Fritz!Box in this case). On the internal interface ```impala``` will serve Router Advertisements which is necessary for SLAAC. The hosts in the lab environment connectetd to the vSwitch will receive a prefix via SLAAC this way. Thus, we need two network interfaces on this virtual host system:
The external interface ist connexted to the bridge on the host system.
<interface type="network">
<mac address="52:54:00:62:85:19"/>
<source network="bridged-network"/>
<model type="virtio"/>
<address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
</interface>
The internal interface has to be connected to the ```vSwitch0```.
<interface type="bridge">
<source network="vSwitch0" portid="672dad49-ab32-4369-81d3-4a1e7e69b0de" bridge="labbr1"/>
@@ -99,10 +112,6 @@ On the hosts torino, we need just one interface connected to vSwitch0.
<model type="virtio"/>
</interface>
## Torino
Torino is the WAN router of the lab. On the external interface torino acts as a DHCPv6 client in order to receive a Prefix Delegation from the DSL-Router (Fritz!Box in this case). On the internal interface torino will serve Router Advertisements which is necessary for SLAAC. The hosts in the lab environment connectetd to the vSwitch will receive a prefix via SLAAC this way.
### DHCP Client
The dhcpcd package has to be installed on the OpenBSD system.
@@ -121,3 +130,18 @@ Edit the config file /etc/dhcpcd.conf
interface vio0
ipv6rs
ia_pd 1 vio1/1
## gto
```gto``` has one interface on ```vSwitch0```
<interface type="bridge">
<mac address="52:54:00:26:9b:f0"/>
<source bridge="labbr1"/>
<virtualport type="openvswitch">
<parameters interfaceid="d9935aa6-952e-4f7b-8d55-9e8c2d2bc6a5"/>
</virtualport>
<model type="virtio"/>
<address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
</interface>

95
img/lab2.tex Normal file
View File

@@ -0,0 +1,95 @@
\documentclass[%
tikz,
border=5pt,
convert={density=600,size=2560,outext=.png}]%
{standalone}
% Zeichnungen
\usepackage{tikz}
\usetikzlibrary{
%arrows,
fit,
%matrix,
quotes,
positioning,
%arrows.meta,
shapes.symbols,
calc}
\usepackage{moeptikz}
\newcommand*{\nodelabel}[1]{{\scriptsize\bfseries\ttfamily #1}}
\definecolor{bmiblue}{RGB}{0,62,108}
\begin{document}
\tikzset{%
%every node/.style={fill=white},
% Format der Pfeilspitze
arw/.style = {>={Latex[width=2mm,length=2mm]}},
% Basisstil
base/.style = {%
rectangle, rounded corners, draw=black,
minimum width=4cm, minimum height=1cm,
text centered
},
kvm/.style = {fill=orange!30, semitransparent,font=\normalsize\ttfamily,align=left},
mvc/.style = {base, fill=blue!30},
% Stil für die Kantenbeschriftung
bb/.style = {font=\tiny\ttfamily,auto=left,align=center},
% Stil für IP-Nummern
ip/.style = {font=\tiny\ttfamily,auto=right,align=left},
% Stil für Standort
host/.style = {draw=black,
fill=bmiblue!20,
rounded corners,
dashed,
font=\normalsize\ttfamily,align=left
},
interface/.style = {draw=black,
fill=orange!30,
font=\normalsize\ttfamily,
align=left},
}
\begin{tikzpicture}[x=1cm,y=1cm]
% Internet
\node[cloud, draw,aspect=3] (bbi) at (0,0) {Internet};
% DSL-Router
\node[router,label=above:{\nodelabel{DSL-Router}}]
(fritz) at (3,0) {};
% Host computer
\filldraw[host] (6,3) node[above,xshift=3cm] {Host (Debian GNU/Linux)} rectangle (12.6,-3) {};
% hypervisor
\filldraw[kvm] (8.7,2.3) node[above,xshift=8mm,yshift=-1mm] {Hypervisor}
rectangle (10.3,-2.7) {};
% Host interface
\node[rectangle, draw, anchor=west] (eth0) at (6,0) {eth0};
% Bridge interface
\node[rectangle, draw] (br0) at (8,0) {br0};
% router
\node[router,label=below:{\nodelabel{impala}}]
(impala) at (9.5,0) {};
% clients
\node[client,label=below:{\nodelabel{gto}}]
(gto) at (9.5,1.5) {};
\node[client,label=below:{\nodelabel{torino}}]
(torino) at (9.5,-1.5) {};
% Switch
\node[switch,label=right:{\nodelabel{vSwitch0}}]
(vSwitch) at (10.9,0) {};
% Kanten
\draw (bbi) -- (fritz) -- (eth0);
\draw (eth0) -- (br0);
\draw (br0) -- (impala);
\draw (impala) -- (vSwitch);
\draw (gto) -- (vSwitch);
\draw (torino) -- (vSwitch);
\end{tikzpicture}
\end{document}