31 | | '''Note''' do not add the ci |
| 31 | Check that all the data interfaces have been added: |
| 32 | {{{ |
| 33 | sudo ovs-vsctl list-ports br-switch |
| 34 | }}} |
| 35 | |
| 36 | Now you are ready to configure the OVS switch and point it to your controller. Run the following commands: |
| 37 | {{{ |
| 38 | sudo ovs-vsctl set-fail-mode br-switch secure |
| 39 | sudo ovs-vsctl set-controller br-switch tcp:<controller-ip>:<controller-port> |
| 40 | }}} |
| 41 | |
| 42 | The first command ensures that only your controller can make forwarding decisions and modify the forwarding table, while the second points the switch to your controller. Make sure to use the control (public IP) of your controller and that your controller is not behind NAT or a firewall. |
| 43 | |
| 44 | '''Tip:''' To test connectivity to your controller from the OVS host try: |
| 45 | {{{ |
| 46 | telnet <controller_ip> <controller_port> |
| 47 | }}} |
| 48 | |
| 49 | If you get an output like the following all is good: |
| 50 | {{{ |
| 51 | Trying 2607:f8b0:400c:c03::68... |
| 52 | Connected to <controller_ip. |
| 53 | Escape character is '^]'. |
| 54 | }}} |
| 55 | |