Vxlan二层互通-隧道方式
一、拓扑图
PC1地址为192.168.10.1/24无网关
PC2地址为192.168.10.2/24无网关
二、配置接口IP并使用OSPF实现路由互通
CE1配置
sys im
int g1/0/1
undo shutdown
undo portsw
ip add 12.0.0.1 24
int l 1
ip add 1.1.1.1 32
ospf 1
a 0
net 12.0.0.1 0.0.0.255
net 1.1.1.1 0.0.0.0
CE2配置
sys im
int g1/0/1
undo shutdown
undo portsw
ip add 12.0.0.2 24
int g1/0/2
undo sh
undo portsw
ip add 23.0.0.2 24
int l 1
ip add 2.2.2.2 32
ospf 1
a 0
net 12.0.0.2 0.0.0.255
net 2.2.2.2 0.0.0.0
net 23.0.0.2 0.0.0.255
CE3配置
sys im
int g1/0/2
undo shutdown
undo portsw
ip add 23.0.0.3 24
int l 1
ip add 3.3.3.3 32
ospf 1
a 0
net 23.0.0.3 0.0.0.255
net 3.3.3.3 0.0.0.0

三、配置Vxlan基本配置及业务接入点
CE1配置
sys im
bridge-domain 10
vxlan vni 1000
#
interface Nve1
source 1.1.1.1
vni 1000 head-end peer-list 3.3.3.3
#
interface GE1/0/0
undo shutdown
#
interface GE1/0/0.1 mode l2
encapsulation dot1q vid 10
bridge-domain 10
CE2配置
bridge-domain 10
vxlan vni 1000
#
interface Nve1
source 3.3.3.3
vni 1000 head-end peer-list 1.1.1.1
#
interface GE1/0/0
undo shutdown
#
interface GE1/0/0.1 mode l2
encapsulation dot1q vid 10
bridge-domain 10
#
四、配置交换机(LSW1与LSW2同配置)
sys
vlan 10
interface G0/0/1
port link-type trunk
port trunk allow-pass vlan 10
interface G0/0/2
port link-type access
port default vlan 10
五、验证
版权声明:
本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自
曹少卿的Blog!
喜欢就支持一下吧
打赏
微信
支付宝