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]#

  • 相关阅读:
    JavaScript 中的undefined and null 学习
    html5 file upload and form data by ajax
    openresty + lua-resty-weedfs + weedfs + graphicsmagick动态生成缩略图(类似淘宝方案)
    ubuntu10.04 安装oracle server 版 笔记
    windows xp + mysql5.5 + phpmyadmin insert 中文繁體
    (原创)ubuntu 10.04+ruby1.9.2+rails3 安装记录
    ruby簡單的代碼行統計工具
    Ruby中如何复制对象 (deep clone)(转载)
    vi 常用命令使用說明
    一个小公司老板的日常管理日记,希望能让创业的朋友学到东西(转载)
  • 原文地址:https://www.cnblogs.com/dream397/p/13228702.html
Copyright © 2011-2022 走看看