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)
R1配置下 peer x.x.x.x connect-interface LoopBack0
R1和R3手動配置下 router-id
確保R1和R3 L0能互通
(1)
哥們,地址族的的區別,接口綁定vpn實例後,接口地址會vpnv4的地址族,你拓撲裏的R3在ipv4地址族,肯定不能互通
(0)
你還是要多學習學習
你還是要多學習學習
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作
舉報
×
侵犯我的權益
×
侵犯了我企業的權益
×
抄襲了我的內容
×
原文鏈接或出處
誹謗我
×
對根叔社區有害的內容
×
不規範轉載
×
舉報說明