gsb2023/scripts/addint.r-vp1
2023-01-05 11:44:26 +01:00

27 lines
752 B
Bash
Executable File

#!/bin/bash
nom=r-vp1
# N-adm (enp0s3)
VBoxManage modifyvm $nom --nic1 intnet
VBoxManage modifyvm $nom --intnet1 "n-adm"
VBoxManage modifyvm $nom --nictype1 82540EM
VBoxManage modifyvm $nom --cableconnected1 on
VBoxManage modifyvm $nom --nicpromisc1 allow-all
# N-linkv (enp0s8)
VBoxManage modifyvm $nom --nic2 intnet
VBoxManage modifyvm $nom --intnet2 "n-linkv"
VBoxManage modifyvm $nom --nictype2 82540EM
VBoxManage modifyvm $nom --cableconnected2 on
VBoxManage modifyvm $nom --nicpromisc2 allow-all
# (enp0s9)
VBoxManage modifyvm $nom --nic3 bridged
VBoxManage modifyvm $nom --bridgeadapter3 "enp11s0f0"
VBoxManage modifyvm $nom --nictype3 82540EM
VBoxManage modifyvm $nom --cableconnected3 on
VBoxManage modifyvm $nom --nicpromisc3 allow-all