我模拟器模拟两台路由器使用vpn实例加bgp直接直连接口来建立邻居
bgp 65141
ip vpn-instance vpna
peer 1.1.1.1 as-number 65140
address-family ipv4 unicast
peer 1.1.1.1 enable
ip vpn-instance vpna
route-distinguisher 11:11
vpn-target 11:11 import-extcommunity
vpn-target 11:11 export-extcommunity
bgp 65140
ip vpn-instance vpna
peer 1.1.1.2 as-number 65141
address-family ipv4 unicast
peer 1.1.1.2 enable
ip vpn-instance vpna
route-distinguisher 11:11
vpn-target 11:11 import-extcommunity
vpn-target 11:11 export-extcommunity
[H3C-GigabitEthernet0/0]display this
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip binding vpn-instance vpna
ip address 1.1.1.1 255.255.255.0
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip binding vpn-instance vpna
ip address 1.1.1.2 255.255.255.0
配置在上面 没啥配置 这样配置邻居建立失败是为啥 起初我想建立ibgp 然后ibgp邻居建立失败 ,我换成ebgp 发现邻居依旧建立失败
(0)
互联通吗
(0)
<H3C>ping -vpn-instance vpna 1.1.1.2 Ping 1.1.1.2 (1.1.1.2): 56 data bytes, press CTRL+C to break 56 bytes from 1.1.1.2: icmp_seq=0 ttl=255 time=1.000 ms 56 bytes from 1.1.1.2: icmp_seq=1 ttl=255 time=0.000 ms 56 bytes from 1.1.1.2: icmp_seq=2 ttl=255 time=1.000 ms 56 bytes from 1.1.1.2: icmp_seq=3 ttl=255 time=0.000 ms 56 bytes from 1.1.1.2: icmp_seq=4 ttl=255 time=0.000 ms --- Ping statistics for 1.1.1.2 in VPN instance vpna --- 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
通的
<H3C>ping -vpn-instance vpna 1.1.1.2 Ping 1.1.1.2 (1.1.1.2): 56 data bytes, press CTRL+C to break 56 bytes from 1.1.1.2: icmp_seq=0 ttl=255 time=1.000 ms 56 bytes from 1.1.1.2: icmp_seq=1 ttl=255 time=0.000 ms 56 bytes from 1.1.1.2: icmp_seq=2 ttl=255 time=1.000 ms 56 bytes from 1.1.1.2: icmp_seq=3 ttl=255 time=0.000 ms 56 bytes from 1.1.1.2: icmp_seq=4 ttl=255 time=0.000 ms --- Ping statistics for 1.1.1.2 in VPN instance vpna --- 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
您好,请知:
无法建立BGP邻居,以下是排查要点,请参考:
1、检查直连是否能通。
2、检查指向的地址是否能通。
3、检查本端和对端是否已正确指向BGP邻居。
4、检查本端和对端VPN实例下的RT值是否有交集。
(0)
配置我都放在上面了 我可能没看出啥问题
配置我都放在上面了 我可能没看出啥问题
用你的配置复现了一下,报错就是你的router-id没有
<H3C>debugging bgp event
<H3C>t m
The current terminal is enabled to display logs.
<H3C>t d
The current terminal is enabled to display debugging logs.
<H3C>*Dec 15 14:46:11:523 2023 H3C BGP/7/DEBUG:
BGP.vpna: Router ID is not available, connection cannot be established.
*Dec 15 14:46:39:523 2023 H3C BGP/7/DEBUG:
BGP.vpna: Router ID is not available, connection cannot be established.
配置router id 后
[H3C]router id 1.1.1.1
[H3C]*Dec 15 14:47:06:523 2023 H3C BGP/7/DEBUG:
BGP.vpna: 1.1.1.2 Receive ConnectRetryTimer_Expires event in IDLE state.
*Dec 15 14:47:06:523 2023 H3C BGP/7/DEBUG:
BGP.vpna: 1.1.1.2 Receive ManualStart event in IDLE state.
*Dec 15 14:47:06:523 2023 H3C BGP/7/DEBUG:
BGP.vpna: 1.1.1.2 state has changed from IDLE to CONNECT.
*Dec 15 14:47:06:523 2023 H3C BGP/7/DEBUG:
BGP.vpna: 1.1.1.2 Session connect failed, error is Operation now in progress.
*Dec 15 14:47:20:763 2023 H3C BGP/7/DEBUG:
BGP.vpna: 1.1.1.2 Connection accepted.
*Dec 15 14:47:20:763 2023 H3C BGP/7/DEBUG:
BGP.vpna: 1.1.1.2 Receive TCPConnectionConfirmed event in CONNECT state.
*Dec 15 14:47:20:763 2023 H3C BGP/7/DEBUG:
BGP.vpna: Connected to 1.1.1.2.
*Dec 15 14:47:20:763 2023 H3C BGP/7/DEBUG:
BGP.vpna: 1.1.1.2 state has changed from CONNECT to OPENSENT.
*Dec 15 14:47:20:764 2023 H3C BGP/7/DEBUG:
BGP.vpna: 1.1.1.2 Receive ReceiveOpenMessage event in OPENSENT state.
*Dec 15 14:47:20:764 2023 H3C BGP/7/DEBUG:
BGP.vpna: 1.1.1.2 state has changed from OPENSENT to OPENCONFIRM.
*Dec 15 14:47:20:764 2023 H3C BGP/7/DEBUG:
BGP.vpna: 1.1.1.2 Receive ReceiveKeepAliveMsg event in OPENCONFIRM state.
%Dec 15 14:47:20:764 2023 H3C BGP/5/BGP_STATE_CHANGED:
BGP.vpna: 1.1.1.2 state has changed from OPENCONFIRM to ESTABLISHED.
*Dec 15 14:47:20:764 2023 H3C BGP/7/DEBUG:
BGP.vpna: 1.1.1.2 state has changed from OPENCONFIRM to ESTABLISHED.
*Dec 15 14:47:21:751 2023 H3C BGP/7/DEBUG:
BGP.vpna: 1.1.1.2 Receive ReceiveUpdateMsg event in ESTABLISHED state.
[H3C]dis bgp peer ipv4 vpn-instance vpna
BGP local router ID: 1.1.1.1
Local AS number: 65140
Total number of peers: 1 Peers in established state: 1
* - Dynamically created peer
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
1.1.1.2 65141 4 4 0 0 00:01:18 Established
[H3C]
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明