Laszlo Fekete <[email protected]> writes:

> Hello!
>
>  
>
> I tried it but doesn't seem working:
> (Want to see eth20 and eth21 traffic on eth19, also want see on eth20 only 
> eth20 traffic and on eth21
> only eth21 traffic.)
>
>  
>
> # ovs-vsctl show
>
> 382a576e-fa41-46c3-9b70-079d8f2474f0
>
> Bridge br-sbc
>
> Port br-sbc
>
> Interface br-sbc
>
> type: internal
>
> Port "eth19"
>
> Interface "eth19"
>
> Bridge "br-port20"
>
> Port "br-port20"
>
> Interface "br-port20"
>
> type: internal
>
> Port "eth20"
>
> Interface "eth20"
>
> Bridge "br-port21"
>
> Port "eth21"
>
> Interface "eth21"
>
> Port "br-port21"
>
> Interface "br-port21"
>
> type: internal
>
> ovs_version: "2.3.0"
>
>  
>
> put them up and tried it with promisc:
>
> # ip link show dev eth19
>
> 20: eth19: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq master 
> ovs-system
> state UP mode DEFAULT group default qlen 1000
>
> link/ether f4:ce:46:a9:6d:b7 brd ff:ff:ff:ff:ff:ff
>
> # ip link show dev eth20
>
> 25: eth20: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq master 
> ovs-system
> state UP mode DEFAULT group default qlen 1000
>
> link/ether 90:e2:ba:c4:97:48 brd ff:ff:ff:ff:ff:ff
>
> # ip link show dev eth21
>
> 26: eth21: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq master 
> ovs-system
> state UP mode DEFAULT group default qlen 1000
>
> link/ether 90:e2:ba:c4:97:49 brd ff:ff:ff:ff:ff:ff
>
> # ip link show dev br-sbc
>
> 36: br-sbc: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue 
> state
> UNKNOWN mode DEFAULT group default 
>
> link/ether f4:ce:46:a9:6d:b7 brd ff:ff:ff:ff:ff:ff
>
> # ip link show dev br-port20
>
> 37: br-port20: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc 
> noqueue state
> UNKNOWN mode DEFAULT group default 
>
> link/ether 90:e2:ba:c4:97:48 brd ff:ff:ff:ff:ff:ff
>
> # ip link show dev br-port21
>
> 38: br-port21: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc 
> noqueue state
> UNKNOWN mode DEFAULT group default 
>
> link/ether 90:e2:ba:c4:97:49 brd ff:ff:ff:ff:ff:ff
>
>  
>
> # ovs-vsctl list bridge br-sbc
>
> _uuid : 7c5f1c56-19b1-4ce6-be89-db3b00e9217b
>
> controller : []
>
> datapath_id : "0000f4ce46a96db7"
>
> datapath_type : ""
>
> external_ids : {}
>
> fail_mode : []
>
> flood_vlans : []
>
> flow_tables : {}
>
> ipfix : []
>
> mirrors : [55e1630e-bb6d-46a1-bd0d-4956b40e3564]
>
> name : br-sbc
>
> netflow : []
>
> other_config : {}
>
> ports : [6e249d76-3125-44d0-ae4d-2753dba3cd86, 
> 7b45da42-43ef-43ad-ba4b-cd94ea14bb78]
>
> protocols : []
>
> sflow : []
>
> status : {}
>
> stp_enable : false
>
>  
>
>  
>
> # ovs-vsctl list mirror
>
> _uuid : 55e1630e-bb6d-46a1-bd0d-4956b40e3564
>
> external_ids : {}
>
> name : sbcmirror
>
> output_port : []

NOTE: there's no output port configured here.  Please configure a valid
output port.

You can use ovs-tcpdump to see how it's been done in the past.

> output_vlan : []
>
> select_all : false
>
> select_dst_port : [64de154c-c03a-4fd5-b4d1-57fc0d8087f3,
> 9ecf68de-97ce-4808-b42a-2cdd7a3a69e1]
>
> select_src_port : [64de154c-c03a-4fd5-b4d1-57fc0d8087f3,
> 9ecf68de-97ce-4808-b42a-2cdd7a3a69e1]
>
> select_vlan : []
>
> statistics : {}
>
>  
>
>  
>
> # ovs-vsctl list port
>
> _uuid : 64de154c-c03a-4fd5-b4d1-57fc0d8087f3
>
> bond_downdelay : 0
>
> bond_fake_iface : false
>
> bond_mode : []
>
> bond_updelay : 0
>
> external_ids : {}
>
> fake_bridge : false
>
> interfaces : [21d9bd77-8848-4fcb-ae6f-2ee3b2714249]
>
> lacp : []
>
> mac : []
>
> name : "eth21"
>
> other_config : {}
>
> qos : []
>
> statistics : {}
>
> status : {}
>
> tag : []
>
> trunks : []
>
> vlan_mode : []
>
>  
>
> _uuid : 86700635-2f31-4890-8c38-8d86995975b3
>
> bond_downdelay : 0
>
> bond_fake_iface : false
>
> bond_mode : []
>
> bond_updelay : 0
>
> external_ids : {}
>
> fake_bridge : false
>
> interfaces : [c5ec8104-b1bc-4812-aee5-140e83007391]
>
> lacp : []
>
> mac : []
>
> name : "br-port20"
>
> other_config : {}
>
> qos : []
>
> statistics : {}
>
> status : {}
>
> tag : []
>
> trunks : []
>
> vlan_mode : []
>
>  
>
> _uuid : 9ecf68de-97ce-4808-b42a-2cdd7a3a69e1
>
> bond_downdelay : 0
>
> bond_fake_iface : false
>
> bond_mode : []
>
> bond_updelay : 0
>
> external_ids : {}
>
> fake_bridge : false
>
> interfaces : [a05b2b0d-9de0-4a3d-9dc7-afefe55e0008]
>
> lacp : []
>
> mac : []
>
> name : "eth20"
>
> other_config : {}
>
> qos : []
>
> statistics : {}
>
> status : {}
>
> tag : []
>
> trunks : []
>
> vlan_mode : []
>
>  
>
> _uuid : 6e249d76-3125-44d0-ae4d-2753dba3cd86
>
> bond_downdelay : 0
>
> bond_fake_iface : false
>
> bond_mode : []
>
> bond_updelay : 0
>
> external_ids : {}
>
> fake_bridge : false
>
> interfaces : [377ad193-1340-4d34-965b-cb54bd73e59a]
>
> lacp : []
>
> mac : []
>
> name : br-sbc
>
> other_config : {}
>
> qos : []
>
> statistics : {}
>
> status : {}
>
> tag : []
>
> trunks : []
>
> vlan_mode : []
>
>  
>
> _uuid : 7b45da42-43ef-43ad-ba4b-cd94ea14bb78
>
> bond_downdelay : 0
>
> bond_fake_iface : false
>
> bond_mode : []
>
> bond_updelay : 0
>
> external_ids : {}
>
> fake_bridge : false
>
> interfaces : [3cbb48f1-e641-49d2-aeac-0ec67fddd282]
>
> lacp : []
>
> mac : []
>
> name : "eth19"
>
> other_config : {}
>
> qos : []
>
> statistics : {}
>
> status : {}
>
> tag : []
>
> trunks : []
>
> vlan_mode : []
>
>  
>
> _uuid : d9ee2153-5a0e-4aef-ab80-c5233a3459e6
>
> bond_downdelay : 0
>
> bond_fake_iface : false
>
> bond_mode : []
>
> bond_updelay : 0
>
> external_ids : {}
>
> fake_bridge : false
>
> interfaces : [e44b48e9-795c-4d55-9d82-340a9f5ea8f3]
>
> lacp : []
>
> mac : []
>
> name : "br-port21"
>
> other_config : {}
>
> qos : []
>
> statistics : {}
>
> status : {}
>
> tag : []
>
> trunks : []
>
> vlan_mode : []
>
>  
>
>  
>
>  
>
> What's wrong with the config or does it possible?
>
>  
>
> Thanks, Laszlo
>
>  
>
> On 2017. February 22. 17:20:23 Aaron Conole wrote:
>
>> Laszlo Fekete <[email protected]> writes:
>
>> > On 2017. February 20. 15:43:05 Aaron Conole wrote:
>
>> >> Laszlo Fekete <[email protected]> writes:
>
>> >> > Hello!
>
>> >> > 
>
>> >> > 
>
>> >> > 
>
>> >> > 
>
>> >> > 
>
>> >> > 
>
>> >> > 
>
>> >> > I have 8 separate ports where have some incomming traffic (not related
>
>> >> > to
>
>> >> > 
>
>> >> > that interface so using promisc) and want to mirror these traffics to 1
>
>> >> > 
>
>> >> > port. But not bridge together the 8 incomming ports, is it possible to
>
>> >> > 
>
>> >> > create like this with ovs?
>
>> >> 
>
>> >> It should be possible to construct by setting the select_dst_port and
>
>> >> 
>
>> >> select_src_port elements of the mirror to the set of Port entries you
>
>> >> 
>
>> >> wish to monitor.
>
>> > 
>
>> > Could you please give an example config?
>
>> 
>
>> Completely untested (and may not be what you're asking) :
>
>> 
>
>> ovs-vsctl -- set Bridge br0 mirrors=@m \
>
>> -- --id=@eth0 get Port eth0 \
>
>> -- --id=@eth1 get Port eth1 \
>
>> -- --id=@eth2 get Port eth2 \
>
>> -- --id=@eth3 get Port eth3 \
>
>> -- --id=@m create Mirror name=mymirror \
>
>> select-dst-port=@eth0,@eth1,@eth2 \
>
>> select-src-port=@eth0,@eth1,@eth2 \
>
>> output-port=@eth3
>
>> 
>
>> > For example there is eth1 and eth2 in promisc mode where there is
>
>> > incomming traffic and mirror those ports all traffic to eth3. But want to
>
>> > see both traffic on eth3 only, not mix eth1 traffic with eth2 on eth1 or
>
>> > eth2.
>
>> > 
>
>> > 
>
>> > 
>
>> > Thanks, Laszlo
>
>> > 
>
>> >> > Tried put all 8 ports in a bridge and set monitor to a 9th port but in
>
>> >> > 
>
>> >> > this case on 1st port see other 7 ports traffic too, i want to see
>
>> >> > 
>
>> >> > separately the 8 ports traffic and 1 aggregated traffic for all 8
>
>> >> > ports,
>
>> >> > 
>
>> >> > it is possible?
>
>> >> 
>
>> >> See above
>
>> >> 
>
>> >> > Regards, Laszlo
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to