C²S Consulting logo
C²S Consulting | Primers | Netgear M4300 OpenFlow configuration

Netgear M4300 OpenFlow configuration

The Netgear M4300 documentation is excellent except when it comes to OpenFlow, it is like they want to keep it hidden for some unknown reason. Like anything it is not difficult once you understand how.

Physical connections

  • Connect the Out of Band (OOB) port to the SDN Controllers LAN.
  • Connect test computers to two ports on the switch, say 1/0/1 and 1/0/2.

Configure the hostname

(M4300-28G) # hostname OF-SW

Configure the OOB "serviceport" on the M4300

Note that this is done at the EXEC level and not the "configure" level

(OF-SW) # serviceport protocol none
(OF-SW) # serviceport ip 192.168.1.100 255.255.255.0 192.168.1.1
(OF-SW) # serviceport ipv6 address 2a92:168:1::100/48
(OF-SW) # serviceport ipv6 gateway 2a98:8:8::1

Configure OpenFlow

Note: THe SDN Controller is located on a server 192.168.1.101 on port 6633

(OF-SW) # configure
(OF-SW) (Config) # openflow ip-mode serviceport
(OF-SW) (Config) # openflow controller 192.168.1.101 6633 tcp
(OF-SW) (Config) # openflow variant openflow13
(OF-SW) (Config) # openflow enable
(OF-SW) (Config) # Ctrl-Z

(OF-SW) #show openflow

Administrative Mode............................ Enable
Operational Status............................. Enabled
Disable Reason................................. None
IP Address..................................... 192.168.1.100
IP Mode........................................ ServicePort IP
Static IP Address.............................. 0.0.0.0
OpenFlow Variant............................... OpenFlow 1.3
Passive Mode................................... Disable

Review flows injected by SDN Controller

(OF-SW) # show openflow installed flows

Flow type "1DOT3"

Match criteria:
Flow table  60 : Priority   0
Actions:
Redirect:  CONTROLLER

Hard Timeout  0 : Idle Timeout  0

Status:
Duration  1485 : Packet Count  843 : Byte Count  66941
Idle   520 : installed in hardware  1

Flow type "1DOT3"

Match criteria:
Flow table  60 : Priority 100
Ingress port  1/0/1
Actions:
Egress port  1/0/2

Hard Timeout  0 : Idle Timeout  0

Status:
Duration   537 : Packet Count  318 : Byte Count  24799
Idle  0 : installed in hardware  1

Flow type "1DOT3"

Match criteria:
Flow table  60 : Priority  100
Ingress port  1/0/2
Actions:
Egress port  1/0/1

Hard Timeout  0 : Idle Timeout  0

Status:
Duration  530 : Packet Count  309 : Byte Count  24067
Idle  0 : installed in hardware  1

Test the switch flows

host100 ~$ ~$ fping 192.168.100.200
192.168.100.200 is alive

host200 ~$ ~$ fping 192.168.100.100
192.168.100.100 is alive

Copyright © 2024 C²S Consulting