VXLAN技術

VXLAN技術

CE3]dis 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

10 up enable disable FWD FWD FWD disable

[CE3]
[CE3]dis vxlan vni 10
VNI BD-ID State

10 10 up

===========================================
<CE3>system-view immediately // 全局開啓命令生效
commit ----------------------//每次需要敲,命令纔可以生效
[CE3]interface GE 1/0/5
[CE3-GE1/0/5]dis this
#
interface GE1/0/5
shutdown
#
return
[CE3-GE1/0/5]un
[CE3-GE1/0/5]undo sh
[CE3-GE1/0/5]undo shutdown
[CE3-GE1/0/5]dis this
#
interface GE1/0/5
shutdown
[CE3-GE1/0/5]commit
[CE3-GE1/0/5]dis this
interface GE1/0/5
undo shutdown
#
return
[CE3-GE1/0/5]

[CE2]
sysname CE2
#
bridge-domain 10 //創建橋接域
vxlan vni 10 //vxlan的網絡標識號
#
interface GE1/0/0
undo portswitch
undo shutdown
#
nterface GE1/0/0.1 mode l2 //創建2層子接口 用於和BD域綁定
encapsulation dot1q vid 10
bridge-domain 10
#
interface GE1/0/1
undo portswitch
undo shutdown
ip address 12.1.1.2 255.255.255.0

interface LoopBack0
ip address 2.2.2.2 255.255.255.255
ospf enable 1 area 0.0.0.0
#
interface Nve1 //隧道接口
source 2.2.2.2
vni 10 head-end peer-list 3.3.3.3

#
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 12.1.1.0 0.0.0.255
#

==================================================================

[CE3]
sysname CE3
#
bridge-domain 10
vxlan vni 10
#
interface GE1/0/0
undo portswitch
undo shutdown
ip address 13.1.1.3 255.255.255.0
#
interface GE1/0/1
undo shutdown
#
interface GE1/0/1.1 mode l2
encapsulation dot1q vid 10
bridge-domain 10
#

interface LoopBack0
ip address 3.3.3.3 255.255.255.255
ospf enable 1 area 0.0.0.0
#
interface Nve1
source 3.3.3.3
vni 10 head-end peer-list 2.2.2.2
#
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 13.1.1.0 0.0.0.255

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章