码迷,mamicode.com
首页 > 其他好文 > 详细

openvswitch-vtep(二)

时间:2020-07-03 11:00:04      阅读:106      评论:0      收藏:0      [点我收藏+]

标签:orm   timeout   forever   unknown   bfd   div   oop   tput   ref   

 

 

[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(二)

标签:orm   timeout   forever   unknown   bfd   div   oop   tput   ref   

原文地址:https://www.cnblogs.com/dream397/p/13228702.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!