scripts
This commit is contained in:
parent
d2d77fc209
commit
24a364bfcb
@ -1,10 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Connexion à RohanNet
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
RemainAfterExit=yes
|
|
||||||
ExecStart=/bin/bash /usr/lib/systemd/scripts/rohannet_setup.sh
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
11
rohan-net/rohan-net.service
Normal file
11
rohan-net/rohan-net.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Connexion à Rohan-Net
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
#ExecStart=/bin/bash /usr/lib/systemd/scripts/rohan-net_setup_gatekeeper.sh
|
||||||
|
#ExecStart=/bin/bash /usr/lib/systemd/scripts/rohan-net_setup_yavanna.sh
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
@ -2,20 +2,21 @@
|
|||||||
|
|
||||||
# Script créant la connexion entre gatekeeper et les réseaux virtuels sur le cluster Proxmox Rohan
|
# Script créant la connexion entre gatekeeper et les réseaux virtuels sur le cluster Proxmox Rohan
|
||||||
|
|
||||||
ip link add ethRohanNetArda type vxlan id 18 dev ethInfoInt dstport 4789
|
ip link add ethRohanNetArda type vxlan id 20 dev ethInfoInt dstport 4789
|
||||||
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.21 dev ethRohanNetArda
|
||||||
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.70 dev ethRohanNetArda
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.70 dev ethRohanNetArda
|
||||||
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.71 dev ethRohanNetArda
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.71 dev ethRohanNetArda
|
||||||
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.72 dev ethRohanNetArda
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.72 dev ethRohanNetArda
|
||||||
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.73 dev ethRohanNetArda
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.73 dev ethRohanNetArda
|
||||||
ip addr add 172.18.1.254/16 dev ethRohanNetArda
|
ip addr add 172.20.1.254/16 dev ethRohanNetArda
|
||||||
ip link set mtu 1450 dev ethRohanNetArda
|
ip link set mtu 1450 dev ethRohanNetArda
|
||||||
ip link set up dev ethRohanNetArda
|
ip link set up dev ethRohanNetArda
|
||||||
|
|
||||||
ip link add ethRohanNetSAE type vxlan id 19 dev ethInfoInt dstport 4789
|
ip link add ethRohanNetSAE type vxlan id 21 dev ethInfoInt dstport 4789
|
||||||
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.70 dev ethRohanNetSAE
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.70 dev ethRohanNetSAE
|
||||||
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.71 dev ethRohanNetSAE
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.71 dev ethRohanNetSAE
|
||||||
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.72 dev ethRohanNetSAE
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.72 dev ethRohanNetSAE
|
||||||
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.73 dev ethRohanNetSAE
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.73 dev ethRohanNetSAE
|
||||||
ip addr add 172.19.1.254/16 dev ethRohanNetSAE
|
ip addr add 172.21.1.254/16 dev ethRohanNetSAE
|
||||||
ip link set mtu 1450 dev ethRohanNetSAE
|
ip link set mtu 1450 dev ethRohanNetSAE
|
||||||
ip link set up dev ethRohanNetSAE
|
ip link set up dev ethRohanNetSAE
|
13
rohan-net/rohan-net_setup_yavanna.sh
Normal file
13
rohan-net/rohan-net_setup_yavanna.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Script créant la connexion entre yavanna et les réseaux virtuels sur le cluster Proxmox Rohan
|
||||||
|
|
||||||
|
ip link add ethRohanNetArda type vxlan id 20 dev ethInfoInt dstport 4789
|
||||||
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.70 dev ethRohanNetArda
|
||||||
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.71 dev ethRohanNetArda
|
||||||
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.72 dev ethRohanNetArda
|
||||||
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.73 dev ethRohanNetArda
|
||||||
|
bridge fdb append to 00:00:00:00:00:00 dst 172.16.1.254 dev ethRohanNetArda
|
||||||
|
ip addr add 172.20.1.21/16 dev ethRohanNetArda
|
||||||
|
ip link set mtu 1450 dev ethRohanNetArda
|
||||||
|
ip link set up dev ethRohanNetArda
|
Loading…
Reference in New Issue
Block a user