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 - Edit POD01-DB-SRV VM Settings

Return to VMware's vSphere vCenter and login if necessary. Locate your POD01-DB-SRV VM.

  1. Right-click on your POD01-DB-SRV VM
  2. In the popup menu, select Edit Settings

Step 2 - Select vDS Port-Group Provisioned From MSO

In the Edit Settings of your POD01-DB-SRV VM, locate Network adapter 2:

  1. In the dropdown menu of Network adapter 2, select Show more networks...

On your vDS, locate your vDS port-group created via the MSO controller: msite_p01_tenant|msite_p01...

  1. Select the vDS port-group created by the MSO controller: msite_p01_tenant|msite_p01...

Step 3 - Finish Settings Update with New Port-Group

Complete adding your POD01-DB-SRV VM to your vDS port-group created via MSO.

  1. In the Edit Settings window, click Ok to apply modifying the Network adapter 2's network

Step 4 - Login to LAB-SRV1

Click on the console ICON on the left to start the connection to the LAB-SRV1 Username: pod1u1 Password: cisco.123


cp ~mtarking/change_rmt_pg.py .

Step 5 - Run Python Program

Using the CLI run the python program change_pg.py


python change_rmt_pg.py


Please enter User, Password, POD using commas: 
pod1u1,cisco.123,1


Verification:

[pod1u1@lab-srv1 ~]$ python change_rmt_pg.py 
Please enter User, Password, POD using commas
pod01u1,cisco.123,01
Connecting to 10.0.226.193
Getting into pod dc_pod01
Reconfiguring Network adapter 2 for virtual machine POD01-RMT-SRV-01
Reconfiguration Network adapter 2 to msite_p01_tenant|msite_p01_ap|msite_p01_epg for virtual machine POD01-RMT-SRV-01 completed successfully.
[pod1u1@lab-srv1 ~]$  

Step 6 - Exit lab-srv1

Before proceeding to the next section, it is important to exit pod1u1@lab-srv1


exit

pod1u1@lab-srv1 ~ exit

Step 7 - Login to POD01-RMT-SRV-01

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

Step 8 - Configure the IP for the Second NIC on POD01-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.101.11
NETMASK=255.255.255.0
DEFROUTE=no
EOF

Step 9 - 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 10 - Login to POD01-DB-SRV

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

Step 11 - Configure the IP for the Second NIC on POD01-DB-SRV

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.101.31
NETMASK=255.255.255.0
DEFROUTE=no
EOF

Step 12 - 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 13 - Ping your DB VM's Default Gateway (192.168.101.1)

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


ping 192.168.101.1 -c 3

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

--- 192.168.101.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 14 - Ping your Remote Site VM (POD01-RMT-SRV-01)

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

Terminal

ping 192.168.101.11 -c 3

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

--- 192.168.101.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