openvswitch-vtep

Posted dream397

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openvswitch-vtep相关的知识,希望对你有一定的参考价值。

 

 

[root@kunpeng82 devuser]#  ovs-vsctl show
ec7f002f-352c-476c-8348-5f2c86c8194f
    Bridge "br0_vtep_ls1"
        Port "vx1"
            Interface "vx1"
                type: vxlan
                options: {key="33", remote_ip="10.2.2.2"}
        Port "br0_vtep_ls1"
            Interface "br0_vtep_ls1"
                type: internal
        Port "0000-tortap1-l"
            Interface "0000-tortap1-l"
                type: patch
                options: {peer="0000-tortap1-p"}
    Bridge vtep_bfd
        Port "bfd10.2.2.2"
            Interface "bfd10.2.2.2"
                type: vxlan
                options: {remote_ip="10.2.2.2"}
        Port vtep_bfd
            Interface vtep_bfd
                type: internal
    Bridge "br0"
        Port "enahisic2i2"
            Interface "enahisic2i2"
        Port "br0"
            Interface "br0"
                type: internal
        Port "tortap1"
            Interface "tortap1"
        Port "0000-tortap1-p"
            Interface "0000-tortap1-p"
                type: patch
                options: {peer="0000-tortap1-l"}
    ovs_version: "2.12.0"
[root@kunpeng82 devuser]#  ovs-vsctl show
ec7f002f-352c-476c-8348-5f2c86c8194f
    Bridge "br0_vtep_ls1"
        Port "vx1"
            Interface "vx1"
                type: vxlan
                options: {key="33", remote_ip="10.2.2.2"}
        Port "br0_vtep_ls1"
            Interface "br0_vtep_ls1"
                type: internal
        Port "0000-tortap1-l"
            Interface "0000-tortap1-l"
                type: patch
                options: {peer="0000-tortap1-p"}
    Bridge vtep_bfd
        Port "bfd10.2.2.2"
            Interface "bfd10.2.2.2"
                type: vxlan
                options: {remote_ip="10.2.2.2"}
        Port vtep_bfd
            Interface vtep_bfd
                type: internal
    Bridge "br0"
        Port "enahisic2i2"
            Interface "enahisic2i2"
        Port "br0"
            Interface "br0"
                type: internal
        Port "tortap1"
            Interface "tortap1"
        Port "0000-tortap1-p"
            Interface "0000-tortap1-p"
                type: patch
                options: {peer="0000-tortap1-l"}
    ovs_version: "2.12.0"
[root@kunpeng82 devuser]# ip netns exec ns1 ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
250: nstap1@if249: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 82:32:fe:df:ff:94 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 10.0.10.120/24 scope global nstap1
       valid_lft forever preferred_lft forever
    inet6 fe80::8032:feff:fedf:ff94/64 scope link 
       valid_lft forever preferred_lft forever

[root@kunpeng82 devuser]# ip netns exec ns1 ping 10.10.10.121
connect: Network is unreachable
[root@kunpeng82 devuser]# ovs-ofctl dump-flows br0
 cookie=0x0, duration=47401.753s, table=0, n_packets=22, n_bytes=1288, in_port=tortap1 actions=output:"0000-tortap1-p"
 cookie=0x0, duration=47401.746s, table=0, n_packets=0, n_bytes=0, in_port="0000-tortap1-p" actions=output:tortap1
[root@kunpeng82 devuser]# ovs-ofctl dump-flows vtep_bfd
 cookie=0x0, duration=51451.131s, table=0, n_packets=0, n_bytes=0, priority=0 actions=NORMAL
[root@kunpeng82 devuser]# ovs-ofctl dump-flows br0_vtep_ls1
 cookie=0x0, duration=47438.283s, table=0, n_packets=22, n_bytes=1288, in_port="0000-tortap1-l" actions=learn(table=1,idle_timeout=15,priority=1000,cookie=0x5000,NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],output:NXM_OF_IN_PORT[]),resubmit(,1)
 cookie=0x0, duration=47195.454s, table=0, n_packets=0, n_bytes=0, priority=1000,in_port=vx1 actions=resubmit(,1)
 cookie=0x0, duration=47438.363s, table=0, n_packets=0, n_bytes=0, priority=0 actions=drop
 cookie=0x0, duration=47195.439s, table=1, n_packets=0, n_bytes=0, priority=1,in_port=vx1 actions=output:"0000-tortap1-l"
 cookie=0x0, duration=47195.432s, table=1, n_packets=22, n_bytes=1288, priority=0 actions=output:"0000-tortap1-l",output:vx1
[root@kunpeng82 devuser]#

技术图片

 

 

技术图片

 

以上是关于openvswitch-vtep的主要内容,如果未能解决你的问题,请参考以下文章

VSCode自定义代码片段——CSS选择器

谷歌浏览器调试jsp 引入代码片段,如何调试代码片段中的js

片段和活动之间的核心区别是啥?哪些代码可以写成片段?

VSCode自定义代码片段——.vue文件的模板

VSCode自定义代码片段6——CSS选择器

VSCode自定义代码片段——声明函数