Site 2 Site tunnel with multiple identical subnets on remote sites - without virtual hosts ( Route Based VPN )

The goal: connect to multiple the same subnets on clients side using vpns. topology: As you see on the left side are clients with diffirent subnets and, but on the right side all of them have the same To make this work we need to route traffic to the specific VPN due to source IP. So if the source subnet is route it into VPN1 and if source subnet is route it into VPN2 Address scheme: - VPN HUB external eth192 WAN: internal eth224 LAN1: internal eth256 LAN2: - ClientA external eth192 WAN: internal eth224 LAN: - ClientB external eth192 WAN: internal eth224 LAN: HUB ipsec.conf nano /etc/ipsec.conf conn %defult         ikelifetime=28800s         lifetime=3600s         keyingtries=1         keyexchange=ikev1 conn clientA         authby=secret         ike=3des-sha1

DRBD 8.4 on Debian Jessie

From "The Distributed Replicated Block Device (DRBD) is a software-based, shared-nothing, replicated storage solution mirroring the content of block devices (hard disks, partitions, logical volumes etc.) between hosts. DRBD mirrors data in real time . Replication occurs continuously while applications modify the data on the device. transparently . Applications need not be aware that the data is stored on multiple hosts. synchronously or asynchronously . With synchronous mirroring, applications are notified of write completions after the writes have been carried out on all hosts. With asynchronous mirroring, applications are notified of write completions when the writes have completed locally, which usually is before they have propagated to the other hosts." Lets go and prepare two nodes d01 and d02 During linux nodes installation we must setup IP, hostame and domain name.    19

iSCSI Target in Ubuntu 16.04LTS with multipath as datastore for VMware

Create disk: mkdir /iscsi_disks dd if=/dev/zero of=/iscsi_disks/disk01.img count=0 bs=1 seek=1.8T configure 2 network interfaces for multipath nano /etc/network/interfaces auto ens10f0 iface ens10f0 inet static         address         netmask         network         broadcast         gateway         dns-nameservers auto ens10f1 iface ens10f1 inet static         address         netmask         network         broadcast         gateway         dns-nameservers Set the reverse path in loose mode: nano /etc/sysctl.conf         net.ipv4.conf.default.rp_filter=2         net.ipv4.conf.all.rp_filter=2 Enable iscsitarget nano /etc/iscsitarget         ISCSITARGET_ENABLE=true Define Lun:   nano /etc/iet/ietd.conf         Target iqn.1017-07.spsk2-szczecin.szpital.dl370:disk01         Lun 0 Path=/iscsi_disks/hp-dl370-di

PROXMOX & GlusterFS - HA Cluster with shared redundant storage

TOPOLOGY: PREPARATION After installing proxmox on our 3 nodes we need to edit /hosts file on each node and add other nodes names and IP: in /etc/hosts proxmox01 proxmox02 proxmox03 Update: apt-get update Install NTP Server: apt-get install ntp CREATE OUR CLUSTER on PROXMOX01   pvecm create YOUR-CLUSTER-NAME Test it:   pvecm status Add other nodes:   on PROXMOX02   pvecm add IP-ADDRESS-OF-THE-CLUSTER ( on PROXMOX03   pvecm add IP-ADDRESS-OF-THE-CLUSTER ( Test it:   pvecm status CONFIGURE GLUSTERFS Now we need to install glusterfs so on each node we do: apt-get install glusterfs-server service glusterfs-server start from PROXMOX01: gluster peer probe proxmox02   from PROXMOX02: gluster peer probe proxmox01   from PROXMOX01: gluster peer probe proxmox03 On each node: mkdir -p /gluster/brick1 In proxmox web g

VMware PowerCLI - Mass Migrate all VM'v from one host to another

Script name:     massmigrate.ps1 $SourceHost=$args[0] $DestinationHost=$args[1] $VMs = Get-VMHost $SourceHost | Get-VM | select Name foreach ($VM in $VMs) {Get-VM -Name $VM.Name | Move-VM -Destination $DestinationHost –RunAsync} Now we just simply run it: PowerCLI X:> .\massmigrate.ps1 SourceHostIP DestinationHostIP

VMware PowerCLI- list all VM's Mac Addresses

Easy way of listing all mac addresses of VM's in Cluster. Get-VM | Get-View | foreach { Write-Host $_.Name $_.Config.Hardware.Device.MacAddress }