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.
Click the terminal icon on the left to open the lab ansible host cl-srv1 Username: pod21u1 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 [pod21] 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 [pod21] ******************************************* 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 pod21u1 cisco.123 21
pod4u1@cl-srv1:~/cl-vm$ python3 roles/cl-vm/set_msite_vm/files/chg_rmt_pg.py pod21u1 cisco.123 21 Connecting to 10.0.226.193 Getting into pod dc_pod21 Reconfiguring Network adapter 2 for virtual machine POD21-RMT-SRV-01 Reconfiguration Network adapter 2 to msite_p21_tenant|msite_p21_ap|msite_p21_epg for virtual machine POD21-RMT-SRV-01 completed successfully. pod4u1@cl-srv1:~/cl-vm$
Click on the console ICON on the left to start the connection to the POD21-RMT-SRV-01 Username: root Password: cisco.123
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.121.11
NETMASK=255.255.255.0
DEFROUTE=no
EOF
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
Click on the console ICON on the left to start the connection to the 10.0.145.165 Username: root Password: cisco.123
From your POD21-DB-SRV VM, ping the anycast gateway that has been provisioned to ACI through the MSO Schema.
ping 192.168.121.1 -c 3
root@pod21-db-srv-01 ~]#ping 192.168.121.1 -c 3 PING 192.168.121.1 (192.168.121.1) 56(84) bytes of data. 64 bytes from 192.168.121.1: icmp_seq=1 ttl=64 time=0.174 ms 64 bytes from 192.168.121.1: icmp_seq=2 ttl=64 time=0.193 ms 64 bytes from 192.168.121.1: icmp_seq=3 ttl=64 time=0.164 ms --- 192.168.121.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
From your POD21-DB-SRV VM, ping your POD21-RMT-SRV-01 that resides in the remote data center (dc1).
ping 192.168.121.11 -c 3
root@pod21-db-srv-01 ~]#ping 192.168.121.11 -c 3 PING 192.168.121.11 (192.168.121.11) 56(84) bytes of data. 64 bytes from 192.168.121.11: icmp_seq=1 ttl=64 time=0.174 ms 64 bytes from 192.168.121.11: icmp_seq=2 ttl=64 time=0.193 ms 64 bytes from 192.168.121.11: icmp_seq=3 ttl=64 time=0.164 ms --- 192.168.121.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