-
Notifications
You must be signed in to change notification settings - Fork 2
HP OpenNAC
-
Configure HP switch to use RESTCONF API (it is a prerequisite for OpenNAC API)
-
Make minimum set of physical connections on HP switch
- Connect at least one endpoint/host to the OpenFlow controlled ports.
- Connect a WAN connection (allowing endpoints to connect to devices outside their LAN) to one of the OpenFlow controlled ports.
- Connect an OpenFlow control connection to the port configured for OpenFlow control.
-
Now you need to configure OpenNAC parameters on the SDN Developer Lab
-
On SDN Developer Lab, you need to add the switch on the Devices table (if you already added the device then you do not need to add it again, just double check the values and then 'Reconnect Device').
- On the Devices table click Add Device
- Enter the values about your device from following table (see below table on how to obtain these values), when complete click save.
Add Device Field Value To Enter Friendly Name Enter a string that will mean something to you. (e.g. MyHPSwitch) Local IPv4 Address LOCAL-IP Local MAC LOCAL-MAC Gateway IP Address GW-IP Gateway Mask GW-MASK Gateway MAC GW-MAC PORTS PORTS WAN PORT WAN-PORT Datapath Id DPID
-
-
The port number to which you connected the WAN is the WAN-PORT
-
The port number(s) to which you connected the endpoints (hosts) are the PORTS
-
On console or ssh to switch, obtain the LOCAL-IP and GW-IP
show ip
- NOTE: On the DEFAULT_VLAN line, obtain the IP Address, this is the LOCAL-IP.
- NOTE: At the top of the information, obtain the IP address for the Default Gateway, this is the GW-IP
-
The GW-MASK is the mask defines those bits of the IP Address that are within the LAN and which are outside of it (e.g. 255.255.255.0 indicates that the first three groupings in IP are the same for all devices within the LAN)
-
On console or ssh to switch, obtain the LOCAL-MAC
walkmib ifPhysAddress
- NOTE: For the interface (port) number to which the switch is connected to WAN (router) collect the MAC address, this is the LOCAL-MAC
-
On console or ssh to switch, obtain the GW-MAC
show mac-address
- NOTE: For the interface (port) number to which the switch is connected to WAN (router) collect the first MAC address, this is the GW-MAC
-
On console for ssh to switch, obtain the DPID
show openflow instance sdnlab
- NOTE: We use the name 'sdnlab' for the instance, if you did not use this when you created the openflow instance then you need to replace 'sdnlab' with the name you used.
- NOTE: Collect the Datapath ID (you can ignore leading zeros), this is the DPID.