1.查看port所属bridge
zg@cp42:~$ sudo ovs-vsctl port-to-br qvo500b9699-47br-int
?2.查看port的相关信息(重要)
zg@cp42:~$ sudo ovs-vsctl list port qvod9489682-5a_uuid : 93668bef-8a1d-47f1-99df-507ab0c07f7cbond_downdelay : 0bond_fake_iface : falsebond_mode : []bond_updelay : 0external_ids : {}fake_bridge : falseinterfaces : [94b656cc-eb32-459a-8c79-6cf0b9e1f26e]lacp : []mac : []name : "qvod9489682-5a"other_config : {}qos : []statistics : {}status : {}tag : []trunks : []vlan_mode : []
?3.查看一个br下的所有port,port的排列顺序为创建时间先后顺序
stack@cp42:/home/zg/kvm$ sudo ovs-ofctl show br-intOFPT_FEATURES_REPLY (xid=0x1): ver:0x1, dpid:000040169ff14865n_tables:255, n_buffers:256features: capabilities:0xc7, actions:0xfff 1(tapd14504fa-a8): addr:0f:08:f0:3e:f2:09 config: PORT_DOWN state: LINK_DOWN 2(qr-2010deb0-d1): addr:1a:b6:56:fc:7d:a6 config: PORT_DOWN state: LINK_DOWN 3(tap336fbfa7-00): addr:0f:08:f0:3e:f2:09 config: PORT_DOWN state: LINK_DOWN 4(eth1): addr:40:16:9f:f1:48:65 config: 0 state: LINK_DOWN current: 10MB-HD AUTO_NEG advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG 5(qr-7aa6debb-3a): addr:86:69:33:38:93:e0 config: PORT_DOWN state: LINK_DOWN 6(int-br-int): addr:c2:0e:aa:2b:1c:17 config: 0 state: 0 current: 10GB-FD COPPER 7(phy-br-int): addr:7e:aa:4e:f4:b8:fb config: 0 state: 0 current: 10GB-FD COPPER 9(qvo78d072d8-5f): addr:06:c9:7e:34:38:81 config: 0 state: 0 current: 10GB-FD COPPER LOCAL(br-int): addr:40:16:9f:f1:48:65 config: 0 state: 0OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
?