Sunday, September 6, 2020

connecting EVE-NG lab to External VM in GCP

I have been trying to set up an eve-ng server in gpc that lets routers, swtichs, firewalls insdied of eve-ng talk with vm’s running outside eve-ng but in the same gcp network. I can't figure out how to have this external VM connect via one of the cloud networks in eve-ng. I can set this up and have it working in VMware workstatio. I add an extra NIC to both vm’s (eve and Ubuntu) and place them in the same VMnet. Then that interface (eth1 no IP on eve) is attached to a cloud1 network insdie the lab, and i on the ubuntu VM i assigning that nic an ip in , then give the router in eve-ng behind the cloud a IP in that same subnet and they connect fine.

In GCP I have tried to create another network and attach both VM’s (eve-ng & ubuntu) but the interface in gpc get an ip address (not how vmware does it) and will be assigned a name of ens5 instead of eth5. I checked the /etc/udev/rules.d/70-persistent-net.rules

But only saw an entry for the ens0 to eth0.

I also tried assigning an ip address to the Pnet9 interfaces that was not in any subnets on gcp 10.100.110.x and created a route in gcp pointing that range to the Instance. This let my ubuntu vm ping that pnet9 interface but not any devices connected to pnet9 with an ip in that subnet. I also maid sure to turn on IP forwarding.

I have created firewall rules on GCP that say any private ip’s can talk on that network to any ip. I've been trying to get this to work for a few weeks now. I really don't want to have to buy more ram and run all this locally. Would love to use gcp ebay has some great vouchers and i can spin up a 16 core 120 gb ram vm for a few bucks and hour. Also maybe this is not the best way to do what i want. I would like to have a vm that i can install tools and interact with devices in the lab (trying to learn some vxlan and ansible)

Thanks!



No comments:

Post a Comment