[root@kunpeng82 evn1]# ovs-vsctl set open . external-ids:ovn-remote=tcp:127.0.0.1:6642 [root@kunpeng82 evn1]# ovs-vsctl set open . external-ids:ovn-encap-tpye=geneve [root@kunpeng82 evn1]# ovs-vsctl set open . external-ids:ovn-encap-ip=10.10.18.82 [root@kunpeng82 evn1]# ovn-sbctl show [root@kunpeng82 evn1]# netstat -nlp | grep 127.0.0.1 tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2734/master udp 0 0 127.0.0.1:323 0.0.0.0:* 1721/chronyd [root@kunpeng82 evn1]# ovs-vsctl del-br ovn-br ovs-vsctl: no bridge named ovn-br [root@kunpeng82 evn1]# ovs-vsctl del-br br-ovn [root@kunpeng82 evn1]# ovs-vsctl add-br br-ovn -- set Bridge br-ovn fail-mode=secure [root@kunpeng82 evn1]# netstat -nlp | grep 127.0.0.1 tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2734/master udp 0 0 127.0.0.1:323 0.0.0.0:* 1721/chronyd [root@kunpeng82 evn1]#
[root@kunpeng82 evn1]# ovs-vsctl set open . external-ids:ovn-bridge=br-ovn [root@kunpeng82 evn1]# netstat -nlp | grep 127.0.0.1 tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2734/master udp 0 0 127.0.0.1:323 0.0.0.0:* 1721/chronyd [root@kunpeng82 evn1]#
配置ovs与ovn相连接 # ovn-nbctl set-connection ptcp:6641:0.0.0.0 -- \ set connection . inactivity_probe=60000 # ovn-sbctl set-connection ptcp:6642:0.0.0.0 -- \ set connection . inactivity_probe=60000 # if using the VTEP functionality: # ovs-appctl -t ovsdb-server ovsdb-server/add-remote ptcp:6640:0.0.0.0 ub_35614077/java/article/details/98168599
配置ovs controller节点使用ovs databases ovs-vsctl set open . external-ids:ovn-remote=tcp:IP_ADDRESS:6642 ovs-vsctl set open . external-ids:ovn-encap-type=geneve,vxlan # 配置封装类型,geneve比较吊 ovs-vsctl set open . external-ids:ovn-encap-ip=IP_ADDRESS # 配置overlay endpoint地址 35614077/java/article/details/98168599