這篇博客將收集一些openstack裏的使用技巧。spa
1. which dhcp agent is hosting the network?3d
2. 各個網橋port命令規則orm
grep for port’s prefix:blog
$ip address | grep e052edbb-94
... qbre052edbb-94: ...
... qvoe052edbb-94: ...
... qvbe052edbb-94: ...
... tape052edbb-94: ...ip
tap device is the starting point博客
qbr (Quantum bridge) is a Linux bridge, qbr bridge connected to tap and qvbit
$brctl showform
bridge name bridge id STP enabled interfaces
qbre052edbb-94 8000.8eb30d69e9bd no qvbe052edbb-94
tape052edbb-94network
qvb (Quantum veth bridge) and qvo (Quantum veth openvswitch) form a Virtual Ethernet pair
技巧
$ip -d link show qvoe052edbb-94
...
veth
$ip -d link show qvbe052edbb-94
...
veth
qvo device connected to br-int
$ovs-vsctl list-ports br-int
...
qvoe052edbb-94
...
兩個OVS網橋之間是用openvswitch的patch對組成的。
$ip netns exec qdhcp-<network_id> ip address
… tapXYZ …
$ovs-vsctl list-ports br-int
...
tapXYZ ...