[root@kunpeng82 devuser]# ovs-vsctl show ec7f002f-352c-476c-8348-5f2c86c8194f Bridge "br1" Port "br1" Interface "br1" type: internal Bridge "br0_vtep_ls3" Port "br0_vtep_ls3" Interface "br0_vtep_ls3" type: internal Port "vx4" Interface "vx4" type: vxlan options: {key="33", remote_ip="192.168.16.81"} 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 vtep_bfd Interface vtep_bfd type: internal Port "bfd192.168.16.81" Interface "bfd192.168.16.81" type: vxlan options: {remote_ip="192.168.16.81"} Bridge "br0" Port "0100-tortap2-p" Interface "0100-tortap2-p" type: patch options: {peer="0100-tortap2-l"} Port "tortap4" Interface "tortap4" Port "br0" Interface "br0" type: internal Port "0000-tortap1-p" Interface "0000-tortap1-p" type: patch options: {peer="0000-tortap1-l"} Port "tortap1" tag: 0 Interface "tortap1" Port "tortap3" Interface "tortap3" Port "tortap2" tag: 0 Interface "tortap2" ovs_version: "2.12.0" [root@kunpeng82 devuser]# vtep-ctl list-ls ls1 ls2 [root@kunpeng82 devuser]#
[root@kunpeng82 devuser]# vtep-ctl bind-ls br0 tortap3 100 ls2 ------------ovs ctl show没看到tortap3绑定了哦 vtep-ctl: multiple bindings for vlan 100 [root@kunpeng82 devuser]#
[root@kunpeng82 devuser]# ps -elf | grep ovs 1 S root 6731 1 0 80 0 - 270 do_wai Jul02 ? 00:00:00 ovsdb-server: monitoring pid 6732 (healthy) 1 S root 6732 6731 3 80 0 - 282 do_sys Jul02 ? 06:50:10 ovsdb-server /etc/openvswitch/conf.db /etc/openvswitch/hw_vtep.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/var/run/openvswitch/db.sock --remote=db:hardware_vtep,Global,managers --private-key=db:Open_vSwitch,SSL,private_key --certificate=db:Open_vSwitch,SSL,certificate --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --no-chdir --log-file=/var/log/openvswitch/ovsdb-server.log --pidfile=/var/run/openvswitch/ovsdb-server.pid --detach --monitor 5 S root 7333 1 1 80 0 - 75251 do_sys Jul02 ? 03:47:22 ovs-vswitchd --log-file --detach --pidfile unix:/var/run/openvswitch/db.sock 4 S root 55242 55220 0 80 0 - 1730 pipe_w 13:20 pts/0 00:00:00 grep --color=auto ovs [root@kunpeng82 devuser]#
没看到vtep进程,
[root@kunpeng82 devuser]# vtep-ctl unbind-ls br0 tortap3 100 [root@kunpeng82 devuser]#
[root@kunpeng82 devuser]# ps -elf | grep ovs 1 S root 6731 1 0 80 0 - 270 do_wai Jul02 ? 00:00:00 ovsdb-server: monitoring pid 6732 (healthy) 1 S root 6732 6731 3 80 0 - 281 do_sys Jul02 ? 06:50:10 ovsdb-server /etc/openvswitch/conf.db /etc/openvswitch/hw_vtep.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/var/run/openvswitch/db.sock --remote=db:hardware_vtep,Global,managers --private-key=db:Open_vSwitch,SSL,private_key --certificate=db:Open_vSwitch,SSL,certificate --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --no-chdir --log-file=/var/log/openvswitch/ovsdb-server.log --pidfile=/var/run/openvswitch/ovsdb-server.pid --detach --monitor 5 S root 7333 1 1 80 0 - 75251 do_sys Jul02 ? 03:47:25 ovs-vswitchd --log-file --detach --pidfile unix:/var/run/openvswitch/db.sock 1 S root 55249 1 6 80 0 - 2052 do_sel 13:22 ? 00:00:00 /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 4 S root 55960 55220 0 80 0 - 1730 pipe_w 13:22 pts/0 00:00:00 grep --color=auto ovs [root@kunpeng82 devuser]#
[root@kunpeng82 devuser]# ovs-vsctl show ec7f002f-352c-476c-8348-5f2c86c8194f Bridge "br0_vtep_ls2" Port "0100-tortap3-l" Interface "0100-tortap3-l" type: patch options: {peer="0100-tortap3-p"} Port "br0_vtep_ls2" Interface "br0_vtep_ls2" type: internal Port "vx2" -----------------------可以了 Interface "vx2" type: vxlan options: {key="44", remote_ip="192.168.16.81"} Bridge vtep_bfd Port vtep_bfd Interface vtep_bfd type: internal Port "bfd192.168.16.81" Interface "bfd192.168.16.81" type: vxlan options: {remote_ip="192.168.16.81"} Bridge "br0_vtep_ls1" 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 "vx1" Interface "vx1" type: vxlan options: {key="33", remote_ip="192.168.16.81"} Port "0000-tortap1-l" Interface "0000-tortap1-l" type: patch options: {peer="0000-tortap1-p"} Bridge "br1" Port "br1" Interface "br1" type: internal Bridge "br0" Port "tortap4" Interface "tortap4" Port "br0" Interface "br0" type: internal Port "0100-tortap3-p" Interface "0100-tortap3-p" type: patch options: {peer="0100-tortap3-l"} Port "0000-tortap1-p" Interface "0000-tortap1-p" type: patch options: {peer="0000-tortap1-l"} Port "0100-tortap2-p" Interface "0100-tortap2-p" type: patch options: {peer="0100-tortap2-l"} Port "tortap1" tag: 0 Interface "tortap1" Port "tortap3" Interface "tortap3" Port "tortap2" tag: 0 Interface "tortap2" ovs_version: "2.12.0" [root@kunpeng82 devuser]#