• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

华三HCL模拟器MPLS L3 VPN的时候OSPF和BGP双向重分布的问题

2019-07-24提问
  • 0关注
  • 1收藏,1525浏览
粉丝:0人 关注:0人

问题描述:

用hcl模拟器做MPLS VPN,bgp邻居和mpls ldp邻居建立正常,但是vpn实例的ospf和bgp双向引入的时候无法引入路由,很奇怪,不知道哪里配置错了,请大佬解答一下,同配置下ensp正常。

组网及组网描述:


P路由

[P_R1]dis cu 

 version 7.1.075, Alpha 7571 

 sysname P_R1 

 router id 1.1.1.1 

ospf 1 

 area 0.0.0.0 

 network 1.1.1.1 0.0.0.0 

 network 12.12.12.0 0.0.0.3 

 network 13.13.13.0 0.0.0.3 

 mpls lsr-id 1.1.1.1 

mpls ldp

interface LoopBack0 

 ip address 1.1.1.1 255.255.255.255 

interface GigabitEthernet0/0

 port link-mode route

 combo enable copper

 ip address 12.12.12.1 255.255.255.252

 ospf network-type p2p

 mpls enable

 mpls ldp enable 

interface GigabitEthernet0/1

 port link-mode route

 combo enable copper

 ip address 13.13.13.1 255.255.255.252

 ospf network-type p2p

 mpls enable

 mpls ldp enable 

# return


PE-1路由

[PE_R1]dis cu 

 version 7.1.075, Alpha 7571 

 sysname PE_R1 

ip vpn-instance 1t2 

 route-distinguisher 100:200 

 vpn-target 100:200 200:100 import-extcommunity 

 vpn-target 200:100 100:200 export-extcommunity 

 router id 2.2.2.2 

ospf 1 

 area 0.0.0.0 

 network 2.2.2.2 0.0.0.0 

 network 12.12.12.0 0.0.0.3 

ospf 2 

 vpn-instance 1t2

 import-route bgp 333

 vpn-instance-capability simple

 area 0.0.0.0 network 24.24.24.0 0.0.0.3 

mpls lsr-id 2.2.2.2 

vlan 1 

#

mpls ldp 

interface LoopBack0 

 ip address 2.2.2.2 255.255.255.255 

interface GigabitEthernet0/0 

 port link-mode route 

 combo enable copper

 ip address 12.12.12.2 255.255.255.252

 ospf network-type p2p

 mpls enable

 mpls ldp enable 

interface GigabitEthernet0/1

 port link-mode route

 combo enable copper 

#

 interface GigabitEthernet0/1.2

 ip binding vpn-instance 1t2

 ip address 24.24.24.1 255.255.255.252

 ospf network-type p2p

 vlan-type dot1q vid 2 

bgp 333

 peer 3.3.3.3 as-number 333

 peer 3.3.3.3 connect-interface LoopBack0 

address-family vpnv4 peer 3.3.3.3 enable 

 ip vpn-instance 1t2 

 address-family ipv4 unicast

 import-route ospf 2 

return 


PE-2路由

[PE_R2]dis cu

 # 

version 7.1.075, Alpha 7571

 sysname PE_R2 

ip vpn-instance 2t1

 route-distinguisher 100:200

 vpn-target 200:100 100:200 import-extcommunity

 vpn-target 100:200 200:100 export-extcommunity

 #

 router id 3.3.3.3

 # ospf 1 

 area 0.0.0.0 

 network 3.3.3.3 0.0.0.0 

 network 13.13.13.0 0.0.0.3 

ospf 2 vpn-instance 2t1 

 import-route bgp 333 

 vpn-instance-capability simple

 area 0.0.0.0

 network 35.35.35.0 0.0.0.3 

 mpls lsr-id 3.3.3.3 

vlan 1 

mpls ldp 

interface LoopBack0 

 ip address 3.3.3.3 255.255.255.255

interface GigabitEthernet0/0 

 port link-mode route 

 combo enable copper

 ip address 13.13.13.2 255.255.255.252

 ospf network-type p2p

 mpls enable

 mpls ldp enable 

#

 interface GigabitEthernet0/1 

 port link-mode route

 combo enable copper 

# interface GigabitEthernet0/1.2

 ip binding vpn-instance 2t1

 ip address 35.35.35.1 255.255.255.252

 ospf network-type p2p

 vlan-type dot1q vid 2 

bgp 333 

 peer 2.2.2.2 as-number 333

 peer 2.2.2.2 connect-interface LoopBack0 

 address-family vpnv4

 peer 2.2.2.2 enable 

 ip vpn-instance 2t1 

 address-family ipv4 unicast

 import-route ospf 2 

return


CE-1交换

[CE_S1]dis cu

 version 7.1.075, Alpha 7571

 sysname CE_S1

ip vpn-instance 1t2 

 route-distinguisher 100:200

 vpn-target 100:200 200:100 import-extcommunity

 vpn-target 200:100 100:200 export-extcommunity 

#

 router id 4.4.4.4 

ospf 2 vpn-instance 1t2

 vpn-instance-capability simple

 area 0.0.0.0 network 24.24.24.0 0.0.0.3

 network 192.168.1.0 0.0.0.255 

vlan 1 

vlan 2 to 3 

 stp global enable 

#

interface NULL0 

interface LoopBack0

 ip address 4.4.4.4 255.255.255.255

interface Vlan-interface2 

 ip binding vpn-instance 1t2

 ip address 24.24.24.2 255.255.255.252

 ospf network-type p2p 

interface Vlan-interface3 

 ip binding vpn-instance 1t2

 ip address 192.168.1.1 255.255.255.0 

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan all

 combo enable fiber 

interface GigabitEthernet1/0/2

 port link-mode bridge port

 access vlan 3

 combo enable fiber 

return


CE-2交换

 [CE_S2]dis cu 

 version 7.1.075, Alpha 7571 

 sysname CE_S2 

ip vpn-instance 2t1

 route-distinguisher 100:200

 vpn-target 200:100 100:200 import-extcommunity

 vpn-target 100:200 200:100 export-extcommunity 

 router id 5.5.5.5 

ospf 2 vpn-instance 2t1 

 vpn-instance-capability simple

 area 0.0.0.0 

 network 35.35.35.0 0.0.0.3

 network 192.168.2.0 0.0.0.255

 mpls lsr-id 5.5.5.5 

 lldp global enable 

vlan 1 

vlan 2 to 3 

 stp global enable 

mpls ldp 

#

 interface NULL0 

interface Vlan-interface2

 ip binding vpn-instance 2t1

 ip address 35.35.35.2 255.255.255.252

 ospf network-type p2p 

interface Vlan-interface3

 ip binding vpn-instance 2t1

 ip address 192.168.2.1 255.255.255.0 

#

 interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan all

 combo enable fiber 

interface GigabitEthernet1/0/2

 port link-mode bridge

 port access vlan 3

 combo enable fiber

return 

2 个回答
粉丝:10人 关注:1人

工程导出来,然后重新提问,把工程作为附件付上来看下

已重新提问

zhiliao_rEKP2 发表时间:2019-07-24
水水 一段
粉丝:0人 关注:0人

老哥,你也搞调度数据网的?

你从哪看出来的

zhiliao_h5d7gY 发表时间:2024-01-29

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明