Hello,
I am trying to do port mirroring b/w two Virtual Machine using Openvswitch.
I configured port mirroring, and able to see the packets coming on
corresponding ovs-port. But I am unable to check the same on the VM's
corresponding interface.
Please help me, what needs to be configured ?
| Test-Server-1
Service VM --- mirrored port ----- |
| Test-Server-2
Thanks,
Shyam.
------------------------------ detailed log
-------------------------------------
[root@nexvu-apm-appliance ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr *FA:16:3E:11:0F:71 *
inet addr:172.16.100.4 Bcast:172.16.100.255 Mask:255.255.255.0
Test-Server$ ifconfig -a
eth1 Link encap:Ethernet HWaddr *FA:16:3E:11:B2:C2 *
inet addr:172.16.100.6 Bcast:172.16.100.255 Mask:255.255.255.0
root@compute-157:~# ovs-vsctl --db tcp:127.0.0.1:6622 get interface
*qvo67f46914-b5* external_ids
{attached-mac="*fa:16:3e:11:b2:c2*",
iface-id="67f46914-b59a-468a-ad3d-5a8a68954e52", iface-status=active,
vm-uuid="062ca739-b250-4285-8550-8ce28a814556"}
root@compute-157:~#
root@compute-157:~# ovs-vsctl --db tcp:127.0.0.1:6622 get interface
*qvo5271d2db-df* external_ids
{attached-mac=*"fa:16:3e:11:0f:71*",
iface-id="5271d2db-df7b-440c-ab0f-6b60d78fd256", iface-status=active,
vm-uuid="2810b28d-381e-42ef-906c-07a1938f25d0"}
root@compute-157:~#
ovs-vsctl --db tcp:127.0.0.1:6622 -- set Bridge br-int mirrors=@m \
-- --id=@vnet0 get Port *qvo67f46914-b5* \
-- --id=@vnet2 get Port *qvo5271d2db-df* \
-- --id=@m create Mirror name=mymirror select-dst-port=@vnet0
select-src-port=@vnet0 output-port=@vnet2
root@compute-157:~# ovs-vsctl --db tcp:127.0.0.1:6622 list Bridge br-int
_uuid : 152ffeba-b0d0-45a1-b8f8-5a055a850e11
controller : [23cc05f6-321c-472e-b9c6-bd1715d4f813]
datapath_id : "0000bafe2f15a145"
datapath_type : ""
external_ids : {}
fail_mode : secure
flood_vlans : []
flow_tables : {}
*mirrors : [e4dc8889-fe24-48fa-85ec-96eda2b8cefe]*
name : br-int
netflow : []
other_config : {}
ports : [19947b37-8870-4583-ba0e-b17eec97d0b0,
3b94169f-00eb-48ee-afac-ee0447f79e26,
51353d13-6645-4940-b917-81e246698ff3,
712732c8-6080-41c4-8570-7092630af816,
72485e1b-6f7b-45ac-abb0-30b2323c88e9,
ba11b2f1-d3f1-4e65-b485-a1749c22b525, bb7e12c3-1b20-4aee-81ca-fbedb8886b5b]
protocols : []
sflow : []
status : {}
stp_enable : false
root@compute-157:~#
root@compute-157:~# *tcpdump -eni qvo5271d2db-df icmp*
tcpdump: WARNING: qvo5271d2db-df: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on qvo5271d2db-df, link-type EN10MB (Ethernet), capture size
65535 bytes
22:50:46.001751 *fa:16:3e:11:b2:c2* >*fa:16:3e:05:79:03*, ethertype IPv4
(0x0800), length 98: 172.16.100.6 > 172.16.100.2: ICMP echo request, id
27138, seq 27, length 64
22:50:46.001900 fa:16:3e:05:79:03 > fa:16:3e:11:b2:c2, ethertype IPv4
(0x0800), length 98: 172.16.100.2 > 172.16.100.6: ICMP echo reply, id
27138, seq 27, length 64
22:50:47.001834 fa:16:3e:11:b2:c2 > fa:16:3e:05:79:03, ethertype IPv4
(0x0800), length 98: 172.16.100.6 > 172.16.100.2: ICMP echo request, id
27138, seq 28, length 64
22:50:47.001977 fa:16:3e:05:79:03 > fa:16:3e:11:b2:c2, ethertype IPv4
(0x0800), length 98: 172.16.100.2 > 172.16.100.6: ICMP echo reply, id
27138, seq 28, length 64
22:50:48.001996 fa:16:3e:11:b2:c2 > fa:16:3e:05:79:03, ethertype IPv4
(0x0800), length 98: 172.16.100.6 > 172.16.100.2: ICMP echo request, id
27138, seq 29, length 64
22:50:48.002159 fa:16:3e:05:79:03 > fa:16:3e:11:b2:c2, ethertype IPv4
(0x0800), length 98: 172.16.100.2 > 172.16.100.6: ICMP echo reply, id
27138, seq 29, length 64
^C
*10 packets captured*
10 packets received by filter
0 packets dropped by kernel
[root@nexvu-apm-appliance ~]#*tcpdump -eni eth0*
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
*0 packets captured*
0 packets received by filter
0 packets dropped by kernel
[root@nexvu-apm-appliance ~]#
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss