ryu-sdn-controller-mac-os-x-omniswitch
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| ryu-sdn-controller-mac-os-x-omniswitch [2014/08/07 20:16] – benny | ryu-sdn-controller-mac-os-x-omniswitch [2024/06/09 10:29] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 2: | Zeile 2: | ||
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| - | An diesem Artikel wird gearbeitet. | + | An diesem Artikel wird gearbeitet. |
| </ | </ | ||
| ===== Voraussetzungen ===== | ===== Voraussetzungen ===== | ||
| - | * Ich verwende Mac OS X 10.9 | + | * Ich verwende Mac OS X v10.9 |
| * Python v2.7 ist bereits an Bord | * Python v2.7 ist bereits an Bord | ||
| - | * pip (alles notwendige ist [[https:// | + | * '' |
| - | * Ich empfehle dringend den Einsatz von "virtualenv" | + | * Ich empfehle dringend den Einsatz von '' |
| * XCode v5.1.1 (Apple AppStore, wichtig sind die command-line Tools) | * XCode v5.1.1 (Apple AppStore, wichtig sind die command-line Tools) | ||
| - | * XCode Command-Line Tools ("pip" | + | * XCode Command-Line Tools ('' |
| - | * git (um sich die Beispiele vom Ryu-Projekt zu kopieren) | + | * '' |
| ===== Die Installation ===== | ===== Die Installation ===== | ||
| + | Ich empfehle die Installation in folgenden Schritten. | ||
| - | ===== Typische Fehlermeldungen ===== | + | ==== virtualenv erstellen & aktivieren ==== |
| + | < | ||
| + | Macbook: | ||
| + | New python executable in ryu-3.11/ | ||
| + | Installing setuptools, pip...done. | ||
| + | Macbook: | ||
| + | (ryu-3.11)Macbook: | ||
| + | </ | ||
| + | |||
| + | ==== lxml zuerst installieren ==== | ||
| + | <WRAP center round important 60%> | ||
| + | Es ist wichtig das Kommando wie unten beschrieben einzugeben! '' | ||
| + | </ | ||
| + | < | ||
| + | (ryu-3.11)Macbook: | ||
| + | Downloading/ | ||
| + | Downloading lxml-3.3.5.tar.gz (3.5MB): 3.5MB downloaded | ||
| + | Running setup.py (path:/ | ||
| + | (... Jede Menge CLI-Kilometer ausgelassen ...) | ||
| + | Successfully installed lxml | ||
| + | Cleaning up... | ||
| + | </ | ||
| + | |||
| + | ==== Ryu installieren ==== | ||
| + | < | ||
| + | (ryu-3.11)Macbook: | ||
| + | Downloading/ | ||
| + | Downloading ryu-3.12.tar.gz (1.1MB): 1.1MB downloaded | ||
| + | Running setup.py (path:/ | ||
| + | (... Jede Menge CLI-Kilometer ausgelassen ...) | ||
| + | Successfully installed ryu eventlet msgpack-python netaddr oslo.config paramiko routes six webob greenlet argparse pycrypto ecdsa repoze.lru | ||
| + | Cleaning up... | ||
| + | </ | ||
| + | Hält man diese Reihenfolge __nicht__ ein, dann schlägt a) die Installation von '' | ||
| + | <WRAP center round tip 60%> | ||
| + | An dieser Stelle ist es sinnvoll sich die Beispiele von Ryu zu kopieren, siehe: [[ryu-sdn-controller-mac-os-x-omniswitch# | ||
| + | </ | ||
| + | |||
| + | ===== Ryu in Aktion! ===== | ||
| + | < | ||
| + | (ryu-3.11)Macbook: | ||
| + | loading app ../ | ||
| + | loading app ryu.controller.ofp_handler | ||
| + | instantiating app ryu.controller.ofp_handler of OFPHandler | ||
| + | instantiating app ../ | ||
| + | BRICK SimpleSwitch13 | ||
| + | CONSUMES EventOFPPacketIn | ||
| + | CONSUMES EventOFPSwitchFeatures | ||
| + | BRICK ofp_event | ||
| + | PROVIDES EventOFPPacketIn TO {' | ||
| + | PROVIDES EventOFPSwitchFeatures TO {' | ||
| + | CONSUMES EventOFPPortDescStatsReply | ||
| + | CONSUMES EventOFPEchoRequest | ||
| + | CONSUMES EventOFPSwitchFeatures | ||
| + | CONSUMES EventOFPErrorMsg | ||
| + | CONSUMES EventOFPHello | ||
| + | </ | ||
| + | |||
| + | ===== OmniSwitch in Ryu registrieren ===== | ||
| + | <WRAP center round info 60%> | ||
| + | Ich hab Urlaub! Danach werde ich diese Anleitung sicherlich noch erweitern .. :) | ||
| + | </ | ||
| + | |||
| + | ==== OmniSwitch 6900 Konfiguration ==== | ||
| + | < | ||
| + | -> show configuration snapshot openflow | ||
| + | ! OPENFLOW: | ||
| + | openflow logical-switch OFSwitch vlan 2 | ||
| + | openflow logical-switch OFSwitch controller 192.168.10.100: | ||
| + | openflow logical-switch OFSwitch interfaces port 1/1-20 | ||
| + | </ | ||
| + | |||
| + | ==== Ausgaben von Ryu ==== | ||
| + | < | ||
| + | (ryu)Macbook: | ||
| + | loading app ../ | ||
| + | loading app ryu.controller.ofp_handler | ||
| + | instantiating app ryu.controller.ofp_handler of OFPHandler | ||
| + | instantiating app ../ | ||
| + | BRICK SimpleSwitch13 | ||
| + | CONSUMES EventOFPSwitchFeatures | ||
| + | CONSUMES EventOFPPacketIn | ||
| + | BRICK ofp_event | ||
| + | PROVIDES EventOFPSwitchFeatures TO {' | ||
| + | PROVIDES EventOFPPacketIn TO {' | ||
| + | CONSUMES EventOFPSwitchFeatures | ||
| + | CONSUMES EventOFPEchoRequest | ||
| + | CONSUMES EventOFPHello | ||
| + | CONSUMES EventOFPErrorMsg | ||
| + | CONSUMES EventOFPPortDescStatsReply | ||
| + | connected socket:< | ||
| + | hello ev < | ||
| + | move onto config mode | ||
| + | EVENT ofp_event-> | ||
| + | switch features ev version: 0x4 msg_type 0x6 xid 0x84975d27 OFPSwitchFeatures(auxiliary_id=0, | ||
| + | move onto main mode | ||
| + | </ | ||
| + | |||
| + | ===== Typische Fehlermeldungen | ||
| ==== lxml: xmlversion.h file not found ==== | ==== lxml: xmlversion.h file not found ==== | ||
| - | An diesem Fehler ist mein erster Installationsversuch mit "pip install ryu" | + | An diesem Fehler ist mein erster Installationsversuch mit '' |
| Nach einiger Suche habe ich in den Untiefen von " | Nach einiger Suche habe ich in den Untiefen von " | ||
| < | < | ||
| Zeile 44: | Zeile 143: | ||
| * Der Mac ist nun ein paar Sekunden mit kompilieren beschäftigt | * Der Mac ist nun ein paar Sekunden mit kompilieren beschäftigt | ||
| * Danach sollte '' | * Danach sollte '' | ||
| - | * Zumindest bei mir schlug der erste Start aber dann wiederum auch fehl: "greenlet" | + | * Zumindest bei mir schlug der erste Start aber dann wiederum auch fehl: '' |
| ==== pkg_resources.DistributionNotFound: | ==== pkg_resources.DistributionNotFound: | ||
| - | Nach der manuellen Korrektur mit "lxml", scheint das '' | + | Nach der manuellen Korrektur mit '' |
| < | < | ||
| (ryu-3.11)Macbook: | (ryu-3.11)Macbook: | ||
| Zeile 68: | Zeile 167: | ||
| ==== Bei mir fehlen alle Beispiele bzw. das /app Verzeichnis fehlt! ==== | ==== Bei mir fehlen alle Beispiele bzw. das /app Verzeichnis fehlt! ==== | ||
| - | Die Beispiele werden von "pip" | + | Die Beispiele werden von '' |
| **Lösung: | **Lösung: | ||
| Zeile 81: | Zeile 180: | ||
| Checking connectivity... done. | Checking connectivity... done. | ||
| </ | </ | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ### | ||
| - | ### | ||
| - | ### | ||
| - | |||
| - | Ryu Ausgabe: | ||
| - | < | ||
| - | (ryu)DEBERN0L004402: | ||
| - | loading app ../ | ||
| - | loading app ryu.controller.ofp_handler | ||
| - | instantiating app ryu.controller.ofp_handler of OFPHandler | ||
| - | instantiating app ../ | ||
| - | BRICK SimpleSwitch13 | ||
| - | CONSUMES EventOFPSwitchFeatures | ||
| - | CONSUMES EventOFPPacketIn | ||
| - | BRICK ofp_event | ||
| - | PROVIDES EventOFPSwitchFeatures TO {' | ||
| - | PROVIDES EventOFPPacketIn TO {' | ||
| - | CONSUMES EventOFPSwitchFeatures | ||
| - | CONSUMES EventOFPEchoRequest | ||
| - | CONSUMES EventOFPHello | ||
| - | CONSUMES EventOFPErrorMsg | ||
| - | CONSUMES EventOFPPortDescStatsReply | ||
| - | connected socket:< | ||
| - | hello ev < | ||
| - | move onto config mode | ||
| - | EVENT ofp_event-> | ||
| - | switch features ev version: 0x4 msg_type 0x6 xid 0x84975d27 OFPSwitchFeatures(auxiliary_id=0, | ||
| - | move onto main mode | ||
| - | </ | ||
| - | |||
| - | OmniSwitch Konfiguration: | ||
| - | < | ||
| - | -> show configuration snapshot openflow | ||
| - | ! OPENFLOW: | ||
| - | openflow logical-switch vswitch vlan 2 | ||
| - | openflow logical-switch vswitch controller 192.168.10.100: | ||
| - | openflow logical-switch vswitch interfaces port 1/1-20 | ||
| - | </ | ||
| - | |||
ryu-sdn-controller-mac-os-x-omniswitch.1407442590.txt.gz · Zuletzt geändert: (Externe Bearbeitung)
