VMware Cloud Community
duala
Contributor
Contributor

Cannot ping the internal vapp network network

I have a vapp with 2 vm instances connected to external network and I can reach them without any issue.

I created a vapp-network and the IP's are assigned successfully, they cannot ping each other.

Please help if I am missing anything ?

Please check the attached pics.

0 Kudos
10 Replies
charliejllewell
Enthusiast
Enthusiast

Hi Duala,

Can you do a tcpdump on one host looking for ICMP traffic and then ping it from the other and see whether you recieve the requests and whether responses are sent?

Thanks

Charlie

duala
Contributor
Contributor

Thanks for the response,

            This is a very interesting problem.

Step1> I have created a demo-vapp with vapp private network of 192.168.3.0.

            2 vm instances in the demo-vapp are talking to each other, one is web and the other DB.

Step2>  Added the demo-vapp to the catalog.

             Create dev1 user as vapp-author.

Step3> Logged in as dev1 user and added demo-vapp from catalog, new vapp name is vapp_dev1_1.

            Started the vapp_dev1, cannot ping each other in the vapp network.(Inital demo-vapp is functioning correct).

It always works for the first time in the organization, it worked for me using 192.168.2. network.

I want the private vapp network as constant. Am I missing something ? .I am assuming not to fence the vapp as vapp network is already confined within vapp.

Experts,Please help.

0 Kudos
duala
Contributor
Contributor

Bumping it up, has the demo at 4PM today Smiley Sad

0 Kudos
duala
Contributor
Contributor

the output of tcpdump on eth1 private vapp network while trying to ping the other vm instance is

[root@db-dev1 ~]# tcpdump -nvi eth1
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
06:55:17.676992 arp who-has 192.168.3.11 tell 192.168.3.10
06:55:18.676970 arp who-has 192.168.3.11 tell 192.168.3.10
06:55:19.676960 arp who-has 192.168.3.11 tell 192.168.3.10
06:55:21.676942 arp who-has 192.168.3.11 tell 192.168.3.10
06:55:22.676922 arp who-has 192.168.3.11 tell 192.168.3.10
06:55:23.676907 arp who-has 192.168.3.11 tell 192.168.3.10
06:55:25.676881 arp who-has 192.168.3.11 tell 192.168.3.10
06:55:26.676870 arp who-has 192.168.3.11 tell 192.168.3.10
06:55:27.676861 arp who-has 192.168.3.11 tell 192.168.3.10
06:55:30.816835 arp who-has 192.168.

something is missing here.

0 Kudos
charliejllewell
Enthusiast
Enthusiast

Hi Duala,
Sorry I missed this yesterday. Hope the Demo went okay?
Can you confirm how you have configured the network in vCD? Static pool, static manual, DHCP?
Can you run ifconfig -a and post the config from the both VM's in both vApps? Can you also run "tcpdump icmp" on both hosts in the vApp that doesn't work and then from a seperate console session on one of the hosts ping the other and post the output?
Cheers
Charlie
0 Kudos
duala
Contributor
Contributor

Demo moved to this afternoon Smiley Happy

Network in vCD:

External network connected to dvPortgroup. -- static pool

Nework pool  VCDNI  -- dvSwitch --

vAPP network is created on the fly for the particular vapp.

vapp successfully connected to external network, internal network is 192.168.3.0

both the vm's internal vapp nw IP address is assigned through static pool (tried with DHCP too),but no luck.

ifconfig -a on DB node

eth0      Link encap:Ethernet  HWaddr 00:50:56:01:00:B8
          inet addr:10.194.55.22  Bcast:10.194.55.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fe01:b8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:572 errors:0 dropped:0 overruns:0 frame:0
          TX packets:228 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:88320 (86.2 KiB)  TX bytes:29404 (28.7 KiB)
eth1      Link encap:Ethernet  HWaddr 00:50:56:01:00:E4
          inet addr:192.168.3.11  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fe01:e4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:7714 (7.5 KiB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:23 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1437 (1.4 KiB)  TX bytes:1437 (1.4 KiB)
sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

ifconfig -a on webnode

[root@web-templat-0 ~]# ifconfig -a

eth0      Link encap:Ethernet  HWaddr 00:50:56:01:00:B7

          inet addr:10.194.55.18  Bcast:10.194.55.255  Mask:255.255.255.0

          inet6 addr: fe80::250:56ff:fe01:b7/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:442 errors:0 dropped:0 overruns:0 frame:0

          TX packets:124 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:82685 (80.7 KiB)  TX bytes:14401 (14.0 KiB)

eth1      Link encap:Ethernet  HWaddr 00:50:56:01:00:E3

          inet addr:192.168.3.10  Bcast:192.168.3.255  Mask:255.255.255.0

          inet6 addr: fe80::250:56ff:fe01:e3/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:56 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 b)  TX bytes:7229 (7.0 KiB)

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:18 errors:0 dropped:0 overruns:0 frame:0

          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:1208 (1.1 KiB)  TX bytes:1208 (1.1 KiB)

sit0      Link encap:IPv6-in-IPv4

          NOARP  MTU:1480  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

there is no output from tcpdump icmp command,  i pinged from other node and within the same node.

0 Kudos
duala
Contributor
Contributor

vapp diagram is attached

0 Kudos
duala
Contributor
Contributor

I never bothered to look into the base OS image, it was provided by another developer Smiley Happy

I created another base OS,ported web and DB into it, everything works like magic.

I narrowed my focus only onto vcloud director,assuming problem with vclod, lost 2 days,learned a lot of vcloud networking.

Thanks for the help.

0 Kudos
duala
Contributor
Contributor

Charlie,thanks for response,

thank you for all who replied. My demo went very well.

0 Kudos
charliejllewell
Enthusiast
Enthusiast

Glad the demo went well Smiley Happy

0 Kudos