首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cisco BGP配置

Cisco BGP配置
EN

Network Engineering用户
提问于 2022-04-22 10:13:47
回答 1查看 107关注 0票数 0

我需要配置一个思科C1113 (路由器B),以便在两个网络之间启用BGP路由。

我配置了路由器B,但我需要确保我的配置是正确的.

下面是我建立的联系:

代码语言:javascript
复制
         ASN 50624                      ASN 50600           (vlan2)
          ______                         ______            10.1.0.10
10.0.0.0 |      | 169.254.253.1         |      |           10.1.0.11
---------|   A  |-----------------------|  B   |---------- 10.1.0.14
         |______|         169.254.253.2 |______|           10.1.0.24

connexion between router A and B is done through a SFP Fiber

我需要确保我来自ASN 50600的4个I可以通过网络10.0.0.0.

下面是我设置的配置:

接口方面:

代码语言:javascript
复制
enable
configure terminal
interface GigabitEthernet0/1/0
switchport mode access
switchport access vlan 2
interface vlan 2
ip address 10.1.0.10 255.255.255.0
description TS1
end
configure terminal
interface GigabitEthernet0/1/1
switchport mode access
switchport access vlan 2
interface vlan 2
ip address 10.1.0.11 255.255.255.0
description TS 2
end
configure terminal
interface GigabitEthernet0/1/2
switchport mode access
switchport access vlan 2
interface vlan 2
ip address 10.1.0.24 255.255.255.0
description H Preprod
end
configure terminal
interface GigabitEthernet0/1/3
switchport mode access
switchport access vlan 2
interface vlan 2
ip address 10.1.0.14 255.255.255.0
description H Prod
end

对于BGP:

代码语言:javascript
复制
enable 
configure terminal
ip route 10.1.0.0 255.255.255.0 null 0
interface GigabitEthernet0/0/0.2
encapsulation dot1q 2
ip address 169.254.253.2 255.255.255.0
end
enable
configure terminal
router bgp 50600
redistribute connected
redistribute static
bgp router-id 169.254.253.2
bgp log-neighbor-changes
neighbor 169.254.253.1 remote-as 50624
network 10.1.0.0 mask 255.255.255.0
address-family ipv4 unicast
redistribute connected
neighbor 169.254.253.1 default-originate
neighbor 169.254.253.1 advertisement-interval 25
network 10.1.0.0 mask 255.255.255.0
neighbor 169.254.253.1 activate
exit-address-family
address-family ipv4 multicast
redistribute connected
neighbor 169.254.253.1 default-originate
neighbor 169.254.253.1 advertisement-interval 25
network 10.1.0.0 mask 255.255.255.0
neighbor 169.254.253.1 activate
exit-address-family
neighbor 192.254.253.1 activate
end

由于我不熟悉BGP协议,如果您能帮我确保配置设置正确吗?

EN

回答 1

Network Engineering用户

回答已采纳

发布于 2022-04-22 14:46:25

配置为开关端口的接口没有IP地址。虚拟接口(VLAN 2)有一个IP地址,用作VLAN上主机的默认网关。

票数 2
EN
页面原文内容由Network Engineering提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://networkengineering.stackexchange.com/questions/78600

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档