Changes between Version 12 and Version 13 of HowTo/ConfigureOVSStaticRouteMirroringNoController
- Timestamp:
- 06/21/17 15:55:21 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowTo/ConfigureOVSStaticRouteMirroringNoController
v12 v13 21 21 Later in the howto we will discuss how to setup the OVS switch to allow 22 22 for host3 to observe the traffic between host1 and host2 using OpenFlow table rules. An alternative method using the Mirror feature of the OVS switch is also presented if only mirroring is required. 23 Th is could be used for network monitoring setups.23 These setups could be used for network monitoring. 24 24 25 25 == Setting up the static IP traffic == … … 66 66 67 67 Initially the OVS switch is setup to act like an L2 learning switch. We want to disable this behavior 68 except for specific IP addresses 68 except for specific IP addresses. 69 70 From ovs 69 71 {{{ 70 72 sudo ovs-ofctl del-flows br0 … … 89 91 90 92 First we will add rules to allow the OVS switch to behave like a normal switch for IP traffic between 91 the two hosts 93 the two hosts. 94 95 From ovs 92 96 {{{ 93 97 sudo ovs-ofctl add-flow br0 priority=500,ip,nw_src=10.10.1.1,nw_dst=10.10.1.2,actions=normal … … 95 99 }}} 96 100 ARP traffic will also need to be able to flow in order for the routes to each host to be learned. 101 102 From ovs 97 103 {{{ 98 104 sudo ovs-ofctl add-flow br0 "priority=500,arp,nw_dst=10.10.1.1 actions=normal" … … 122 128 123 129 For example if we want ports 1 and 2 to be monitored by port 3, the following flows need to be added. 130 131 From ovs 124 132 {{{ 125 133 ovs-ofctl add-flow br0 in_port=1,actions=normal,output:3 … … 131 139 132 140 It is possible to setup mirroring without ever adding any flows to the OpenFlow database. It can be done independently of setting up the static IP flows. This is done with a single command to ovs-vsctl. 141 142 From ovs 133 143 {{{ 134 144 ovs-vsctl -- set Bridge br0 mirrors=@m \