Page 1 of 2

Can´t connect my Lab to "External World"

Posted: Wed Apr 12, 2017 6:35 pm
by dragonauta29
hello Guys,

Before anything else i would like to say that EVE-NG is a real piece of art, and that i would like to thank you and everyone else helping us understand how to work with this awesome resource!!
Well, i have seen the video on youtube(#UNL HowTo - ESXi external VMs clouds and Internet) and tried to replicate that on Vmware Workstation 12, well, i have done a pretty simple scenario for the purpose of learning to to connect to the Internet, my Personal computer and the host itself from the LAB and vice-versa, the scenario is as follows:
1 - Created a Vyos(1.1.7) Node with 2 interfaces
2 - Configured it with an IP address on the same range that the NAT adapter from Workstation is.
3 - Created a New network with the Type "Bridge"
4 - Connected Vyos on the New Network
5 - Tried to ping from the host computer and i have no success...tried to ping the host from Vyos and no succes...
6 - What am i doing wrong here?
P.S - If i try the same setup on a Cisco router the result i s that i still wont access the external world .(both ints confiigured)


Any Ideas people??

Re: Can´t connect my Lab to "External World"

Posted: Wed Apr 12, 2017 7:08 pm
by Uldis (UD)
I Still didnt create video still about clouds.
And this lookst that make confusion.

But looking at your explanation problem is bridge network!! It is not right to use it here.
You have to use Cloud0 interface if want get connection to NAT subnet.
Bridge network is used only for connection of 3 or more nodes in same vswitch!
Our bridge is like smart vswitch supporting dot1q and STP.

Real world is Cloud interfaces only.
Your case Cloud0 is right choice to connect your Vyatta to real net`
UD

Re: Can´t connect my Lab to "External World"

Posted: Wed Apr 12, 2017 7:22 pm
by dragonauta29
Thank you very much for your reply, i forgot to mention that the vm that i created had only one network card and i added a new one afterwards.
Does Eve connect the cloud0 to the second interface automatically or it is going to be connected to the first interface??(vmnet)also, how to add an ip address to the second interface?
P.S.
It is Working NOW...Thank you Very MUCH!!!

Re: Can´t connect my Lab to "External World"

Posted: Fri Apr 14, 2017 9:52 pm
by abc
Hello everyone. Thank you for your awesme project!

I have a somewhat similar problem, so may be you can help me.

1. EvE-ng on Vmware Workstation. It has two network interfaces:
  • first is NAT
  • second is Vmnet10 (which is host-onlt interface with connection to host and without DHCP)
2. Ubuntu on a Virtual Machine
  • eth0 interface connected to Vmnet10
3. Cisco router and Cloud inside Eve-ng
  • Router with interface fa0/0
  • Cloud with 'interface' Cloud0
What I wanted to do is connect Cisco router with Ubuntu. So it would look like this:

Code: Select all

10.0.0.1/24 Router ---- 10.0.0.2/24 Ubuntu
I've wrote those ip addresses in router config and ubuntu network config, but ping does not work.

Code: Select all

Router: ping 10.0.0.2
If ping comes from Router you can observe the following:
- tcpdump on pnet1 shows that icmp requests go to 10.0.0.2 (sometimes they come back, but that is rare event)
- on Host Vmnet10 interface packets come in both directions (ICMP requests and replies)
- on Ubuntu eth0 = both directions
result: success 0%

Code: Select all

Ubuntu: ping 10.0.0.1
If ping comes from Ubuntu, you can see that in
- Ubuntu eth0 : ICMP requests leave, but never come back
- Host Vmnet0: only ICMP requests to 10.0.0.1
- EvE-ng pnet1: ICMP requests and replies
- EVE-ng eth1: ICMP requests and replies
- EVE-ng link from Cloud to fa0/0: ICMP requests only
result: the same = 0%

My host OS is also Ubuntu. There are no iptables rules/firewalls on host or virtual machine.

What am I missing?
Thank you.

Re: Can´t connect my Lab to "External World"

Posted: Fri Apr 14, 2017 10:57 pm
by ramindia
Hi

This video should help you.

https://www.youtube.com/watch?v=w_oYEQbkOHU

R!

Re: Can´t connect my Lab to "External World"

Posted: Sat Apr 15, 2017 2:44 am
by andyl
Not sure if this will help but someone just pointed this out to me so I thought I would mention it here.

Do you have the vsphere switch in promiscuous mode?

andy

Re: Can´t connect my Lab to "External World"

Posted: Sat Apr 15, 2017 7:35 am
by Uldis (UD)
Per your words you have NAT and VMNET10 on the EVE as 2 interfaces.
Your EVE clouds are:
Cloud0=NAT
Cloud1=VMNET10

So you simply lost logic and did mistake using Cloud0 here:)

Cisco router and Cloud inside Eve-ng

Router with interface fa0/0

Cloud with 'interface' Cloud0

Eve VM Cloud0 corresponding to NAT adapter, but not vmnet10 !!!
Your case on the eve you have to use cloud1...no0

EVE Lab R1-Cloud1-vmnet10-vmnet10-linux external host

And be sure if your EVE VM is shutdown when you change VMNETs or settings !!!

UD

Re: Can´t connect my Lab to "External World"

Posted: Sat Apr 15, 2017 10:12 am
by abc
Thank you all for your answers.
ramindia wrote:
Fri Apr 14, 2017 10:57 pm
Hi

This video should help you.

https://www.youtube.com/watch?v=w_oYEQbkOHU

R!
I've seen this video. I did not have any problems with cloud connections in UNetLab.
Everything was running perfectly.

andyl wrote:
Sat Apr 15, 2017 2:44 am
Not sure if this will help but someone just pointed this out to me so I thought I would mention it here.

Do you have the vsphere switch in promiscuous mode?

andy
I'am using Vmware Workstation 12 and Vmnet is in promiscuous mode:

Code: Select all

crw-rw-rw- 1 root root 119, 10 апр 15 11:43 /dev/vmnet10
Uldis (UD) wrote:
Sat Apr 15, 2017 7:35 am
Per your words you have NAT and VMNET10 on the EVE as 2 interfaces.
Your EVE clouds are:
Cloud0=NAT
Cloud1=VMNET10

So you simply lost logic and did mistake using Cloud0 here:)

Cisco router and Cloud inside Eve-ng

Router with interface fa0/0

Cloud with 'interface' Cloud0

Eve VM Cloud0 corresponding to NAT adapter, but not vmnet10 !!!
Your case on the eve you have to use cloud1...no0

EVE Lab R1-Cloud1-vmnet10-vmnet10-linux external host

And be sure if your EVE VM is shutdown when you change VMNETs or settings !!!

UD

I'am sorry there was a typo. I'm using Cloud1 insetad of Cloud0.

I figured out that ARP requests and replies are going back and forth, and the problem is with ICMP.

Code: Select all

Router: ping 10.0.0.1 
Ubuntu send ICMP response, and you can see that in Host Vmnet10 traffic. But EvE-ng does not recive any of these replies.

Re: Can´t connect my Lab to "External World"

Posted: Sat Apr 15, 2017 12:32 pm
by ramindia
As of now i think of is, if you did network connection after the device started you see the issue.

Stop all the nodes, and make connections and start the nodes and test.

R!

Re: Can´t connect my Lab to "External World"

Posted: Sat Apr 15, 2017 10:55 pm
by Uldis (UD)
and interfaces vm10 must be installed !!!
and visible under your pc networks..only then it can work as bridge !!!