组网情况:
server1(10.0.0.1)、server2(20.0.0.1)部署在分部,server3(10.0.0.2)、server4(20.0.0.2)部署在总部;
总部服务器核心与分部核心使用loopback地址建立vxlan隧道(tunnel10);
服务器核心2口与server3互联,通过服务实例将vlan10映射到vxlan10;
服务器核心3口与server4互联,通过服务实例将vlan20映射到vxlan20;
测试情况:
server1(10.0.0.1)与server4(20.0.0.2)不通、server2(20.0.0.1)与server3(10.0.0.2)不通,跨网段并且跨不同区域的时候都不通;
server3(10.0.0.2)、server4(20.0.0.2)与其各自的网关都不通;
同网段互ping通,跨网段不跨区域互ping通;
server1(10.0.0.1)、server2(20.0.0.1)与其各自的网关都通;
为什么总部的server都ping不通网关?
为什么跨网段并且跨区域情况下不通?
总部服务器核心配置:
#
ospf 1
area 0.0.0.0
#
vlan 10
#
vlan 20
#
l2vpn enable
#
vsi vxlan10
gateway vsi-interface 10
vxlan 10
tunnel 10
#
vsi vxlan20
gateway vsi-interface 20
vxlan 20
tunnel 10
#
interface LoopBack0
ip address 1.1.1.2 255.255.255.255
ospf 1 area 0.0.0.0
#
interface GigabitEthernet1/0/1
port link-mode route
combo enable fiber
ip address 172.16.2.2 255.255.255.0
ospf 1 area 0.0.0.0
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan all
port trunk pvid vlan 10
combo enable fiber
#
service-instance 10
encapsulation s-vid 10
xconnect vsi vxlan10
#
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan all
port trunk pvid vlan 20
combo enable fiber
#
service-instance 20
encapsulation s-vid 20
xconnect vsi vxlan20
#
interface Vsi-interface10
ip address 10.0.0.254 255.255.255.0
ospf 1 area 0.0.0.0
#
interface Vsi-interface20
ip address 20.0.0.254 255.255.255.0
ospf 1 area 0.0.0.0
#
interface Tunnel10 mode vxlan
source 1.1.1.2
destination 1.1.1.1
分部核心配置
#
ospf 1
area 0.0.0.3
#
vlan 10
#
vlan 20
#
l2vpn enable
#
vsi vxlan10
vxlan 10
tunnel 10
#
vsi vxlan20
vxlan 20
tunnel 10
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
ospf 1 area 0.0.0.3
#
interface GigabitEthernet1/0/1
port link-mode route
combo enable fiber
ip address 172.16.1.2 255.255.255.0
ospf 1 area 0.0.0.3
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan all
port trunk pvid vlan 10
combo enable fiber
#
service-instance 10
encapsulation s-vid 10
xconnect vsi vxlan10
#
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan all
port trunk pvid vlan 20
combo enable fiber
#
service-instance 20
encapsulation s-vid 20
xconnect vsi vxlan20
#
interface Tunnel10 mode vxlan
source 1.1.1.1
destination 1.1.1.2
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论