Eve ng нет интернета

Support and News Forum

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.

Windows Host Not Connecting to Internet

Post by VGS » Sat Aug 12, 2017 10:21 pm

I have followed all the steps from «How to» document to add one windows 7 host in to the eve and connected that host to Cloud0, but after the installation it is not able to reach to the internet.

It it actually receiving dynamic IP address from the router, also tried changing the IP to avoid the conflict, still not working.

Please assist me with this issue.

Re: Windows Host Not Connecting to Internet

Post by VGS » Sat Aug 12, 2017 10:55 pm

Below is more information on network:

Eve-ng IP: 192.168.0.151/24
Win host IP: 192.168.0.20/24
Cloud0/management IP: taken from eve which is 192.168.0.151/24
Default Gateway: 192.168.0.1

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

Re: Windows Host Not Connecting to Internet

Post by Uldis (UD) » Sat Aug 12, 2017 11:29 pm

if you have eve v71
then i will do video how to install windows on eve.
New way.
just couple days pls

Re: Windows Host Not Connecting to Internet

Post by VGS » Sat Aug 12, 2017 11:35 pm

I am running ever version 2.0.3-68.

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

Re: Windows Host Not Connecting to Internet

Post by Uldis (UD) » Sun Aug 13, 2017 12:41 am

apt-get update
apt-get upgrade

Re: Windows Host Not Connecting to Internet

Post by VGS » Sun Aug 13, 2017 2:04 am

I already tried updating and then testing, still not working.

My friend told me that he has version 60 and it is working for him, I will try using that version.

Читайте также:  Отключается мобильный интернет мегафон

Will update you here soon.

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

Re: Windows Host Not Connecting to Internet

Post by Uldis (UD) » Sun Aug 13, 2017 3:16 pm

no mate..
v71 is very well.
It is your image issue or eve settings not right.

get me output for all these cli commands:

Re: Windows Host Not Connecting to Internet

Post by VGS » Sun Aug 13, 2017 5:48 pm

Yes, it could be the image issue, but I tried using another image of windows server 2008 R2 and issue still persist.

Please see below requested outputs:

root@eve-ng:~# uname -a
Linux eve-ng 4.4.14-eve-ng-ukms+ #1 SMP Mon Dec 19 23:28:33 CET 2016 x86_64 x86_64 x86_64 GNU/Linux

root@eve-ng:~# dpkg -l eve-ng
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii eve-ng 2.0.3-71 amd64 A new generation software for net

root@eve-ng:~# brctl show
bridge name bridge id STP enabled interfaces
pnet0 8000.000c290dfeb3 no eth0
vunl0_1_0
pnet1 8000.000000000000 no
pnet2 8000.000000000000 no
pnet3 8000.000000000000 no
pnet4 8000.000000000000 no
pnet5 8000.000000000000 no
pnet6 8000.000000000000 no
pnet7 8000.000000000000 no
pnet8 8000.000000000000 no
pnet9 8000.000000000000 no

root@eve-ng:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.9G 0 2.9G 0% /dev
tmpfs 597M 14M 584M 3% /run
/dev/mapper/eve—ng—vg-root 122G 26G 91G 23% /
tmpfs 3.0G 0 3.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.0G 0 3.0G 0% /sys/fs/cgroup
/dev/sda1 472M 143M 305M 32% /boot

root@eve-ng:~# kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

Источник

EVE-NG: Internet Access For Your Labs

This post outlines the changes necessary to give images in your lab internet access. This is accompanied by a step-by-step video series released on Network Collective’s YouTube channel.

Published on February 28, 2021 by Tony E.

This blog outlines one of the questions I’ve been asked the most:

How do I give internet access to my running images?

Ever since I released my video How to run EVE-NG in Google Cloud in 2018, I have been inundated with this question and others. I finally put it all together for you and introduce some new ideas in my video series.

Skill Level Required: Medium

If you already know what to do with these commands then go ahead and get started.

If you don’t know what to do, I created a follow along video, along with other EVE-NG: Tips & Tricks:

Add an IP address to the 2nd bridge interface:

sudo -i [email protected]:~# nano /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface iface eth0 inet manual auto pnet0 iface pnet0 inet dhcp bridge_ports eth0 bridge_stp off # Cloud devices iface eth1 inet manual auto pnet1 iface pnet1 inet static #  

Restart Networking:

[email protected]:~# systemctl restart networking 

Turn on IPv4 Forwarding:

Edit /etc/sysctl.conf as root and uncomment: # net.ipv4.ip_forward=1 so that it reads: net.ipv4.ip_forward=1 

Force sysctl to read the new values from the file:

sudo -i sysctl -p /etc/sysctl.conf 

Configure iptables to NAT outbound connections:

sudo -i iptables -t nat -A POSTROUTING -s 10.199.199.0/24 -o pnet0 -j MASQUERADE # The source "-s ##.###.###.#/##" needs to match the subnet you configured the "pnet1" interface with from above. 

Make iptables changes persistent:

Save the current iptables rules (including the new rule we just added) and create a new file for our script:

sudo -i [email protected]:~# iptables-save > /etc/iptables.rules [email protected]:~# nano /etc/network/if-pre-up.d/iptables 

Enter this content:

#!/bin/sh iptables-restore < /etc/iptables.rules exit 0 

Save changes then edit/create next “iptables” file:

[email protected]:~# nano /etc/network/if-post-down.d/iptables 

Enter this content:

#!/bin/sh iptables-save -c > /etc/iptables.rules if [ -f /etc/iptables.rules ]; then iptables-restore < /etc/iptables.rules fi exit 0 

Save changes. Make both files executable:

sudo chmod +x /etc/network/if-post-down.d/iptables sudo chmod +x /etc/network/if-pre-up.d/iptables 

Troubleshooting

The Proper Process

I have had great success with this process:

  1. Making the above configuration changes to the VM.
  2. Adding the Cloud 1 network to your topology.
  3. Adding any device images.
  4. Connecting their MGMT interfaces to Cloud 1.
  5. Power on the device images.
  6. Configure their MGMT IP address, subnet mask and Default Gateway.
  7. Ping the Default Gateway
  8. Ping an external network (8.8.8.8)

Your first test should always verify you can ping your default gateway(pnet1 interface) from your lab images. If you cannot ping your default gateway try these steps:

  • Shutdown your lab images conencted to Cloud 1 and restart them. Try to ping the Default GW.
  • Delete your Cloud 1 from your topology, save and exit your topology. Launch your topology again and drop in the Cloud 1 network again, reconnect it to the device images mgmt interfaces and start the device images.

Источник

EVE-NG access to the Internet from lab nodes.

EVE-NG community edition doesn’t support NAT Cloud. We need a workaround to Connect nodes inside EVE-NG with the Internet.

1- When you create a node indide EVE-NG, you assign its interfaces private IP addresses.
Any interface of this node to have access to the Internet needs:
– A gateway to access the Internet and
– Its IP to be translated to a public IP because its IP is not real ==> (PAT or Port Forwarding)
The only real IP that we have is the external IP assigned to the VM instance hosting EVE-NG.
2- EVE-NG, during installation, creates 10 bridge interfaces on the host machine:

The role of a bridge interface is to connect a guest (a node inside EVE) interface to the host network interface (eth0).

How to Connect nodes inside EVE-NG with the Internet

Let’s assume you have assigned an IP of 192.168.13.10/24 to the windows server node in our topology so you will need a gateway with an IP in this subnet to access the Internet (let’s say 192.168.13.1):

1- Create a virtual gateway with an IP address from the 192.168.13.0/24 subnet:

ip address add 192.168.13.1/24 dev pnet1

You can configure any pnet interface (leave pnet0 for the Management access only).

To make this configuration persistent to survive between reboots:

vim /etc/network/interfaces
iface eth1 inet manual auto pnet1 iface pnet1 inet static address 192.168.13.1 netmask 255.255.255.0 bridge_ports eth1 bridge_stp off 

2-As the communication between the guest and host interfaces is established on the kernel level, you need to enable IP forwarding in the kernel:

echo 1 > /proc/sys/net/ipv4/ip_forward

To make IP forwarding persistent:

vim /etc/sysctl.conf

and uncomment net.ipv4.ip_forward=1

3- Translate the IP addresses in this subnet to the dynamic interface IP address of the VM instance:

iptables -t nat -A POSTROUTING -o pnet0 -s 192.168.13.0/24 -j MASQUERADE

To save this configuration:

apt-get install iptables-persistent

Follow the wizard, the defaults are what we need. Then:

netfilter-persistent save netfilter-persistent reload

Verification

1- Add Cloud1 network (equivalent to pnet1):

2- Connect it to windows server node:

3- RDP the windows server node and open any web browser and test any web server on the Internet:

It works!
Note:
Cloudx is equivalent to pnetx, i.e., if you have configured pnet2 for another subnet, connect the nodes in this subnet to cloud2 if they need access directly to the Internet.

Источник

Настройка сети Eve-ng

Настройка сети Eve-ng - 1

Alukashin.ru

После того как мы в прошлой статье создали виртуальную машину с Eve-ng, настала очередь подготовить сеть. В конце статьи я описывал что нужно запустить пару sh скриптов которые нам создадут виртуальные интерфейсы.

Вырезка из прошлой статьи

Переходим в каталог : cd /opt/ovf и запускаем файл sh ovfstartup.sh , после его настройки запускаем sh ovfconfig.sh. После данной настройки у нас появятся виртуальные сетевые интерфейсы.

Проверяем работу сети

Для проверки мы будем использовать интерфейсс подключение типа Мост и виртуальным стенд компьютером который установлен в комплекте с eve-ng.

Авторизовываемся в веб интерфейсе

Настройка сети Eve-ng - 2

Добавляем новый обьект — Add an object

Настройка сети Eve-ng - 3

Выбираем тип обьекта — Network

Настройка сети Eve-ng - 4

Выбираем наш интерфейс — Management(Cloud0) он и есть интерфейс типа мост. Такой интрефейс будет смотреть в нашу сеть!

Настройка сети Eve-ng - 5

Настройка сети Eve-ng - 6

После добавления сети на карту , добавим и стендовый компьютер.
Выбираем Add an object — Node

Настройка сети Eve-ng - 7

из списка выбираем Virtual PC(VPCS)

Настройка сети Eve-ng - 8

Настройка сети Eve-ng - 9

После добавления, от облака Net , от его розетки(Синяя на скриншоте) тянем провод до розетки стенда(VPC)

Настройка сети Eve-ng - 10

Настройка сети Eve-ng - 11

Нажимаем Start и подключаемся к стенду. Если возникают ошибки устанавливаем пак для Windows для подключения https://www.eve-ng.net/index.php/download/#DL-WIN

Настройка сети Eve-ng - 12

В консоле вбиваем команду dhcp — для автоматического получения адреса
Либо для статического адреса команда
ip 192.168.88.10/24

Настройка сети Eve-ng - 13

Видим что адрес нам выдался , а значит сеть через мост работает корректно.

Настройка сети Eve-ng - 14

Последнее проверяем пинги, если идут значит все хорошо.

Источник

Оцените статью
Adblock
detector