{"id":161289,"date":"2012-12-04T12:03:03","date_gmt":"2012-12-04T08:03:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=161289"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=161289","title":{"rendered":"<span class=\"post_title\">\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 Openflow \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c NOX<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u0440\u0438\u0432\u0435\u0442, \u0445\u0430\u0431\u0440.<\/p>\n<p>  \u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0430 OpenFlow \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 NOX \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u043e\u043a\u0430 \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0438\u043c \u0431\u0435\u0437 \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0438 \u0442\u0430\u043d\u0446\u0435\u0432.<\/p>\n<p>  \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u0431 OpenFlow, \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435, \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0438 \u0431\u044b\u043b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d NOX, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0432 \u044d\u0442\u043e\u0439 <a href=\"http:\/\/habrahabr.ru\/post\/149126\/\">habrahabr.ru\/post\/149126\/<\/a> \u0438\u043b\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/148745\/\">habrahabr.ru\/post\/148745\/<\/a> \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u044f\u0445.<\/p>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u0427\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043d\u0438\u0436\u0435? \u0414\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 Linux, \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Ubuntu, Virtualbox \u0438 \u043e\u0431\u0440\u0430\u0437 mininet, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u043f\u043e <a href=\"http:\/\/www.openflow.org\/downloads\/OpenFlowTutorial-101311.zip\">\u0430\u0434\u0440\u0435\u0441\u0443<\/a><\/p>\n<p>  Mininet \u2014 \u044d\u0442\u043e \u043e\u0431\u0440\u0430\u0437 Ubuntu \u0441 \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c, \u0441\u043d\u0438\u0444\u0444\u0435\u0440\u043e\u043c \u0438 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c \u0441\u0435\u0442\u0435\u0439. \u041e\u043d \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0430\u043c \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u0421\u0442\u0430\u0432\u0438\u043c \u0435\u0433\u043e \u043d\u0430 Virtualbox. <\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c ssh \u0441\u0435\u0441\u0441\u0438\u0438. <br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 VirtualBox \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0441 mininet, \u0434\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u043c \u0432 <b>Settings Tab \u2014 Network \u2014 Adapter 2<\/b> \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c <b>Enable adapter<\/b>. \u0421\u0442\u0430\u0432\u0438\u043c \u0433\u0430\u043b\u043a\u0443 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 <b>host-only network<\/b>. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/97d\/58f\/09f\/97d58f09fe4be0ac8bcf88897db02c53.png\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b\u0438 \u0434\u043e \u044d\u0442\u043e\u0433\u043e host-only network \u0442\u043e \u043f\u0440\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u043c\u0435\u043d\u044e <b>File \u2014 Preferences \u2014 Network<\/b> \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 <b>Add host-only network<\/b>.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/7c0\/92c\/a30\/7c092ca30562ac5cf400adb0f7169803.png\"\/><\/p>\n<p>  \u0412\u0440\u0435\u043c\u044f \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443. \u041b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u2014 openflow<br \/>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 IP \u0430\u0434\u0440\u0435\u0441\u0430. <br \/>  \u041d\u0430\u0431\u0435\u0440\u0435\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438:  <\/p>\n<pre><code class=\"bash\">ifconfig -a <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u043d\u0435\u0442, \u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435   <\/p>\n<pre><code class=\"bash\">sudo dhclient ethN <\/code><\/pre>\n<p>  \u0433\u0434\u0435 N \u2014 \u043d\u043e\u043c\u0435\u0440 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.<\/p>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 mininet \u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0443 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432. <\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u0435\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0430\u0441\u044c \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 Ubuntu 11.04, 11.10, 12.04. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0430 <b>\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e<\/b> \u041e\u0421.<\/p>\n<p>  1. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043b\u044f NOX \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439 Git  <\/p>\n<pre><code class=\"bash\">cd \/etc\/apt\/sources.list.d sudo wget http:\/\/openflowswitch.org\/downloads\/debian\/nox.list sudo apt-get update sudo apt-get install nox-dependencies git libboost-thread-dev <\/code><\/pre>\n<p>  2. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 NOX  <\/p>\n<pre><code class=\"bash\">git clone http:\/\/github.com\/noxrepo\/nox <\/code><\/pre>\n<p>  3. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0442\u0440\u0435\u0442\u0438\u0439 \u0448\u0430\u0433, \u0441\u0430\u043c\u044b\u0439 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 tbb \u0438 boost \u0432\u0435\u0440\u0441\u0438\u0438 1.48. \u041f\u043e\u0435\u0445\u0430\u043b\u0438  <\/p>\n<pre><code class=\"bash\">cd sudo apt-get install libtbb-dev wget http:\/\/citylan.dl.sourceforge.net\/project\/boost\/boost\/1.48.0\/boost_1_48_0.tar.bz2 tar --bzip2 -xf \/&lt;path_to_boost&gt;\/boost_1_48_0.tar.bz2 cd \/&lt;path to boost&gt;\/boost_1_48_0 .\/bootstrap.sh --prefix=\/usr sudo .\/b2 install <\/code><\/pre>\n<p>  3a. \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 Ubuntu 12.04, \u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0448\u0430\u0433. \u0415\u0441\u043b\u0438 \u0436\u0435 \u043d\u0435\u0442, \u0442\u043e \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c autoconf 2.68   <\/p>\n<pre><code class=\"bash\">cd wget http:\/\/ftp.gnu.org\/gnu\/autoconf\/autoconf-2.68.tar.bz2 tar --bzip2 -xf autoconf-2.68.tar.bz2 cd autoconf-2.68\/ .\/configure make sudo make install <\/code><\/pre>\n<p>  4. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c NOX. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b   <\/p>\n<pre><code class=\"bash\">cd ~\/&lt;nox_sources_dir&gt;\/nox .\/boot.sh mkdir build && cd build ..\/configure make         <\/code><\/pre>\n<p>  \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c NOX, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 sudo make install. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0430\u043c \u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 NOX \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0443\u0442\u044c \u0434\u043e nox_core.<\/p>\n<p>  5. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0432\u0441\u0435 \u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.  <\/p>\n<pre><code class=\"bash\">cd ~\/&lt;nox_sources_dir&gt;\/nox\/build\/src .\/nox_core -v -i ptcp&lt;:&lt;IP address&gt;&gt;:&lt;port&gt; &quot;&lt;app_name&gt;&quot; <\/code><\/pre>\n<p>  IP address \u2014 IP \u0430\u0434\u0440\u0435\u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 NOX \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043b\u0443\u0448\u0430\u0442\u044c.<br \/>  port \u2014 \u041f\u043e\u0440\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043b\u0443\u0448\u0430\u0442\u044c NOX. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044d\u0442\u043e 6633.<br \/>  app_name \u2014 \u0418\u043c\u044f \u0432\u0430\u0448\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 learning switch, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 ~\/&lt;nox_sources_dir&gt;\/nox\/build\/src. <\/p>\n<p>  \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b  <\/p>\n<pre><code class=\"bash\">.\/nox_core -v -i ptcp:192.168.56.1:6633 &quot;switch&quot; <\/code><\/pre>\n<p>  192.168.56.1 IP \u0430\u0434\u0440\u0435\u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b<br \/>  switch \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f L2 learning switch \u0432 NOX<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c Wireshark \u0441 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u043c openflow dissector \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443. \u0421\u0440\u0430\u0437\u0443 \u0445\u043e\u0447\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u043b\u0430\u0433\u0438\u043d \u0441\u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 Wireshark.<br \/>  \u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0435\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0435\u043d\u0430.<\/p>\n<p>  1. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043b\u044f Wireshark  <\/p>\n<pre><code class=\"bash\">sudo apt-get install libgtk2.0-dev byacc libpcap-dev <\/code><\/pre>\n<p>  2. \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c Wireshark 1.4.15  <\/p>\n<pre><code class=\"bash\">wget http:\/\/www.wireshark.org\/download\/src\/wireshark-1.4.15.tar.bz2 tar --bzip2 -xf wireshark-1.4.15.tar.bz2 cd wireshark-1.4.15\/ .\/configure  make sudo make install <\/code><\/pre>\n<p>  3. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c Wireshark dissector \u043f\u043b\u0430\u0433\u0438\u043d  <\/p>\n<pre><code class=\"bash\">cd ~\/ git clone http:\/\/github.com\/noxrepo\/openflow cd openflow\/utilities\/wireshark_dissectors\/openflow\/ make sudo cp packet-openflow.so \/usr\/lib\/wireshark\/libwireshark0\/plugins\/ <\/code><\/pre>\n<p>  4. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0432\u0438\u0434\u0438\u0442 \u043b\u0438 Wireshark \u043f\u043b\u0430\u0433\u0438\u043d. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0435\u0433\u043e, \u0434\u0430\u043b\u0435\u0435 <b>Help \u2014 About \u2014 Plugins<\/b> \u0438 \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a. \u0412 \u0441\u043f\u0438\u0441\u043a\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c packet-openflow.so<\/p>\n<p>  \u0423\u0440\u0430, \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430!<\/p>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u043a\u0430\u043a\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0438 \u0443\u0437\u043d\u0430\u0442\u044c \u0435\u0433\u043e IP \u0430\u0434\u0440\u0435\u0441. \u041d\u0430\u0431\u0435\u0440\u0435\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 ifconfig. \u0423 \u043c\u0435\u043d\u044f \u044d\u0442\u043e 192.168.56.1<br \/>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c NOX \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0441\u043b\u0443\u0448\u0430\u043b \u044d\u0442\u043e\u0442 IP.  <\/p>\n<pre><code class=\"bash\">~\/&lt;nox_sources_dir&gt;\/nox\/build\/src\/nox_core -v -i 192.168.56.1:6633 \u201cswitch\u201d <\/code><\/pre>\n<p>  \u0412 \u0434\u0440\u0443\u0433\u043e\u043c \u043e\u043a\u043d\u0435 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c Wireshark \u0438 \u043f\u0440\u0438\u0446\u0435\u043f\u0438\u043c \u0435\u0433\u043e \u0442\u043e\u0436\u0435 \u043a 192.168.56.1, \u0430 \u0432 \u043f\u043e\u043b\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u0432\u0432\u0435\u0434\u0435\u043c \u043c\u0435\u0442\u043a\u0443 OpenFlow \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u2014 of.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c mininet. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0442\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u044e, \u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e ~\/mininet\/custom\/ \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435. Mininet \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 mytopo.py, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043c.<br \/>  \u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 mininet \u0432\u0432\u0435\u0434\u0438\u0442\u0435  <\/p>\n<pre><code class=\"bash\">sudo mn --custom ~\/mininet\/custom\/mytopo.py --topo=mytopo --mac --controller remote --ip=192.168.56.1 <\/code><\/pre>\n<p>  &#8212;topo \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f \u0442\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u044f.<br \/>  &#8212;controller \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u0438\u043f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u2014 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439.<br \/>  &#8212;ip \u0430\u0434\u0440\u0435\u0441 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430<\/p>\n<p>  \u0412 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0435\u043c\u0441\u044f mininet shell \u0432\u0432\u0435\u0434\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 pingall<\/p>\n<p>  \u0412\u0441\u0435! NOX \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u0448\u0435\u0432\u0435\u043b\u0438\u0442\u044c\u0441\u044f, \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0435\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0430 Wireshark \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0430\u0447\u0430\u0442\u044c \u043b\u043e\u0432\u0438\u0442\u044c OpenFlow \u043f\u0430\u043a\u0435\u0442\u044b.<\/p>\n<p>  \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438:<br \/>  <a href=\"http:\/\/www.openflow.org\/wk\/index.php\/OpenFlow_Tutorial\">www.openflow.org\/wk\/index.php\/OpenFlow_Tutorial<\/a><br \/>  <a href=\"https:\/\/github.com\/noxrepo\">github.com\/noxrepo<\/a><br \/>  <a href=\"https:\/\/github.com\/noxrepo\/nox-classic\/wiki\">github.com\/noxrepo\/nox-classic\/wiki<\/a><br \/>  <a href=\"http:\/\/www.openflow.org\/wk\/index.php\/OpenFlow_Wireshark_Dissector\">www.openflow.org\/wk\/index.php\/OpenFlow_Wireshark_Dissector<\/a>   \t\t\t \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/161289\/\"> http:\/\/habrahabr.ru\/post\/161289\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u0440\u0438\u0432\u0435\u0442, \u0445\u0430\u0431\u0440.<\/p>\n<p>  \u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0430 OpenFlow \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 NOX \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u043e\u043a\u0430 \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0438\u043c \u0431\u0435\u0437 \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0438 \u0442\u0430\u043d\u0446\u0435\u0432.<\/p>\n<p>  \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u0431 OpenFlow, \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435, \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0438 \u0431\u044b\u043b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d NOX, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0432 \u044d\u0442\u043e\u0439 <a href=\"http:\/\/habrahabr.ru\/post\/149126\/\">habrahabr.ru\/post\/149126\/<\/a> \u0438\u043b\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/148745\/\">habrahabr.ru\/post\/148745\/<\/a> \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u044f\u0445.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-161289","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/161289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161289"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/161289\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}