zoukankan      html  css  js  c++  java
  • CE交换机 vxlan(五)

    [root@bogon ~]# ip netns exec ns2 ping 10.0.10.12
    PING 10.0.10.12 (10.0.10.12) 56(84) bytes of data.
    From 10.0.10.123 icmp_seq=1 Destination Host Unreachable
    ^C
    --- 10.0.10.12 ping statistics ---
    3 packets transmitted, 0 received, +1 errors, 100% packet loss, time 2067ms
    
    [root@bogon ~]#
    <ZZKK>capture-packet interface 100GE 1/0/58 destination terminal          --------------抓不到包
    Warning: Capture-packet will be shown on terminal.
    <ZZKK>undo capture-packet
    
      ------------------capture report-----------------------
    
      Capture-Packet Index 1
      Type        : forwarding
      Interface   : 100GE1/0/58
      Direction   : inbound
      Time-out    : 60 seconds
      Packet-num  : 100
      Packet-len  : 64
      BufferOnly  : disabled
    
      -------------------------------------------------------
    <ZZKK>

    节点1

    ip link add vxlan3300 type vxlan id 3300  remote 10.10.30.253  dstport 4789 dev enahisic2i0
    ip link set vxlan3300 up
    brctl addif br1 vxlan3300
    [root@bogon ~]# ip netns exec ns2 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
    2: nstap2.vlan100@nstap2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
        link/ether c6:9a:46:bd:18:14 brd ff:ff:ff:ff:ff:ff
    128: nstap2@if127: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
        link/ether c6:9a:46:bd:18:14 brd ff:ff:ff:ff:ff:ff link-netnsid 0
        inet 172.16.103.99/24 scope global nstap2
           valid_lft forever preferred_lft forever
    [root@bogon ~]#
    [root@bogon ~]# ip netns exec ns2 ping  172.16.103.6
    PING 172.16.103.6 (172.16.103.6) 56(84) bytes of data.
    64 bytes from 172.16.103.6: icmp_seq=1 ttl=64 time=0.188 ms
    64 bytes from 172.16.103.6: icmp_seq=2 ttl=64 time=0.145 ms
    64 bytes from 172.16.103.6: icmp_seq=3 ttl=64 time=0.163 ms
    ^C
    --- 172.16.103.6 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2068ms
    rtt min/avg/max/mdev = 0.145/0.165/0.188/0.020 ms
    [root@bogon ~]# 

    节点1 tcpdump

    [root@bogon ~]# tcpdump -i enahisic2i0  dst port 4789 -env
    tcpdump: listening on enahisic2i0, link-type EN10MB (Ethernet), capture size 262144 bytes
    14:48:07.504542 48:57:02:64:ea:1b > f4:1d:6b:87:53:2a, ethertype IPv4 (0x0800), length 160: (tos 0x0, ttl 64, id 28221, offset 0, flags [none], proto UDP (17), length 146)
        10.10.16.81.56748 > 10.10.30.253.4789: VXLAN, flags [I] (0x08), vni 3300
    56:f2:48:64:ad:38 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 110: (hlim 1, next-header Options (0) payload length: 56) :: > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 2 group record(s) [gaddr ff02::1:ff64:ad38 to_ex, 0 source(s)] [gaddr ff02::2 to_ex, 0 source(s)]
    14:48:07.774531 48:57:02:64:ea:1b > f4:1d:6b:87:53:2a, ethertype IPv4 (0x0800), length 160: (tos 0x0, ttl 64, id 28226, offset 0, flags [none], proto UDP (17), length 146)

    节点2

    [~JG05-SA-01-CE8850]bridge-domain 100
    [*JG05-SA-01-CE8850-bd100]vxlan vni 3300
    Info: Please disable dynamic ARP learning when the controller is used to deliver ARP entries.
    [*JG05-SA-01-CE8850-bd100]quit
    [*JG05-SA-01-CE8850]interface nve nve1
                                      ^
    Error: Wrong parameter found at '^' position.
    [*JG05-SA-01-CE8850]interface nve1    
    Info: Ensure that the IP addresses and MAC addresses of the NVE interfaces on Devices are the same, as they are dual-active gateways using M-LAG.
    [*JG05-SA-01-CE8850-Nve1]source 10.10.30.253
    [*JG05-SA-01-CE8850-Nve1]vni 3300 head-end peer-list 10.10.16.81
    [*JG05-SA-01-CE8850-Nve1]quit
    [*JG05-SA-01-CE8850]interface  100GE1/0/14 mode l2
                                               ^
    Error: Wrong parameter found at '^' position.
    [*JG05-SA-01-CE8850]interface  100GE1/0/14.1 mode l2
    [*JG05-SA-01-CE8850-100GE1/0/14.1]encapsulation untag
    Warning: Exercise caution when configuring an untagged default sub-interface and ensure that no configurations exist on the main interface before you configure an untagged default sub-interface. Otherwise, it will produce unpredictable results.
    [*JG05-SA-01-CE8850-100GE1/0/14.1]bridge-domain 100
    [*JG05-SA-01-CE8850-100GE1/0/14.1]quit  
    [*JG05-SA-01-CE8850]commit
    [~JG05-SA-01-CE8850]quit
    <JG05-SA-01-CE8850>dis vxlan tunnel
    Number of vxlan tunnel : 1
    Tunnel ID   Source                Destination           State  Type     Uptime
    -----------------------------------------------------------------------------------
    4026531841  10.10.30.253          10.10.16.81           up     static   00:00:11  
    <JG05-SA-01-CE8850>
    <JG05-SA-01-CE8850>dis ip in br    
    *down: administratively down
    !down: FIB overload down
    ^down: standby
    (l): loopback
    (s): spoofing
    (d): Dampening Suppressed
    The number of interface that is UP in Physical is 2
    The number of interface that is DOWN in Physical is 1
    The number of interface that is UP in Protocol is 2
    The number of interface that is DOWN in Protocol is 1
    Interface                   IP Address/Mask    Physical Protocol VPN           
    MEth0/0/0                   192.168.1.1/24     down     down     --            
    NULL0                       unassigned         up       up(s)    --            
    Vlanif1030                  10.10.30.253/24    up       up       --            
    .
    <JG05-SA-01-CE8850>dis current-config int vlanif1030
    #
    interface Vlanif1030
     ip address 10.10.30.253 255.255.255.0
    #
    return
    <JG05-SA-01-CE8850>
  • 相关阅读:
    程序员:不要自称为码农
    SpringBoot对静态资源配置
    LeetCode 572. Subtree of Another Tree(子树)
    LeetCode 437. Path Sum III(统计路径和等于sum的路径数量)
    LeetCode 112. Path Sum(判断路径和是否等于一个数)
    LeetCode 617. Merge Two Binary Trees(归并两棵二叉树)
    LeetCode 226. Invert Binary Tree(翻转二叉树)
    Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 的解决办法
    linux-查询某软件的安装的目录
    WebService概念解释
  • 原文地址:https://www.cnblogs.com/dream397/p/13280805.html
Copyright © 2011-2022 走看看