• G8264 is capable to operate either in Normal Switching mode and
Openflow Switching mode
• Global state is maintained to activate Openflow Switch
RS G8264(config)#openflow ?
Configure Open Flow general configuration buffer Enable buffer support for oflow packets
enable Enable Open Flow ======== Should be ON fdb configure fdb priority commands maxflow Set Open Flow Max. Limit table Add/Modify/Delete Flows
RS G8264(config)#openflow
• VLAN which needs to be part of Openflow Network needs to be enabled and configured with Openflow Identifier.
RS G8264(config-vlan)#?
VLAN configuration mode enable Enable the current VLAN exit Exit from VLAN configuration mode member VLAN member name VLAN name no Negate commands openflow Open Flow VLAN Configuration commands ==== openflow config openflow-id Set the Open Flow ID for VLAN ==
openflow identifier private-vlan Configure private VLAN protocol-vlan Configure protocol VLAN stg Assign VLAN to a Spanning Tree Group vmap Add a vmap
RS G8264(config-vlan)#
RS G8264(config-vlan)#openflow ?
Open Flow VLAN Configuration commands connect Configure controller connection commands controller Configure controller for Open Flow VLAN
Controller config echo-reply Configures retention period for echo-request message echo-request Configures transmission interval for echo-request messages emergency Configure emergency timeout
RS G8264(config-vlan)#openflow
RS G8264(config-vlan)#openflow controller 1 ? address Set controller IP Address port Set controller listening port number
RS G8264(config-vlan)#
RS G8264(config-vlan)#openflow controller 1 address 172.20.254.248 ? data-port Data port Controller is connected to dataports 1-64 mgt-port Management port Controller is connected to mgmt port 65
<cr>
RS G8264(config)#openflow-edgeport ?
LINE Add port(s) delimited by ',' or an interval of ports delimited by '-‘
RS G8264(config)#openflow-mgmtport ?
LINE Add port(s) delimited by ',' or an interval of ports delimited by '-'
RS G8264(config)#show running-config
Current configuration:
!
version "1.0.0.43" switch-type "Blade Network Technologies RackSwitch G8264"
!
openflow enable
!
no system bootp system idle 30
!
!
interface port 2 no learning pvid 2 flood-blocking exit
!
interface port 3 no learning pvid 2 flood-blocking exit
!
interface port 4 no learning pvid 2 flood-blocking exit
!
interface port 5 no learning pvid 2 flood-blocking exit
!
vlan 1 name "ibm" member 1,6-64 no member 2-5
!
vlan 2 enable name "VLAN 2" member 2-5 openflow controller 1 address 172.20.254.248
openflow controller 1 port 6444 openflow-id 9
!
!
spanning-tree stp 1 vlan 1 spanning-tree stp 1 vlan 2 spanning-tree stp 1 vlan 4095 interface port 2 no spanning-tree stp 1 enable exit
!
interface port 3 no spanning-tree stp 1 enable exit
!
interface port 4 no spanning-tree stp 1 enable exit
!
interface port 5 no spanning-tree stp 1 enable exit
!
end
RS G8264(config)#show openflow ?
<1-16> Open Flow ID Shows supported OF features sent to controller statistics Show Open Flow Statistics Shows statistics table Show Open Flow Table Shows basic table and emergency tables
<cr>
RS G8264(config)#show openflow
Protocol Version: 1
Openflow State: enable
Max Flows: 10000
FDB Table Priority: 1000
Open Flow Instance ID: 9
Openflow Edgeports : None
Openflow Managementports : None
Openflow Buffering : Disabled
RS G8264(config)#
RS G8264(config)#show openflow 9
Open Flow Instance ID: 9
DataPath ID: 0x2fccf629d4500
Vlan ID: 2
Max Retries per controller: 4
Echo Request Interval: 30
Echo Reply Timeout: 15
Emergency Timeout: 30
Operational Mode: Emergency
Miss Send Len: 128
Swicth Support Capabiilities:
Flow Statistics : enabled
Table Statistics : enabled
Port Statistics : enabled
Spanning Tree : disabled
Reserved : disabled
Reassemble IP Fragments : disabled
Queue Statistics : disabled
Match IP Addr in ARP Packets: disabled
Swicth Support action:
Output to Switch Port : enabled
Set Vlan ID : enabled
Set Priority : enabled
Strip dot1q Header : disabled
Ethernet Source Addr : enabled
Ethernet Destination Addr: enabled
IP Source Address : disabled
IP Destination Address : disabled
IP ToS : enabled
TCP/UDP Source Port : disabled
TCP/UDP Destination Port : disabled
Output to Queue : disabled
Vendor : disabled
• PortList Status State Config Current Advertised Supported Peer
• 2 d 0x201 0x2 0x40 0x0 0x0 0x0
• 3 d 0x201 0x2 0x40 0x0 0x0 0x0
• 4 d 0x201 0x2 0x40 0x0 0x0 0x0
• 5 d 0x201 0x2 0x40 0x0 0x0 0x0
•
•
• Number of Ports: 4
• Configured Controllers:
IP Address: 172.20.254.248
State: Inactive
• Port: 6444
• Retry Count: 4
• Configured Controller Count 1
• RS G8264(config)#
RS G8264(config)#show open statistics
Dumping Open Flow stats
Flow Count
Basic Flows: 97750 (ACL Based: 750, FDB Based: 97000)
Emergency Flows: 1000 (ACL Based: 750, FDB Based: 250)
Message Count
Hello-Sent: 2 Hello-Recvd: 2
Echo-Request-Sent: 2 Echo-Request-Recvd: 0
Echo-Reply-Sent: 0 Echo-Reply-Recvd: 2
Feature-Request: 0 Feature-Reply: 0
Get-Config-Request: 0 Get-Config-Reply: 0
Set-Config: 0
Packet-In
No-Match: 0
Action: 0
Flow-Removed:
Idle-Timeout: 0
Hard-Timeout: 0
Delete: 0
•
•
•
•
• Port-Status:
Add: 0
Delete: 0
• Modify: 0
• Packet-Out: 0
•
•
• Flow-Mod:
Add: 98750
Modify: 0
Modify-Strict: 0
• Delete: 0
• Delete-Strict: 0
• Port-Mod: 0
•
•
•
• Statistics-Request:
Desc: 0
Flow: 0
Aggregate: 0
Table: 0
•
•
•
•
Port: 0
• Statistics-Reply:
Desc: 0
Flow: 0
Aggregate: 0
• Table: 0
• Port: 0
• Barrier-Request: 0
• Barrier-Reply: 0
•
•
• Error Messages
• Hello Failed Sent:
•
Incompatible: 0
• Hello Failed Recv:
•
Incompatible: 0
• Bad Request:
Bad-Version: 0
Bad-Type: 0
• Bad-Stat: 0
•
•
Buffer-Unknown: 0
• Bad Action:
•
•
•
Bad-Out-Port: 0
• Flow-Mod-Failed:
All-Table-Full: 0
Overlap: 0
Emergency-Timeout: 0
•
•
•
Bad-Command: 0
Unsupported: 0
• Port-Mod-Failed:
Bad-Port: 0
• RS G8264(config)#
BASIC FLOW TABLE
Flow:1 Filter Based, priority:32768, hard-time-out: 0, idle-time-out: 0
QUALIFIERS: ingress-port:15
ACTION: set_nw_tos=28(28), output:4
STATS: packets=0, bytes=0
Flow:2 Filter Based, priority:65535, hard-time-out: 0, idle-time-out: 0
QUALIFIERS: ingress-port:31, vlan-id: 14, vlan-priority: 4, ether-type:0x806 src-mac:00-00-00-00-12-13, dst-mac:00-00-00-00-14-16, arp-type:128 src-ip:1.2.3.4/32
ACTION: set-vlan-id=20, set_nw_tos=32(35), output:2, 3, 4, 5, 6, 7, 8
STATS: packets=0, bytes=0
Flow:3 FDB Based, priority: 1000, hard-time-out: 0
QUALIFIERS: dst-mac:01-00-00-00-00-03, vlan-id: 1
ACTION: out-port: 2, 3, 4, 5, 6, 7, 8, 9, 10
EMERGENCY FLOW TABLE
Flow:1 Filter Based, priority:65535, hard-time-out: 0, idle-time-out: 0
QUALIFIERS: ingress-port:31, vlan-id: 14, vlan-priority: 4, ethertype:
0x806 src-mac:00-00-00-00-12-13, dst-mac:00-00-00-00-14-16, arp-type:128, src-ip:1.2.3.4/32
ACTION: set-vlan-id=20, set_nw_tos=32(35), output:2, 3, 4, 5, 6, 7, 8