Changes between Version 3 and Version 4 of HowTo/CreateOVSTopology


Ignore:
Timestamp:
03/31/14 14:14:19 (10 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/CreateOVSTopology

    v3 v4  
    2424= OVS commands once the topology is up =
    2525
    26 Once your topology is up login to every OVS host in your topology and run the following commands. You will need to run the second command once for every data interface (`eth1, eth2, eth3, `etc). Be careful '''not to add''' the control interface, typical `eth0`.
     26Once your topology is up login to every OVS host in your topology and run the following commands. You will need to run the second command once for every data interface (`eth1, eth2, eth3, `etc). Be careful '''not to add''' the control interface, typically `eth0`.
    2727{{{
    2828  sudo ovs-vsctl add-br br-switch
    2929  sudo ovs-vsctl add-port br-switch ethX
    3030}}}
    31 '''Note''' do not add the ci
     31Check that all the data interfaces have been added:
     32{{{
     33 sudo ovs-vsctl list-ports br-switch
     34}}}
     35
     36Now you are ready to configure the OVS switch and point it to your controller. Run the following commands:
     37{{{
     38sudo ovs-vsctl set-fail-mode br-switch secure
     39sudo ovs-vsctl set-controller br-switch tcp:<controller-ip>:<controller-port>
     40}}}
     41
     42The 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{{{
     46telnet <controller_ip> <controller_port>
     47}}}
     48
     49If you get an output like the following all is good:
     50{{{
     51Trying 2607:f8b0:400c:c03::68...
     52Connected to <controller_ip.
     53Escape character is '^]'.
     54}}}
     55