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

猜你喜欢

转载自blog.51cto.com/8054811/2476053