Table of Contents
1. 确认端口状态
端口计数器
admin@PicOS-OVS$ovs-ofctl dump-ports br0 OFPST_PORT reply (OF1.3) (xid=0x2): 49 ports port 1: rx pkts=0, bytes=979551, drop=0, errs=518513, frame=0, over=0, crc=0 tx pkts=457981, bytes=34858800, drop=0, errs=0, coll=0 duration=232370.287s port 2: rx pkts=2465, bytes=635018, drop=4, errs=0, frame=0, over=0, crc=0 tx pkts=455681, bytes=34236034, drop=0, errs=0, coll=0 duration=232372.854s port 3: rx pkts=0, bytes=979534, drop=0, errs=517694, frame=0, over=0, crc=0 tx pkts=457981, bytes=34858800, drop=0, errs=0, coll=0 duration=232371.098s .................................... port 48: rx pkts=905539, bytes=67054286, drop=449858, errs=0, frame=0, over=0, crc=0 tx pkts=502, bytes=36333, drop=0, errs=0, coll=0 duration=232374.984s port LOCAL: rx pkts=7, bytes=738, drop=0, errs=0, frame=0, over=0, crc=0 tx pkts=1339, bytes=80340, drop=0, errs=0, coll=0 duration=232369.846s admin@PicOS-OVS$
端口链路状态
admin@PicOS-OVS$ovs-ofctl dump-ports-desc br0 OFPST_PORT_DESC reply (OF1.3) (xid=0x2): 1(te-1/1/1): addr:cc:37:ab:f5:3b:37 config: 0 state: LINK_UP current: 10GB-FD COPPER advertised: 1GB-FD 10GB-FD FIBER supported: 10MB-FD 100MB-FD 1GB-FD 10GB-FD FIBER AUTO_NEG speed: 10000 Mbps now, 10000 Mbps max 2(te-1/1/2): addr:cc:37:ab:f5:3b:37 config: 0 state: LINK_UP current: 10GB-FD COPPER advertised: 1GB-FD 10GB-FD FIBER supported: 10MB-FD 100MB-FD 1GB-FD 10GB-FD FIBER AUTO_NEG speed: 10000 Mbps now, 10000 Mbps max 3(te-1/1/3): addr:cc:37:ab:f5:3b:37 config: 0 state: LINK_UP current: 10GB-FD COPPER advertised: 1GB-FD 10GB-FD FIBER supported: 10MB-FD 100MB-FD 1GB-FD 10GB-FD FIBER AUTO_NEG speed: 10000 Mbps now, 10000 Mbps max .............................. 48(te-1/1/48): addr:cc:37:ab:f5:3b:37 config: 0 state: LINK_UP current: 1GB-FD COPPER advertised: 1GB-FD 10GB-FD FIBER supported: 10MB-FD 100MB-FD 1GB-FD 10GB-FD FIBER AUTO_NEG speed: 1000 Mbps now, 10000 Mbps max LOCAL(br0): addr:cc:37:ab:f5:3b:37 config: 0 state: LINK_UP current: 10MB-FD COPPER supported: 10MB-FD COPPER speed: 10 Mbps now, 10 Mbps max
2. 确认硬件流表支持的最大条目
admin@PICOS-OVS:~$ ovs-appctl pica/show tables Pica Tables Statistics: Pica Tables Max Limitation Current Used ----------------------------------------------------------------------- ICAP Table 4094 79 ECAP Table (null) (null) VCAP Table 1022 0 L2 System Table (null) (null) L2 FDB Table (null) (null) L3 Host Table (null) (null) L3 Route Table (null) (null) UDF Table (null) (null) admin@PICOS-OVS:~$