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.
Return to VMware's vSphere vCenter and login if necessary. Locate your POD03-DB-SRV VM.
In the Edit Settings of your POD03-DB-SRV VM, locate Network adapter 2:
On your vDS, locate your vDS port-group created via the MSO controller: msite_p03_tenant|msite_p03...
Complete adding your POD03-DB-SRV VM to your vDS port-group created via MSO.
Click on the console ICON on the left to start the connection to the LAB-SRV1 Username: pod3u1 Password: cisco.123
cp ~mtarking/change_rmt_pg.py .
Using the CLI run the python program change_pg.py
python change_rmt_pg.py
Please enter User, Password, POD using commas:
pod3u1,cisco.123,3
Verification:
[pod3u1@lab-srv1 ~]$ python change_rmt_pg.py Please enter User, Password, POD using commas pod03u1,cisco.123,03 Connecting to 10.0.226.193 Getting into pod dc_pod03 Reconfiguring Network adapter 2 for virtual machine POD03-RMT-SRV-01 Reconfiguration Network adapter 2 to msite_p03_tenant|msite_p03_ap|msite_p03_epg for virtual machine POD03-RMT-SRV-01 completed successfully. [pod3u1@lab-srv1 ~]$
Before proceeding to the next section, it is important to exit pod3u1@lab-srv1
exit
pod3u1@lab-srv1 ~ exit
Click on the console ICON on the left to start the connection to the POD03-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.103.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.21 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.103.31
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
From your POD03-DB-SRV VM, ping the anycast gateway that has been provisioned to ACI through the MSO Schema.
ping 192.168.103.1 -c 3
root@pod03-db-srv-01 ~]#ping 192.168.103.1 -c 3 PING 192.168.103.1 (192.168.103.1) 56(84) bytes of data. 64 bytes from 192.168.103.1: icmp_seq=1 ttl=64 time=0.174 ms 64 bytes from 192.168.103.1: icmp_seq=2 ttl=64 time=0.193 ms 64 bytes from 192.168.103.1: icmp_seq=3 ttl=64 time=0.164 ms --- 192.168.103.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 POD03-DB-SRV VM, ping your POD03-RMT-SRV-01 that resides in the remote data center (dc1).
ping 192.168.103.11 -c 3
root@pod03-db-srv-01 ~]#ping 192.168.103.11 -c 3 PING 192.168.103.11 (192.168.103.11) 56(84) bytes of data. 64 bytes from 192.168.103.11: icmp_seq=1 ttl=64 time=0.174 ms 64 bytes from 192.168.103.11: icmp_seq=2 ttl=64 time=0.193 ms 64 bytes from 192.168.103.11: icmp_seq=3 ttl=64 time=0.164 ms --- 192.168.103.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