zoukankan      html  css  js  c++  java
  • 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]#

  • 相关阅读:
    【Rust】结构体 struct
    【Rust】所有权、引用、借用
    Centos7升级glibc2.24
    ES用户权限控制
    PHP压缩html网页代码 : 清除空格,制表符,注释标记
    PHP通过HTTP_USER_AGENT判断是否为手机移动终端的函数
    php正则表达式替换URL链接地址为指定url的形式
    PHP下使用CURL方式POST数据至API接口的方法
    设计模式代理模式
    设计模式生成器模式
  • 原文地址:https://www.cnblogs.com/dream397/p/13228702.html
Copyright © 2011-2022 走看看