腾讯云专线通过物理专线将腾讯云和用户 IDC 连接,用户在腾讯云侧完成专线网关、专用通道等配置后,还需要在本地 IDC 进行路由配置(推荐使用三层子接口对接腾讯云侧)。本文将对如何在本地 IDC 使用思科 C 系列交换机配置 BGP 路由展开介绍。
注意
本文仅介绍与腾讯云专线相关的用户本地路由配置项,其他不做介绍,如需了解其他内容请查阅本地路由器文档或者联系各自路由器商咨询。
路由配置
说明
通过 BGP 连通的对接参数,建议 Keepalive 及 holdtime 参数使用缺省配置,Holdtime 参数设置为:60 * 3=180秒(此时 keepalive 报文周期60s)。
# 配置物理接口interfaces <interface_number>description <interface_desc>no shutdownno switchportspeed <interface_speed>duplex fullno negotiation autoend# 配置三层子接口interface interface-number.subnumberdescription <vlan_description>encapsulation dot1q <vlanid>ip address <subinterface_ipaddress> <subinterface_netmask>bfd interval <value> min_rx <value> multiplier <value> //BFD参数end# 设置 eBGProuter bgp <as_number>bgp router-id <router_id>neighbor <bgp_peer_address> remote-as <bgp_peer_as_number>neighbor <bgp_peer_address> password encrypted <bgp_auth_key>neighbor <bgp_peer_address> description <bgp_peer_desc>neighbor <bgp_peer_address> activateneighbor <bgp_peer_address> fall-over bfd single-hop //设置 BGP 联动 BFD