Open Julenho opened 2 years ago
ovs-vsctl add-br
ifconfig up
ovs-vsctl add-port
cp /etc/network/interfaces /etc/network/interfaces.bkp
ifconfig 0
ip address <IP/CIDR> dev ip route add default via dev
ip tuntap add mode tap tap0 ip tuntap add mode tap tap1
ifconfig tap0 up ifconfig tap1 up
ovs-vsctl add-port tap0 ovs-vsctl add-port tap1
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