Verify EndPoints
Across Data Centers

Now that you have Multi-Site Schemas configured across ACI fabrics and VMs running, it is time to test the connectivity between the VMs across the ISN. In this section, we will apply some concepts from earlier in the lab to attach VMs to the proper VMware vDS port-group that was created by the MSO controller.

Since these endpoints will reside in the same EPG, no contract was required when creating the Schema Template. However, if you use MSO to create various EPGs with endpoints in different EPGs, like normal from the APIC point-of-view, hosts in different EPG will not be able to communicate between each other unless there is a contract defined between them.

Step 1 - Set Management Port Group to Network Adapter 1

Click the terminal icon on the left to open the lab ansible host cl-srv1 Username: pod4u1 Password: cisco.123

Log to the lab ansible host and run the playbook bellow


    cd cl-vm


    ansible-playbook -i inventories/cl-vm/cl-vm.yml cl-vm.yml -t msite


    PLAY [pod4] 
    TASK [cl-vm/set_msite_vm : get VM info]   
    TASK [cl-vm/set_msite_vm : Set port group] 
    TASK [cl-vm/set_msite_vm : Get portgroup info] 
    TASK [cl-vm/set_msite_vm : Change port group policy] 
    
    PLAY RECAP **************************************
    POD04-APP-SRV              : ok=0    changed=0     
    POD04-DB-SRV               : ok=4    changed=1     
    POD04-WEB-SRV-01           : ok=0    changed=0     
    POD04-WEB-SRV-02           : ok=0    changed=0     
    

    ansible-playbook -i inventories/cl-vm/cl-rmt-vm.yml cl-vm.yml -t msite

    
    PLAY [pod4] *******************************************
    
    TASK [cl-vm/set_msite_vm : get VM info] ****************
    TASK [cl-vm/set_msite_vm : Set port group] *************
    TASK [cl-vm/set_msite_vm : Get portgroup info] *********    
    TASK [cl-vm/set_msite_vm : Change port group policy] ***
    

    

    python3 roles/cl-vm/set_msite_vm/files/chg_rmt_pg.py pod4u1 cisco.123 4


    pod4u1@cl-srv1:~/cl-vm$     python3 roles/cl-vm/set_msite_vm/files/chg_rmt_pg.py pod4u1 cisco.123 4
    Connecting to 10.0.226.193
    Getting into pod dc_pod04
    Reconfiguring Network adapter 2 for virtual machine POD04-RMT-SRV-01
    Reconfiguration Network adapter 2 to msite_p04_tenant|msite_p04_ap|msite_p04_epg for virtual machine POD04-RMT-SRV-01 completed successfully.
    pod4u1@cl-srv1:~/cl-vm$ 

Step 2 - Login to POD04-RMT-SRV-01

Click on the console ICON on the left to start the connection to the POD04-RMT-SRV-01 Username: root Password: cisco.123

Step 3 - Configure the IP for the Second NIC on POD04-RMT-SRV-01

During this step we will be configuring the static IP address of the second NIC


cat << EOF > /etc/sysconfig/network-scripts/ifcfg-ens224 
TYPE=Ethernet
BOOTPROTO=static
DEVICE=ens224
ONBOOT=yes
IPADDR=192.168.104.11
NETMASK=255.255.255.0
DEFROUTE=no
EOF

Step 4 - Restart Network Services

After we have modified the ip address and added the static route, we need to restart the network services in order to take effect the previous changes.


systemctl restart network

Step 5 - Login to POD04-DB-SRV

Click on the console ICON on the left to start the connection to the 10.0.145.29 Username: root Password: cisco.123

Step 6 - Ping your DB VM's Default Gateway (192.168.104.1)

From your POD04-DB-SRV VM, ping the anycast gateway that has been provisioned to ACI through the MSO Schema.


ping 192.168.104.1 -c 3

root@pod04-db-srv-01 ~]#ping 192.168.104.1 -c 3
PING 192.168.104.1 (192.168.104.1) 56(84) bytes of data.
64 bytes from 192.168.104.1: icmp_seq=1 ttl=64 time=0.174 ms
64 bytes from 192.168.104.1: icmp_seq=2 ttl=64 time=0.193 ms
64 bytes from 192.168.104.1: icmp_seq=3 ttl=64 time=0.164 ms

--- 192.168.104.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.164/0.177/0.193/0.012 ms

Step 7 - Ping your Remote Site VM (POD04-RMT-SRV-01)

From your POD04-DB-SRV VM, ping your POD04-RMT-SRV-01 that resides in the remote data center (dc1).

Terminal

ping 192.168.104.11 -c 3

root@pod04-db-srv-01 ~]#ping 192.168.104.11 -c 3
PING 192.168.104.11 (192.168.104.11) 56(84) bytes of data.
64 bytes from 192.168.104.11: icmp_seq=1 ttl=64 time=0.174 ms
64 bytes from 192.168.104.11: icmp_seq=2 ttl=64 time=0.193 ms
64 bytes from 192.168.104.11: icmp_seq=3 ttl=64 time=0.164 ms

--- 192.168.104.11 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.164/0.177/0.193/0.012 ms