Zwei Open VSwitch verbinden

Alles rund um Netzwerktechnik und Protokolle
stickybit
Posts: 59
Joined: 2007-08-16 09:39

Zwei Open VSwitch verbinden

Post by stickybit » 2017-06-30 20:24

Hallo,

ich versuche grade zwei Open VSwitches zu verbinden.
Lt. Anleitung sollte es wie unten dargestellt gehen.

http://openvswitch.org/support/dist-doc ... AQ.md.html (Q: How do I connect two bridges?)

Bin mit debian jessie unterwegs.

Beide Switches anlegen

Code: Select all

ovs-vsctl add-br br0
ovs-vsctl add-br br1
...dann miteinander verbinden

Code: Select all

ovs-vsctl add-port br0 patch0 -- set interface patch0 type=patch options:peer=patch1
ovs-vsctl add-port br1 patch1 -- set interface patch1 type=patch options:peer=patch0
IP's vergeben

Code: Select all

ip -4 addr add 10.100.0.10/8 dev br0
ip -4 addr add 10.100.0.11/8 dev br1
Interfaces aktivieren

Code: Select all

ip link set dev br0 up
ip link set dev br1 up
Ergebnis

Code: Select all

ovs-vsctl show
f5c4d438-80c4-46ac-ac07-d57f13d435de
    Bridge "br0"
        Port "patch0"
            Interface "patch0"
                type: patch
                options: {peer="patch1"}
        Port "br0"
            Interface "br0"
                type: internal
    Bridge "br1"
        Port "patch1"
            Interface "patch1"
                type: patch
                options: {peer="patch0"}
        Port "br1"
            Interface "br1"
                type: internal
    ovs_version: "2.3.0"
Test...

Code: Select all

ping -I br0 10.100.0.11
PING 10.100.0.11 (10.100.0.11) from 10.100.0.10 br0: 56(84) bytes of data.
From 10.100.0.10 icmp_seq=1 Destination Host Unreachable
From 10.100.0.10 icmp_seq=2 Destination Host Unreachable
From 10.100.0.10 icmp_seq=3 Destination Host Unreachable
^C
--- 10.100.0.11 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4077ms
any ideas?

Bin für jeden Hinweis dankbar!

Gruß
Andre