Can´t connect my Lab to "External World"

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

dragonauta29
Posts: 3
Joined: Wed Apr 12, 2017 6:15 pm

Can´t connect my Lab to "External World"

Post by dragonauta29 » Wed Apr 12, 2017 6:35 pm

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??

Uldis (UD)
Posts: 5176
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

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

Post by Uldis (UD) » Wed Apr 12, 2017 7:08 pm

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

dragonauta29
Posts: 3
Joined: Wed Apr 12, 2017 6:15 pm

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

Post by dragonauta29 » Wed Apr 12, 2017 7:22 pm

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!!!

abc
Posts: 3
Joined: Fri Apr 14, 2017 7:20 pm

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

Post by abc » Fri Apr 14, 2017 9:52 pm

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.

ramindia
Posts: 409
Joined: Sun Mar 19, 2017 10:27 pm

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

Post by ramindia » Fri Apr 14, 2017 10:57 pm

Hi

This video should help you.

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

R!

andyl
Posts: 11
Joined: Fri Apr 14, 2017 8:53 pm

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

Post by andyl » 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

Uldis (UD)
Posts: 5176
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

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

Post by Uldis (UD) » 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

abc
Posts: 3
Joined: Fri Apr 14, 2017 7:20 pm

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

Post by abc » Sat Apr 15, 2017 10:12 am

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.

ramindia
Posts: 409
Joined: Sun Mar 19, 2017 10:27 pm

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

Post by ramindia » Sat Apr 15, 2017 12:32 pm

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!

Uldis (UD)
Posts: 5176
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

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

Post by Uldis (UD) » Sat Apr 15, 2017 10:55 pm

and interfaces vm10 must be installed !!!
and visible under your pc networks..only then it can work as bridge !!!
You do not have the required permissions to view the files attached to this post.

Post Reply