My Wiki!

H5G SDN Demo

tag: H5G, SDN

1. Setup

Nemo testbed subnet 192.168.124.1 (H5Gbackend).

netgear mgmt port 9 has IP 192.168.124.115 user admin pwd empty.

netgear port 15-16 dhcp for 2 test hosts.

Test hosts connected over switch with static IP

  • controller centos 7
    • user admin pwd a1d3m7
    • Lanport: 192.168.0.113
    • Usb lan port: 192.168.124.119 (H5G backend)
  • compute centos 7
    • user admin pwd a1d3m7
    • Lanport: 192.168.0.114
    • Usb lan port: 192.168.124.118 (H5G backend)

2. SDN switch setup Netgear M3400 8X8F

2.1 First boot

Port 9 is the defaul mgmt port with dhcp. OOB doesn't get dhcp until reconfigure and reboot :(. Seems like only mgmt iface get activated. OOB will be configured first.

2.2 Using CLI

Use usb console cable + minicom.

Enable mode

  enable
  password: admin (must be set in webUI, after each restart? O.o).
 
  

2.3 Setup SDN with OOB

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/15 and 1/0/16.

Configure the hostname

(M4300-28G) # hostname TestOF-SW

Configure the OOB “serviceport” on the M4300

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

(OF-SW) # enable 

(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

3. Resource


Navigation