• 検索結果がありません。

PowerPoint プレゼンテーション

N/A
N/A
Protected

Academic year: 2021

シェア "PowerPoint プレゼンテーション"

Copied!
22
0
0

読み込み中.... (全文を見る)

全文

(1)

情報ネットワーク学演習II 第4回

講義資料

(2)

2

概要

▌今日の授業の目的

 実機を使った実ネットワーク制御

▌OpenFlow Switch

 PF5240

 Virtual Switch Instance (VSI)

▌設定方法

 初期設定  VSI作成

(3)

目的

▌これまでの授業

 OpenFlowの基本

• packet_in, packet_out, flowmod…  OpenFlowコントローラの作成 • Trema、仮想ネットワーク、トポロジ…

▌今日の授業

 OpenFlowスイッチ (実機)の制御 • スイッチの設定、接続、動作確認 コントローラ

(4)

4

実機 (OpenFlowスイッチ)

(1) 10/100/1000BASE-T イーサネットポート x 48 (2) SFP/SFP+ モジュールスロット x 4 (3) メモリーカードスロット (4) Consoleポート (5) Management 10/100/1000BASE-T ポート (6) RESETスイッチ

▌NEC製 PF5240 (OpenFlow v1.0準拠)

▌設定コマンドは他社製も大体同じ

▌Real Switch Instance (RSI)、Virtual Switch Instance (VSI)機能対応

(5)

Virtual Switch Instance (VSI)

▌1台の物理スイッチに複数のVSIを追加可能

▌VSI単位でOpenFlowスイッチを作成

▌各VSIは実機と同じ性能

0x1

0x2

0x4

Controller

Controller

(6)

6

Virtual Switch Instance (VSI) – cont’d

▌VLANを定義

(7)

Virtual Switch Instance (VSI) – cont’d

▌VSIを作成

▌定義したVLANにVSIを関連付け

VLAN 10

(8)

8

Virtual Switch Instance (VSI) – cont’d

▌定義したVLANにポートを接続

 ポートがVSIにマウント

VLAN 10

(9)

Virtual Switch Instance (VSI) – cont’d

▌定義したVLANにポートを接続

 不連続なポート指定も可能

VLAN 10

VSI 1, dpid 0xa

VLAN 11

(10)

10

Virtual Switch Instance (VSI) – cont’d

▌各VSIが独立したスイッチとして使用可能

VLAN 10

VSI 1, dpid 0xa

VLAN 11

(11)

設定・実行手順概要

▌初期設定

 マネジメントポート設定  Telnet接続許可  etc…

▌コントローラとの接続設定

▌VSIの作成

▌ポートをVSIにマッピング

▌VSI同士の物理接続

Console接続

Telnet接続

(12)

12

Consoleによる接続

▌物理接続

 設定用端末とPF5240のコンソールポートをRS232Cケーブルで接続 • 設定用端末にRS232CポートがなければUSB-RS232Cコンバータを使用 • USB-RS232Cコンバータのドライバは以下からダウンロード可能 • https://www.sanwa.co.jp/support/download/dl_driver_ichiran.asp?code=USB-CVRS9 (Windows) • http://www.aten.com/jp/ja/support-and-downloads/downloads/?q=232A (MAC, 未テスト)

RS232Cケーブル

コンソールポート

設定用端末(PC, コントローラ兼用も可)

(13)

Consoleによる接続 – cont’d

▌設定用端末でRS232Cのクライアントソフトウェアを起動

 Tera Term, puttyなど

▌以下のシリアルポート設定 (cfguide1.pdf, 4.1.2) で接続

 通信速度 : 9600bps  データ長 : 8bit  パリティビット : なし  ストップビット : 1bit  フロー制御 : なし

(14)

14

ログインおよび設定準備

▌ログイン (cfguide1.pdf, 4.3)

 username : operator  password : <none>

▌全ての設定はコンフィグレーションコマンドモードで実行 (cfguide1.pdf,

5.1)

> enable # configure

(15)

初期設定

▌ マネジメントポート設定 (cfguide1.pdf, 7.2.2)

 IP address, netmaskは任意。  後に設定する設定用端末、コントローラが同サブネットに属せばよい。  例: IP address: 192.168.1.1, netmask: 255.255.255.0 (config)# interface mgmt 0

(config-if)# ip address <IP address> <netmask> (config-if)# exit

▌ telnet接続許可 (cfguide1.pdf, 7.2.4)

(config)# line vty 0 2 (config-line)# exit

▌ システムクロックの設定 (cfguide1.pdf, 9.1.2)

(config)# clock timezone JST +9

▌ Spanning-tree無効化 (cfguide1.pdf, 20.2)

(config)# spanning-tree disable

LANケーブル

マネジメントポート

(16)

16

マネジメントポートを介した接続

▌物理接続

 コンソールポート経由の物理接続を外す  設定用端末とPF5240のマネジメントポートをLANケーブルで接続

LANケーブル

マネジメントポート

設定用端末(PC, コントローラ兼用)

(17)

マネジメントポートを介した接続 – cont’d

▌設定用端末設定

 設定用端末のVirtualbox管理画面で以下のように設定

• 設定 -> ネットワーク -> 割り当て: ブリッジアダプター、名前: 接続するインタフェース  設定用端末のVMにてNetwork Managerを停止

$ sudo service network-manager off

 設定用端末のVMにて以下のように設定

• PF5240のマネジメントポートと同じサブネットに属さなければならない

• 例: <IP Address>: 192.168.1.2, <netmask>: 255.255.255.0, <ether port>: eth0 $ sudo ifconfig up <ether port>

(18)

18

ログインおよび設定準備

▌設定用端末のVMよりtelnetでPF5240にアクセス

$ telnet <PF5240 management port IP address>

▌ログイン (cfguide1.pdf, 4.3)

 username : operator  password : <none>

▌全ての設定はコンフィグレーションコマンドモードで実行 (cfguide1.pdf,

5.1)

> enable # configure

(19)

VSI作成

▌VLAN定義 (cfguide1.pdf, 18.2.2)

 VLAN id は 2 ~ 4094 の範囲で設定可能 (config)# vlan <VLAN id>

(config-vlan)# exit

▌インスタンス作成 (cfguide2.pdf, 6.2.6)

 dpidは16進数16桁表記(0 padding)、例: dpid: 0000000000000001  VSI id は 1 ~ 16 の範囲で設定可能

(config)# openflow openflow-id <VSI id> virtual-switch

(config-openflow)# controller controller-name cntl1 1 <IP address of controller> port 6653 (config-openflow)# dpid <dpid>

(config-openflow)# openflow-vlan <VLAN id> (config-openflow)# miss-action controller (config-openflow)# enable

(config-openflow)# exit

VLAN 10

(20)

20

ポートをVSIにマップ

▌単一ポート設定 (cfguide1.pdf, 18.2.3)

(config)# interface gigabitethernet 0/<port>

(config-interface)# switchport mode dot1q-tunnel

(config-interface)# switchport access vlan <VLAN id>

▌複数ポート一括設定 (cfguide1.pdf, 14.2.2)

(config)# interface range gigabitethernet 0/<from_port>-<to_port> (config-interface)# switchport mode dot1q-tunnel

(config-interface)# switchport access vlan <VLAN id>

VLAN 10

(21)

trema起動

(22)

22

その他PF5240コマンド

▌設定の有効化

(config)# save

▌設定の確認 (cfguide1.pdf, 6.4.1)

(config)# show

▌設定の削除 (cfguide1.pdf, 6.4.4)

(config)# no openflow openflow-id <VSI id> virtual-switch (config)# no vlan <VLAN id>

(config-interface)# no switchport mode dot1q-tunnel

(config-interface)# no switchport access vlan <VLAN id>

▌フローのダンプ

> Enable

参照

関連したドキュメント

&lt; &gt;内は、30cm角 角穴1ヶ所に必要量 セメント:2.5(5)&lt;9&gt;kg以上 砂 :4.5(9)&lt;16&gt;l以上 砂利 :6 (12)&lt;21&gt; l

Views of Kazunogawa Hydroelectric Power Station Dams &lt;Upper dam (Kamihikawa dam)&gt;. &lt;Lower dam

Since bits [b4 – b0] of the MOSI register contain the smart card data, programming the CRD_VCC output voltage shall be done by sending a previous MOSI message according to Table 2

&lt;6&gt; MIN2 Read/Write When the ADM1027 is in automatic fan speed control mode, this bit defines whether PWM 2 is off (0% duty cycle) or at PWM 2 minimum duty cycle when

Lout_H DC−DC External Inductor Lout_L DC−DC External Inductor Cout Output Capacitor VCC Card Power Supply Input Icc Current at CRD_VCC Pin Class A 5.0 V Smart Card Class B 3.0 V

• Hybrid Mode Operation: Configuration over Serial Interface and Video over Ethernet.. • AEC−Q101 Qualified and

[r]

When value of &lt;StThr[3:0]&gt; is different from 0 and measured back emf signal is lower than &lt;StThr[3:0]&gt; threshold for 2 succeeding coil current zero−crossings (including