业务接入点配置
Leaf-1配置
interface GE1/0/2.100 mode l2
encapsulation dot1q vid 100
bridge-domain 10
interface GE1/0/2.200 mode l2
encapsulation dot1q vid 200
bridge-domain 20
Spine配置
Leaf-2配置
interface GE1/0/2.100 mode l2
encapsulation dot1q vid 100
bridge-domain 10
配置静态VXLAN隧道
Leaf-1配置
interface Nve1
source 1.1.1.1
vni 10 head-end peer-list 3.3.3.3
vni 20 head-end peer-list 3.3.3.3
Spine配置
Leaf-2配置
interface Nve1
source 3.3.3.3
vni 10 head-end peer-list 1.1.1.1
vni 20 head-end peer-list 1.1.1.1
配置接入层
SW1,
vlan batch 100 200
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/23
port link-type access
port default vlan 100
配置静态VXLAN隧道
Leaf-1配置
interface Nve1
source 1.1.1.1
vni 10 head-end peer-list 3.3.3.3
vni 20 head-end peer-list 3.3.3.3
Spine配置
Leaf-2配置
interface Nve1
source 3.3.3.3
vni 10 head-end peer-list 1.1.1.1
vni 20 head-end peer-list 1.1.1.1
配置接入层
SW1,
vlan batch 100 200
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/23
port link-type access
port default vlan 100
设置vxlan
Leaf-1配置
bridge-domain 10
vxlan vni 1
q
int nve 1
source 1.1.1.1
vni 1 head-end peer-list 3.3.3.3
q
bridge-domain 20
vxlan vni 1
q
int nve 1
source 1.1.1.1
vni 1 head-end peer-list 3.3.3.3
q
commit
Leaf-2配置
bridge-domain 10
vxlan vni 1
q
int nve 1
source 3.3.3.3
vni 1 head-end peer-list 1.1.1.1
q
bridge-domain 20
vxlan vni 1
q
int nve 1
source 3.3.3.3
vni 1 head-end peer-list 1.1.1.1
q
commit
配置VXLAN三层网关
Leaf-1配置
interface Vbdif10
ip address 192.168.10.1 255.255.255.0
#
interface Vbdif20
ip address 192.168.20.1 255.255.255.0interface Vbdif10
ip address 192.168.10.1 255.255.255.0
#
interface Vbdif20
ip address 192.168.20.1 255.255.255.0
Spine配置
Leaf-2配置
interface Vbdif10
ip address 192.168.10.1 255.255.255.0
#
interface Vbdif20
ip address 192.168.20.1 255.255.255.0