initial upload
This commit is contained in:
34
README.md
Normal file
34
README.md
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# Vorbereitung:
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Unter Debian 12 wird das Packet **build-essential** benötigt.
|
||||||
|
|
||||||
|
Jetzt muss das [vrnetlab-Repository](https://github.com/hellt/vrnetlab/tree/master) von Github zu klonen. Danach muss das vJunosEvolved Image von [Juniper](https://www.juniper.net/us/en/dm/vjunos-labs.html) runtergeladen werden und in den Ordner **vjunosevolved** kopiert werden.
|
||||||
|
|
||||||
|
Im Ordner **vjunosevolved** muss nurnoch der Befehl **make** ausgeführt werden. Jetzt gibt es das Docker Image **vrnetlab/vr-vjunosevolved**.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
# Containerlab
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Nachdem das Docker Image gebaut wurde, können wir die Containerlab Konfiguration erstellen.
|
||||||
|
|
||||||
|
In der Datei [vjunosevolved.clab.yml](https://git.jnebel.de/JonathanN1203/containerlab-vJunosEvolved/vjunosevolved.clab.yml) ist eine Minimal-Setup mit einem Linux Container und einem vJunosEvolved Router.
|
||||||
|
|
||||||
|
In der Datei [vjunos.cfg](https://git.jnebel.de/JonathanN1203/containerlab-vJunosEvolved/vjunos.cfg) befindet sich die Minimal Konfiguration für Junos. Diese Konfiguration wird importiert, nachdem der Router gestartet ist.
|
||||||
|
|
||||||
|
# Wichtig
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Der Router braucht sehr lange um zu starten, dies kann bis zu 15 Minuten brauchen.
|
||||||
|
|
||||||
|
Das Interface eth0 aus Containerlab ist das Management Interface von vJunosEvolved.
|
||||||
|
|
||||||
|
Das Interface eth1 wird in Junos als et-0/0/0 erkannt, dies wird entsprechend fortgesetzt.
|
||||||
|
|
||||||
|
Die Konfiguration welche in der Datei [vjunos.cfg](https://git.jnebel.de/JonathanN1203/containerlab-vJunosEvolved/vjunos.cfg) ist, kann mit dem Befehl **show configuration** angezeigt werden.
|
||||||
23
vjunos.cfg
Normal file
23
vjunos.cfg
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
interfaces {
|
||||||
|
et-0/0/0 {
|
||||||
|
unit 0 {
|
||||||
|
family inet {
|
||||||
|
address 192.168.1.1/24;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
et-0/0/1 {
|
||||||
|
unit 0 {
|
||||||
|
family inet {
|
||||||
|
address 192.168.5.1/24;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
et-0/0/2 {
|
||||||
|
unit 0 {
|
||||||
|
family inet {
|
||||||
|
address 192.168.2.1/24;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
17
vjunosevolved.clab.yml
Normal file
17
vjunosevolved.clab.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
name: vjunosevolved
|
||||||
|
|
||||||
|
topology:
|
||||||
|
nodes:
|
||||||
|
client1:
|
||||||
|
kind: "linux"
|
||||||
|
image: wbitt/network-multitool:alpine-extra
|
||||||
|
exec:
|
||||||
|
- ip addr add 192.168.1.2/30 dev eth1
|
||||||
|
- ip route add 192.168.2.0/30 via 192.168.1.1
|
||||||
|
vevo:
|
||||||
|
kind: juniper_vjunosevolved
|
||||||
|
image: vrnetlab/vr-vjunosevolved:23.2R1-S1.8-EVO
|
||||||
|
startup-config: vjunos.cfg
|
||||||
|
|
||||||
|
links:
|
||||||
|
- endpoints: ["client1:eth1", "vevo:eth1"]
|
||||||
Reference in New Issue
Block a user