Julenho / sFlow_IoT_monitoring

My ovs project
0 stars 0 forks source link

2.0 #3

Open Julenho opened 2 years ago

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