我有上面的场景,我从 ISP 获得了公共 IP 子网,74.100.100.0/23
并且我已经配置了 eBGP 和 iBGP,如图所示,我已经在我的 LAN 端的 HSRP 中配置了这些公共 IP。ISP 向我们发送 BGP 默认路由。
BGP 配置
router bgp 3xxxx8
router-id 192.168.255.20
log-neighbor-changes
address-family ipv4 unicast
network 74.100.100.0/23
neighbor 74.1.1.69
remote-as 1xxxx2
timers 10 30
address-family ipv4 unicast
send-community
neighbor 192.168.255.19
remote-as 3xxxx8
update-source loopback0
address-family ipv4 unicast
next-hop-self
HSRP 配置
interface Vlan100
hsrp version 2
hsrp 101
preempt
priority 110
ip 74.100.100.1
此时一切正常!现在我请求了更多的公共 IP,所以 ISP 提供了新的公共池74.200.200.0/23
,我在这里进行了配置,如下所示。
BGP 配置(新子网)
router bgp 3xxxx8
router-id 192.168.255.20
log-neighbor-changes
address-family ipv4 unicast
network 74.100.100.0/23
network 74.200.200.0/23
neighbor 74.1.1.69
remote-as 1xxxx2
timers 10 30
address-family ipv4 unicast
send-community
neighbor 192.168.255.19
remote-as 3xxxx8
update-source loopback0
address-family ipv4 unicast
next-hop-self
在 HSRP 端(我将 /23 划分为两个 /24 子网以隔离流量)
子网 74.200.200.0/24
interface Vlan101
hsrp version 2
hsrp 101
preempt
priority 110
ip 74.200.200.1
现在 HSRP 工作正常,但不知何故我无法从外部 ping 74.200.200.1。看起来路由表中某处缺少某些东西。我已在OSPF
如下所示发布公共子网。
interface Vlan101
no ip ospf passive-interface
ip router ospf 100 area 0.0.0.0
我的 BGP 表视图
core1# sh ip bgp
BGP routing table information for VRF default, address family IPv4 Unicast
BGP table version is 122, local router ID is 192.168.255.20
Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best
Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-injected
Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup
Network Next Hop Metric LocPrf Weight Path
*>e0.0.0.0/0 74.1.1.69 0 1xxxx2 i
* i 192.168.255.19 100 0 1xxxx2 i
* i74.100.100.0/23 192.168.255.19 100 0 i
*>l 0.0.0.0 100 32768 i
l74.200.200.0/23 0.0.0.0 100 32768 i
我在广告列表中没有看到新的子网
core1# show bgp ip unicast neighbors 74.1.1.69
Network Next Hop Metric LocPrf Weight Path
*>l74.100.100.0/23 0.0.0.0
100 32768 i
我的 OSPF 表视图
74.100.100.0/23, ubest/mbest: 2/0
*via 192.168.250.2, Eth2/12, [110/41], 12w6d, ospf-100, intra
*via 192.168.250.14, Eth2/11, [110/41], 12w6d, ospf-100, intra
74.200.200.0/24, ubest/mbest: 2/0
*via 192.168.250.2, Eth2/12, [110/41], 02:03:03, ospf-100, intra
*via 192.168.250.14, Eth2/11, [110/41], 02:03:03, ospf-100, intra
我也clear ip bgp
对我的同龄人做过。在 HSRP 中,我划分了/23
子网,/24
所以您认为我应该network 74.200.200.0/24
在 BGP 配置中使用吗?