Open V Switch
Introduction to Open vSwitch (OVS) (заработало!)
https://www.youtube.com/watch?v=rYW7kQRyUvA
Команды которые выполнялись:
ovs-vsctl add-br mybridge
ifconfig mybridge up
ovs-vsctl add-port mybridge eth1
ovs-vsctl show
ifconfig eth1 0
dhclient mybridge
ifconfig
==========================
ip tuntap add mode tap vport1
ip tuntap add mode tap vport2
ifconfing vport1 up
ifconfing vport2 up
ovs-vsctl add-port mybridge vport1 -- add-port mybridge vport2
ovs-vsctl show
===================================
ovs-appctl fdb/show mybridge
ovs-ofctl show mybridge
===================================
ovs-ofctl dump-flows mybridge
===================================
ovs-vsctl list Bridge
ovs-vsctl list Port | more
ovs-vsctl list Interface | more
===================================
===================================
Open vSwitch как ядро виртуальной сети (нужно разобраться с транковыми портами. без них работает, с ними нет.)
http://habrahabr.ru/post/242741/
# apt-get install -y openvswitch-switch
vi /tmp/network.sh
ovs-vsctl add-br ovs-br0
ovs-vsctl add-port ovs-br0 eth1
ifconfig eth1 0
ifconfig ovs-br0 192.168.1.11/24 up
ip r add default via 192.168.1.1
chmod +x /tmp/network.sh
/tmp/network.sh
====================================
# ovs-vsctl show
Все работает.
Настраиваем, чтобы после перезагрузки все поднилось.
=================================
vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet manual
# The primary network interface
auto ovs-br0
iface ovs-br0 inet static
address 192.168.1.11
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.1
dns-search marley.local
reboot.
http://goldmann.pl/blog/2014/01/21/connecting-docker-containers-on-multiple-hosts/
# yum install -y \
gcc \
make \
python-devel \
openssl-devel \
kernel-devel \
graphviz \
kernel-debug-devel \
autoconf \
automake \
rpm-build \
redhat-rpm-config \
libtool
# yum install -y git
=====================
Autoconf version 2.64 or higher is required
# rpm -q autoconf
autoconf-2.63-5.1.el6.noarch
http://www.gnu.org/software/autoconf/
# mkdir -p /opt/autoconf/2.69