[index] AT-SecureEnterpriseSDN Controller リファレンスマニュアル 1.0.0
- 準備 - OpenFlowライセンス対応ファームウェアのインストール - OpenFlowライセンスの適用 - OpenFlowスイッチの設定 - CentreCOM x510シリーズのOpenFlow設定例 - CentreCOM x930シリーズのOpenFlow設定例 - AMF機能とOpenFlow機能の併用 - 関連コマンド - openflow - openflow controller - openflow native vlan - show openflow config - show openflow flows - show openflow rules - show openflow status
この節では、AlliedWare PlusスイッチをAT-SESCによるネットワーク運用・管理に対応させるためのセットアップ手順について記載します。
AlliedWare Plusでは、多岐にわたる機能を提供しています。
AlliedWare Plusが動作するスイッチをOpenFlowスイッチとして正しく動作させるためには、OpenFlowスイッチのIPアドレス、OpenFlowコントローラーのIPアドレスなどの一般的なOpenFlowスイッチに必要とされる最低限の初期設定のほかにも、いくつか必ず設定すべき項目があります。
具体的には、OpenFlowスイッチに属する物理ポート(コントロールプレーンポート、データプレーンポート)の設定、ポートに対するOpenFlow以外の動作設定解除などが必要です。
AT-SESCによる管理の対象となるAlliedWare Plusスイッチを次に記します。
| 準備 |
| OpenFlowライセンス対応ファームウェアのインストール |
awplus# configure terminal ↓ Enter configuration commands, one per line. End with CNTL/Z. awplus(config)# boot system flash:/x510-*.rel ↓ |
awplus# reload ↓ reboot system? (y/n): y ↓ ... |
| OpenFlowライセンスの適用 |
| OpenFlowスイッチの設定 |
| CentreCOM x510シリーズのOpenFlow設定例 |

| 割り当てポート | スイッチポート1.0.1〜1.0.4 |
| ネイティブVLAN | デフォルトVLAN(vlan1) |
| インターフェースIPアドレス | 192.168.1.1/24 |
| 割り当てポート | スイッチポート1.0.5〜1.0.28 |
| ネイティブVLAN | vlan4090 |
| タグVLAN | vlan2〜vlan100 |
| IPアドレス | 192.168.1.10 |
| ポート番号 | 6653 |
Note - OpenFlow機能とVCS機能を併用することはできません。x510シリーズスイッチをOpenFlowスイッチとして設定する場合は、事前にスタック接続を解除し、スイッチを再起動する必要があります。
awplus# configure terminal ↓ awplus(config)# vlan database ↓ awplus(config-vlan)# vlan 2-100 ↓ |
awplus(config-vlan)# vlan 4090 ↓ awplus(config-vlan)# exit ↓ awplus(config)# openflow native vlan 4090 ↓ |
Note - ネイティブVLANに指定する前に、当該のVLANを作成しておく必要があります。
awplus(config)# interface vlan1 ↓ awplus(config-if)# ip address 192.168.1.1/24 ↓ awplus(config-if)# exit ↓ |
awplus(config)# openflow controller tcp 192.168.1.10 6653 ↓ |
awplus(config)# interface port1.0.5-1.0.28 ↓ awplus(config-if)# openflow ↓ awplus(config-if)# exit ↓ |
Note - openflowコマンドを実行した後は、当該のポートインターフェースに対する設定を変更した場合には、スイッチを再起動してください。
awplus(config)# no spanning-tree rstp enable ↓ awplus(config)# no ip igmp snooping ↓ awplus(config)# interface vlan2-100,vlan4090 ↓ awplus(config-if)# no ip igmp snooping ↓ |
| CentreCOM x930シリーズのOpenFlow設定例 |

| 割り当てポート | マネージメントポート(eth0) |
| ネイティブVLAN | 不要(物理的に独立しているため) |
| インターフェースIPアドレス | 192.168.1.1/24 |
| 割り当てポート | スイッチポート1.0.1〜1.0.52 |
| ネイティブVLAN | デフォルトVLAN(vlan1) |
| タグVLAN | vlan2〜vlan100 |
| IPアドレス | 192.168.1.10 |
| ポート番号 | 6653 |
Note - OpenFlow機能とVCS機能を併用することはできません。x930シリーズスイッチをOpenFlowスイッチとして設定する場合は、事前にスタック接続を解除し、スイッチを再起動する必要があります。
awplus# configure terminal ↓ awplus(config)# vlan database ↓ awplus(config-vlan)# vlan 2-100 ↓ awplus(config-vlan)# exit ↓ |
awplus(config)# openflow controller tcp 192.168.1.10 6653 ↓ |
awplus(config)# interface eth0 ↓ awplus(config-if)# ip address 192.168.1.1/24 ↓ awplus(config-if)# exit ↓ |
awplus(config)# interface port1.0.1-1.0.52 ↓ awplus(config-if)# openflow ↓ awplus(config-if)# exit ↓ |
Note - openflowコマンドを実行した後は、当該のポートインターフェースに対する設定を変更した場合には、スイッチを再起動してください。
awplus(config)# no spanning-tree rstp enable ↓ awplus(config)# no ip igmp snooping ↓ awplus(config)# interface vlan2-100 ↓ awplus(config-if)# no ip igmp snooping ↓ |
| AMF機能とOpenFlow機能の併用 |

| 割り当てポート | スイッチポート1.0.1〜1.0.4 |
| ネイティブVLAN | デフォルトVLAN(vlan1) |
| インターフェースIPアドレス | 192.168.1.1/24 |
| ヘアピンポート | スイッチポート1.0.4 |
| 割り当てポート | スイッチポート1.0.5〜1.0.28 |
| ネイティブVLAN | vlan4090 |
| タグVLAN | vlan2〜vlan100 |
| ヘアピンポート | スイッチポート1.0.5 |
| IPアドレス | 192.168.1.10 |
| ポート番号 | 6653 |
| AMFネットワーク名 | atmf1 |
| AMFリンクポート | スイッチポート1.0.1 |
awplus# configure terminal ↓ awplus(config)# atmf network-name atmf1 ↓ awplus(config)# interface port1.0.1 ↓ awplus(config-if)# switchport atmf-link ↓ awplus(config-if)# exit ↓ |
awplus(config)# vlan database ↓ awplus(config-vlan)# vlan 2-100 ↓ |
awplus(config-vlan)# vlan 4090 ↓ awplus(config-vlan)# exit ↓ awplus(config)# openflow native vlan 4090 ↓ |
Note - ネイティブVLANに指定する前に、当該のVLANを作成しておく必要があります。
awplus(config)# interface port1.0.1,port1.0.4 ↓ awplus(config-if)# switchport mode trunk ↓ awplus(config-if)# switchport trunk allowed vlan add 2-100 ↓ awplus(config-if)# exit ↓ |
awplus(config)# interface vlan1 ↓ awplus(config-if)# ip address 192.168.1.1/24 ↓ awplus(config-if)# exit ↓ |
awplus(config)# openflow controller tcp 192.168.1.10 6653 ↓ |
awplus(config)# interface port1.0.5-1.0.28 ↓ awplus(config-if)# openflow ↓ awplus(config-if)# exit ↓ |
Note - openflowコマンドを実行した後は、当該のポートインターフェースに対する設定を変更した場合には、スイッチを再起動してください。
awplus(config)# no spanning-tree rstp enable ↓ awplus(config)# no ip igmp snooping ↓ awplus(config)# interface vlan2-100,vlan4090 ↓ awplus(config-if)# no ip igmp snooping ↓ |
| 関連コマンド |
| openflow |
(config-if)# openflow (config-if)# no openflow
awplus# configure terminal ↓ awplus(config)# interface port1.0.2 ↓ awplus(config-if)# openflow ↓ |
| openflow controller |
(config)# openflow controller PROTOCOL CONTROLLER <1-65535> (config)# no openflow controller PROTOCOL CONTROLLER <1-65535>
PROTOCOL |
:= tcp OpenFlowコントローラーとの間で使用するプロトコルタイプ。tcp固定 |
CONTROLLER |
:= A:B:C:D OpenFlowコントローラーのIPv4アドレス |
<1-65535> |
接続先TCPポート番号 |
awplus# configure terminal ↓ awplus(config)# openflow controller tcp 10.1.1.1 6653 ↓ |
awplus# configure terminal ↓ awplus(config)# no openflow controller tcp 10.1.1.1 6653 ↓ |
| openflow native vlan |
(config)# openflow native vlan <1-4090> (config)# no openflow native vlan
<1-4090> |
データプレーンポートのネイティブVLAN ID。初期設定は1 |
awplus# configure terminal ↓ awplus(config)# openflow native vlan 100 ↓ |
awplus# configure terminal ↓ awplus(config)# no openflow native ↓ |
| show openflow config |
# show openflow config
awplus# show openflow config ↓
fdf075ee-7485-4588-9885-1f0333df89a2
Bridge "br0"
Controller "tcp:192.168.1.2:6653"
is_connected: true
fail_mode: secure
Port "port1.0.4"
Interface "port1.0.4"
type: system
options: {ifindex="5004", mtu="1500", native_vlan="4090"}
Port "port1.0.3"
Interface "port1.0.3"
type: system
options: {ifindex="5003", mtu="1500", native_vlan="4090"}
Port "br0"
Interface "br0"
type: internal
Port "port1.0.1"
Interface "port1.0.1"
type: system
options: {ifindex="5001", mtu="1500", native_vlan="4090"}
Port "port1.0.2"
Interface "port1.0.2"
type: system
options: {ifindex="5002", mtu="1500", native_vlan="4090"}
|
| show openflow flows |
# show openflow flows
awplus# show openflow flows ↓ recirc_id(0),in_port(4),eth(src=00:23:45:67:89:ab,dst=00:de:f0:12:34:56),eth_type(0x0800),ipv4(frag=no), packets:2, bytes:692, used:2.436s, actions:1 recirc_id(0),in_port(1),eth(src=00:23:45:67:89:ab/00:01:00:00:00:00,dst=00:de:f0:12:34:56),eth_type(0x0800),ipv4(frag=no), packets:2, bytes:692, used:2.435s, actions:4 recirc_id(0),in_port(1),eth(src=00:23:45:67:89:ab/00:01:00:00:00:00,dst=00:de:f0:12:34:56),eth_type(0x0806), packets:0, bytes:0, used:never, actions:4 recirc_id(0),in_port(4),eth(src=00:23:45:67:89:ab,dst=00:de:f0:12:34:56),eth_type(0x0806), packets:0, bytes:0, used:never, actions:1 |
| show openflow rules |
# show openflow rules
awplus# show openflow rules ↓ table_id=254, duration=58s, n_packets=0, n_bytes=0, priority=2,recirc_id=0,actions=drop table_id=254, duration=58s, n_packets=1, n_bytes=64, priority=0,reg0=0x1,actions=controller(reason=no_match) table_id=254, duration=58s, n_packets=0, n_bytes=0, priority=0,reg0=0x2,actions=drop table_id=254, duration=58s, n_packets=0, n_bytes=0, priority=0,reg0=0x3,actions=drop |
| show openflow status |
# show openflow status
awplus# show openflow status ↓
OFPT_FEATURES_REPLY (OF1.3) (xid=0x2): dpid:00000023456789ab n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS GROUP_STATS QUEUE_STATS OFPST_PORT_DESC reply (OF1.3) (xid=0x3):
1(port1.0.1): addr:00:23:45:67:89:ab
config: 0
state: 0
current: 1GB-FD
supported: 1GB-FD
speed: 1000 Mbps now, 1000 Mbps max
2(port1.0.2): addr:00:23:45:67:89:ab
config: 0
state: LINK_DOWN
current: AUTO_NEG
supported: 1GB-FD
speed: 0 Mbps now, 1000 Mbps max
3(port1.0.3): addr:00:23:45:67:89:ab
config: 0
state: 0
current: 1GB-FD
supported: 1GB-FD
speed: 1000 Mbps now, 1000 Mbps max
4(port1.0.4): addr:00:23:45:67:89:ab
config: 0
state: LINK_DOWN
current: AUTO_NEG
supported: 1GB-FD
speed: 0 Mbps now, 1000 Mbps max
OFPT_GET_CONFIG_REPLY (OF1.3) (xid=0x5): frags=normal miss_send_len=0
|
(C) 2015 アライドテレシスホールディングス株式会社
PN: 613-002214 Rev.C