R1、R2、R3建立ospf邻居,R1宣告环回口L0地址,R3宣告环回口L0地址;R1环回口和G0/0口绑定VRF:h3c,R1与R3使用环回口建立BGP邻居,发现BGP邻居不能建立,拓扑和配置如下:
R1:
ip vpn-instance h3c
route-distinguisher 1000:2
#
ospf 1 vpn-instance h3c
area 0.0.0.0
network 1.1.1.0 0.0.0.3
network 100.1.1.1 0.0.0.0
#
interface LoopBack0
ip binding vpn-instance h3c
ip address 100.1.1.1 255.255.255.255
#
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip binding vpn-instance h3c
ip address 1.1.1.1 255.255.255.252
#
bgp 100
#
ip vpn-instance h3c
peer 100.2.2.2 as-number 100
#
address-family ipv4 unicast
peer 100.2.2.2 enable
R2:
ospf 1
area 0.0.0.0
network 1.1.1.0 0.0.0.3
network 2.2.2.0 0.0.0.3
#
#
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 1.1.1.2 255.255.255.252
#
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 2.2.2.1 255.255.255.252
#
R3:
ospf 1
import-route direct
area 0.0.0.0
network 2.2.2.0 0.0.0.3
#
#
interface LoopBack0
ip address 100.2.2.2 255.255.255.255
#
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 2.2.2.2 255.255.255.252
#
bgp 100
peer 100.1.1.1 as-number 100
peer 100.1.1.1 connect-interface LoopBack0
#
address-family ipv4 unicast
peer 100.1.1.1 enable
#
(0)
最佳答案
哥们,地址族的的区别,接口绑定vpn实例后,接口地址会vpnv4的地址族,你拓扑里的R3在ipv4地址族,肯定不能互通
(0)
你还是要多学习学习
R1配置下 peer x.x.x.x connect-interface LoopBack0
R1和R3手动配置下 router-id
确保R1和R3 L0能互通
(1)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
你还是要多学习学习