CE交换机 vxlan(一)
[*ZZKK]interface 100GE1/0/58.1 mode l2 [*ZZKK-100GE1/0/58.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. [*ZZKK-100GE1/0/58.1]quit [*ZZKK]bridge-domain 100 [*ZZKK-bd100]vxlan vni 33 Info: Please disable dynamic ARP learning when the controller is used to deliver ARP entries. [*ZZKK-bd100]commit [~ZZKK-bd100]interface 100GE1/0/58.1 mode l2 [~ZZKK-100GE1/0/58.1]encapsulation untag [~ZZKK-100GE1/0/58.1]bridge-domain 100 [*ZZKK-100GE1/0/58.1]commit [~ZZKK-100GE1/0/58.1]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. [*ZZKK-Nve1]source 192.168.117.249 [*ZZKK-Nve1]vni 33 head-end peer-list 10.10.16.81 [*ZZKK-Nve1]display vxlan vni 33 verbose BD ID : 100 State : down NVE : 77 Source Address : 192.168.117.249 Source IPv6 Address : - UDP Port : 4789 BUM Mode : - Group Address : - [*ZZKK-Nve1]commit [~ZZKK-Nve1] Info: The max number of VTY users is 5, and the number of current VTY users on line is 0.Connection closed by foreign host. [root@bogon ~]#
<ZZKK>display bridge-domain The total number of bridge-domains is : 1 -------------------------------------------------------------------------------- MAC_LRN: MAC learning; STAT: Statistics; SPLIT: Split-horizon; BC: Broadcast; MC: Unknown multicast; UC: Unknown unicast; *down: Administratively down; FWD: Forward; DSD: Discard; -------------------------------------------------------------------------------- BDID State MAC-LRN STAT BC MC UC SPLIT Description -------------------------------------------------------------------------------- 100 up enable disable FWD FWD FWD disable <ZZKK>display bridge-domain 100 brief -------------------------------------------------------------------------------- *down: Administratively down; U:Up; D:Down; -------------------------------------------------------------------------------- BDID State Ports -------------------------------------------------------------------------------- 100 up 100GE1/0/58.1(U) <ZZKK>
<ZZKK>display bridge-domain 100 brief verbose ^ Error: Too many parameters found at '^' position. <ZZKK>display bridge-domain 100 verbose Bridge-domain ID : 100 Description : State : Up MAC Learning : Enable Statistics : Disable Broadcast : Forward Unknown-unicast : Forward Unknown-multicast : Forward Split-horizon : Disable Vxlan Vni : 33 VSI : EVPN : ---------------- Interface State 100GE1/0/58.1 up <ZZKK>
<ZZKK>display vxlan tunnel Number of vxlan tunnel : 1 Tunnel ID Source Destination State Type Uptime ----------------------------------------------------------------------------------- 4026531841 192.168.117.249 10.10.16.81 up static 00:15:42 <ZZKK>
<ZZKK>display vxlan tunnel 4026531841 verbose Tunnel ID : 4026531841 Source : 192.168.117.249 Destination : 10.10.16.81 State : up Type : static Uptime : 00:16:26 <ZZKK>
<ZZKK>display vxlan vni 33 VNI BD-ID State --------------------------------------- 33 100 up <ZZKK>display vxlan peer 33 ^ Error: Too many parameters found at '^' position. <ZZKK>display vxlan peer vni 33 Number of peers : 1 Vni ID Source Destination Type Out Vni ID ------------------------------------------------------------------------------- 33 192.168.117.249 10.10.16.81 static 33 <ZZKK>
<ZZKK>display bridge-domain 100 statistics
<ZZKK>dis vxlan tunnel Number of vxlan tunnel : 1 Tunnel ID Source Destination State Type Uptime ----------------------------------------------------------------------------------- 4026531842 192.168.117.249 10.10.16.81 up static 03:31:08 <ZZKK>dis vxlan peer Number of peers : 1 Vni ID Source Destination Type Out Vni ID ------------------------------------------------------------------------------- 3300 192.168.117.249 10.10.16.81 static 3300 <ZZKK>
常用命令总结:
bridge-domain bd-id,创建广播域BD,并进入BD视图。
description description,配置BD的描述信息。
l2 binding vlan vlan-id,将指定VLAN与BD相关联,实现数据报文在BD内进行转发。
vxlan vni vni-id,配置BD所对应的VXLAN的VNI.
source ip-address,配置VXLAN隧道源端VTEP的IP地址。
vni vni-id head-end peer-list ip-address &<1-10>,配置头端复制列表。
display bridge-domain [ bd-id [ brief | verbose ] ],查看BD的配置信息。
display vxlan tunnel [ tunnel-id ] [ verbose ],查看VXLAN隧道的信息。
display vxlan vni [ vni-id [ verbose ] ],查看VNI的VXLAN的配置信息。
display vxlan peer [ vni vni-id ],查看VNI的目的端VTEP的IP地址。
display bridge-domain bd-id statistics,查看BD内报文的统计信息。
display vxlan statistics source source-ip-address peer peer-ip-address [ vni vni-id ],查看VXLAN隧道报文的统计信息。
reset bridge-domain bd-id statistics,清除指定BD内流量统计信息。
reset vxlan statistics source source-ip-address peer peer-ip-address [ vni vni-id ],清除VXLAN隧道报文统计信息。
参考
https://www.cnblogs.com/xinghen1216/p/11813422.html