Julenho / sFlow_IoT_monitoring

My ovs project
0 stars 0 forks source link

Version 1.0 #1

Open Julenho opened 2 years ago

Julenho commented 2 years ago

First version based on video: https://www.youtube.com/watch?v=rYW7kQRyUvA

Each VM need to have a own TAP interface to connect

Julenho commented 2 years ago

First of all create a bridge

ovs-vsctl add-br

Enable the bridge interface

ifconfig up

Attach the bridge interface to the fisical interface

ovs-vsctl add-port

Backup the network configuration file (for guarantee)

cp /etc/network/interfaces /etc/network/interfaces.bkp

Remove the IP address of fisical interface

ifconfig 0

Set a dynamic IP address

dhclient

Create a TAP interfaces to connect on the VM

ip tuntap add mode tap tap0 ip tuntap add mode tap tap1

turn them on

ifconfig tap0 up ifconfig tap1 up

Add a TAP interface on the bridge

ovs-vsctl add-port tap0 ovs-vsctl add-port tap1