[root@kunpeng82 devuser]# ovs-vsctl show ec7f002f-352c-476c-8348-5f2c86c8194f Bridge "br0_vtep_ls1" Port "0100-tortap3-l" Interface "0100-tortap3-l" type: patch options: {peer="0100-tortap3-p"} Port "vx4" Interface "vx4" type: vxlan options: {key="33", remote_ip="192.168.16.81"} Port "br0_vtep_ls1" Interface "br0_vtep_ls1" type: internal Port "0100-tortap2-l" Interface "0100-tortap2-l" type: patch options: {peer="0100-tortap2-p"} Port "0000-tortap1-l" Interface "0000-tortap1-l" type: patch options: {peer="0000-tortap1-p"} Bridge vtep_bfd Port "bfd192.168.16.81" Interface "bfd192.168.16.81" type: vxlan options: {remote_ip="192.168.16.81"} Port vtep_bfd Interface vtep_bfd type: internal Bridge "br0" Port "br0" Interface "br0" type: internal Port "0100-tortap3-p" Interface "0100-tortap3-p" type: patch options: {peer="0100-tortap3-l"} Port "0100-tortap2-p" Interface "0100-tortap2-p" type: patch options: {peer="0100-tortap2-l"} Port "tortap1" tag: 0 Interface "tortap1" Port "0000-tortap1-p" Interface "0000-tortap1-p" type: patch options: {peer="0000-tortap1-l"} Port "tortap3" Interface "tortap3" Port "tortap2" tag: 0 Interface "tortap2" ovs_version: "2.12.0" [root@kunpeng82 devuser]# vtep-ctl add-ps br1 ---------------------- 新增vtep [root@kunpeng82 devuser]# ovs-vsctl show ec7f002f-352c-476c-8348-5f2c86c8194f Bridge "br0_vtep_ls1" Port "0100-tortap3-l" Interface "0100-tortap3-l" type: patch options: {peer="0100-tortap3-p"} Port "vx4" Interface "vx4" type: vxlan options: {key="33", remote_ip="192.168.16.81"} Port "br0_vtep_ls1" Interface "br0_vtep_ls1" type: internal Port "0100-tortap2-l" Interface "0100-tortap2-l" type: patch options: {peer="0100-tortap2-p"} Port "0000-tortap1-l" Interface "0000-tortap1-l" type: patch options: {peer="0000-tortap1-p"} Bridge vtep_bfd Port "bfd192.168.16.81" Interface "bfd192.168.16.81" type: vxlan options: {remote_ip="192.168.16.81"} Port vtep_bfd Interface vtep_bfd type: internal Bridge "br0" Port "br0" Interface "br0" type: internal Port "0100-tortap3-p" Interface "0100-tortap3-p" type: patch options: {peer="0100-tortap3-l"} Port "0100-tortap2-p" Interface "0100-tortap2-p" type: patch options: {peer="0100-tortap2-l"} Port "tortap1" tag: 0 Interface "tortap1" Port "0000-tortap1-p" Interface "0000-tortap1-p" type: patch options: {peer="0000-tortap1-l"} Port "tortap3" Interface "tortap3" Port "tortap2" tag: 0 Interface "tortap2" ovs_version: "2.12.0" [root@kunpeng82 devuser]#
[root@kunpeng82 devuser]# vtep-ctl show 7ad71c45-a370-4718-89cd-c15d142f1fce Physical_Switch "br1" Physical_Switch "br0" tunnel_ips: ["192.168.16.81"] Physical_Port "tortap1" vlan_bindings: 0="ls0" Physical_Port "tortap2" vlan_bindings: 100="ls0" Physical_Port "tortap3" vlan_bindings: 100="ls0" [root@kunpeng82 devuser]#
[root@kunpeng82 devuser]# ps -elf | grep ovs-vtep 4 S root 7403 52972 0 80 0 - 1729 pipe_w 01:32 pts/0 00:00:00 grep --color=auto ovs-vtep 1 R root 11818 1 5 80 0 - 2073 - Jul02 ? 08:47:08 /bin/python2 /usr/share/openvswitch/scripts/ovs-vtep --log-file=/var/log/openvswitch/ovs-vtep.log --pidfile=/var/run/openvswitch/ovs-vtep.pid --detach br0 [root@kunpeng82 devuser]# kill -9 11818 ------------------- 终止进程 [root@kunpeng82 devuser]# ps -elf | grep ovs-vtep 4 S root 8442 52972 0 80 0 - 1729 pipe_w 01:33 pts/0 00:00:00 grep --color=auto ovs-vtep [root@kunpeng82 devuser]# ovs-vsctl show ec7f002f-352c-476c-8348-5f2c86c8194f Bridge "br0_vtep_ls1" Port "0100-tortap3-l" Interface "0100-tortap3-l" type: patch options: {peer="0100-tortap3-p"} Port "vx4" Interface "vx4" type: vxlan options: {key="33", remote_ip="192.168.16.81"} Port "br0_vtep_ls1" Interface "br0_vtep_ls1" type: internal Port "0100-tortap2-l" Interface "0100-tortap2-l" type: patch options: {peer="0100-tortap2-p"} Port "0000-tortap1-l" Interface "0000-tortap1-l" type: patch options: {peer="0000-tortap1-p"} Bridge vtep_bfd Port "bfd192.168.16.81" Interface "bfd192.168.16.81" type: vxlan options: {remote_ip="192.168.16.81"} Port vtep_bfd Interface vtep_bfd type: internal Bridge "br0" Port "br0" Interface "br0" type: internal Port "0100-tortap3-p" Interface "0100-tortap3-p" type: patch options: {peer="0100-tortap3-l"} Port "0100-tortap2-p" Interface "0100-tortap2-p" type: patch options: {peer="0100-tortap2-l"} Port "tortap1" tag: 0 Interface "tortap1" Port "0000-tortap1-p" Interface "0000-tortap1-p" type: patch options: {peer="0000-tortap1-l"} Port "tortap3" Interface "tortap3" Port "tortap2" tag: 0 Interface "tortap2" ovs_version: "2.12.0" [root@kunpeng82 devuser]#
原文:https://www.cnblogs.com/dream397/p/13271822.html