Skip to content

Instantly share code, notes, and snippets.

@trad511
Created May 23, 2014 21:14
Show Gist options
  • Save trad511/436d561e28f579057e5e to your computer and use it in GitHub Desktop.
Save trad511/436d561e28f579057e5e to your computer and use it in GitHub Desktop.
vlan tag troubleshooting 2 flows
root@122-control-01:~# ovs-ofctl show br-int
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000c62abfafec4b
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
3(tap794e75a8-65): addr:d6:57:b8:d9:65:6c
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
7(qr-c1443e03-9c): addr:e2:9c:44:66:d6:50
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
9(int-br-ex): addr:ce:78:b4:79:f6:05
config: 0
state: 0
current: 10GB-FD COPPER
speed: 10000 Mbps now, 0 Mbps max
10(patch-tun): addr:6a:68:77:22:75:f5
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
11(qr-ccc72e53-2b): addr:06:01:00:00:00:00
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
12(tapdf6fd818-b2): addr:d6:57:b8:d9:65:6c
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
13(tap32444fe2-6e): addr:d6:57:b8:d9:65:6c
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
14(qr-98ca3aff-46): addr:06:01:00:00:00:00
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
LOCAL(br-int): addr:c6:2a:bf:af:ec:4b
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
root@122-control-01:~# ovs-ofctl dump-flows br-int
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=519.422s, table=0, n_packets=131, n_bytes=10568, idle_age=40, priority=3,in_port=9,dl_vlan=3331 actions=mod_vlan_vid:2,NORMAL
cookie=0x0, duration=519.9s, table=0, n_packets=0, n_bytes=0, idle_age=519, priority=2,in_port=7 actions=drop
cookie=0x0, duration=522.295s, table=0, n_packets=62, n_bytes=3932, idle_age=3, priority=2,in_port=9 actions=drop
cookie=0x0, duration=522.829s, table=0, n_packets=510, n_bytes=51800, idle_age=2, priority=1 actions=NORMAL
root@122-control-01:~# ovs-ofctl show br-ex
OFPT_FEATURES_REPLY (xid=0x2): dpid:00002c27d74ee6fc
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
4(eth5): addr:2c:27:d7:4e:e6:fc
config: 0
state: 0
current: 10GB-FD FIBER
advertised: 10GB-FD COPPER FIBER
supported: 10GB-FD COPPER FIBER
speed: 10000 Mbps now, 10000 Mbps max
5(vtep0): addr:de:38:1d:8d:b9:51
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
19(qg-2846d604-48): addr:06:01:00:00:00:00
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
20(phy-br-ex): addr:e6:eb:cd:4e:dc:e6
config: 0
state: 0
current: 10GB-FD COPPER
speed: 10000 Mbps now, 0 Mbps max
LOCAL(br-ex): addr:2c:27:d7:4e:e6:fc
config: 0
state: 0
speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
root@122-control-01:~# ovs-ofctl dump-flows br-ex
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=527.276s, table=0, n_packets=4, n_bytes=360, idle_age=76, priority=4,in_port=20,dl_vlan=2 actions=mod_vlan_vid:3331,NORMAL
cookie=0x0, duration=530.063s, table=0, n_packets=102, n_bytes=6608, idle_age=10, priority=2,in_port=20 actions=drop
cookie=0x0, duration=530.548s, table=0, n_packets=792, n_bytes=99872, idle_age=6, priority=1 actions=NORMAL
root@122-control-01:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment