Julenho / sFlow_IoT_monitoring

My ovs project
0 stars 0 forks source link

version 1.1 #2

Open Julenho opened 2 years ago

Julenho commented 2 years ago

In the version 1.0, the IP address of the bridge was assigned dynamically. In the version 1.1 a fixed IP address has been assigned to he bridge.

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 static IP address and default gateway

ip address add <IP/CIDR> dev ip route add default via dev

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