本站已运行 15年9天12小时1分44秒

攻城狮论坛

作者: nailwilson
查看: 806|回复: 0

主题标签Tag

more +今日重磅推荐Recommend No.1

所有IT类厂商认证考试题库下载所有IT类厂商认证考试题库下载

more +随机图赏Gallery

【新盟教育】2023最新华为HCIA全套视频合集【网工基础全覆盖】---国sir公开课合集【新盟教育】2023最新华为HCIA全套视频合集【网工基础全覆盖】---国sir公开课合集
【新盟教育】网工小白必看的!2023最新版华为认证HCIA Datacom零基础全套实战课【新盟教育】网工小白必看的!2023最新版华为认证HCIA Datacom零基础全套实战课
原创_超融合自动化运维工具cvTools原创_超融合自动化运维工具cvTools
重量级~~30多套JAVA就业班全套 视频教程(请尽快下载,链接失效后不补)重量级~~30多套JAVA就业班全套 视频教程(请尽快下载,链接失效后不补)
链接已失效【超过几百G】EVE 国内和国外镜像 全有了 百度群分享链接已失效【超过几百G】EVE 国内和国外镜像 全有了 百度群分享
某linux大佬,积累多年的电子书(约300本)某linux大佬,积累多年的电子书(约300本)
乾颐堂现任明教教主Python完整版乾颐堂现任明教教主Python完整版
乾颐堂 教主技术进化论 2018-2019年 最新31-50期合集视频(各种最新技术杂谈视频)乾颐堂 教主技术进化论 2018-2019年 最新31-50期合集视频(各种最新技术杂谈视频)
Python学习视频 0起点视频 入门到项目实战篇 Python3.5.2视频教程 共847集 能学102天Python学习视频 0起点视频 入门到项目实战篇 Python3.5.2视频教程 共847集 能学102天
约21套Python视频合集 核心基础视频教程(共310G,已压缩)约21套Python视频合集 核心基础视频教程(共310G,已压缩)
最新20180811录制 IT爱好者-清风羽毛 - 网络安全IPSec VPN实验指南视频教程最新20180811录制 IT爱好者-清风羽毛 - 网络安全IPSec VPN实验指南视频教程
最新20180807录制EVE开机自启动虚拟路由器并桥接物理网卡充当思科路由器最新20180807录制EVE开机自启动虚拟路由器并桥接物理网卡充当思科路由器

[路由交换] IBGP路由为何重发分不进OSPF

[复制链接]
查看: 806|回复: 0
开通VIP 免金币+免回帖+批量下载+无广告
各位好,我在做将IBGP学来的路由重分发到OSPF时,却重分发不进去OSPF,这是什么原因啊,拓朴如下:
, g; d( x) r. l$ R- R0 R4 Z( U. O5 H. X: u& t
说明:1).R1和R2跑OSPF1 L( x. X) Y) R0 c5 Z4 ^; y
         2)R2和R4跑IBGP  n2 I9 T! o1 ?) W! L
         3)R4和R6跑OSPF
7 g- S$ k" u5 K7 I- C! X      在R2和R4的OSPF中将IBGP学来的路由重分发到OSPF中,但R1或R6却学不到相互的路由,也就是IBGP的路由没注入OSPF表# k; x. E& m. ]3 L$ n
% x0 ~9 j8 u6 Q8 d
这是为何呢??" _3 s# |2 i1 n$ @3 W6 o8 L& D4 p

% u4 T! p$ n* x如果R2TR4跑EBGP的话就可以成功注入路由到OSPF中,
5 y5 E# k4 U5 I# j' B; m2 c7 \& ~

: r) U2 }6 ?( \
8 _3 s% t1 f1 |, K# ~( M& F# ]* a9 h$ r6 Z
! J" S# ?+ z) i% U( g7 u
, `0 h! V) P2 q# ^  P5 a$ g9 R; Y7 Y
R1配置如下:
/ B# q- A( A' i* T+ e- [: f. U0 j5 N( ]+ b" m) i
inte**ce Loopback07 U' Z  g( r1 [+ b. M& h  U0 b
ip address 1.1.1.1 255.255.255.2552 R" f5 c8 |) }0 B+ A- ~& i
!& E/ w1 n4 b0 }1 K% t) s/ }. |* W9 G
inte**ce FastEthernet0/0) q1 Z& N$ G, s4 j
description To R2
0 [' t; A5 g. |. m( ~$ O" r0 r% ~ip address 172.16.1.1 255.255.255.252
0 Z* M0 x  ]% _4 H6 {, a1 I  oduplex auto4 Q5 @# I3 q. d
speed auto
0 F! t2 w% W, |( O' W!. P- T1 U! z6 E( h$ y  M
router ospf 1& h  g  @; \& R. l! M2 Z% [9 C
log-adjacency-changes
  z- i) o2 j9 ^redistribute connected subnets8 V- f& z) i1 m! G+ h: f
network 1.1.1.1 0.0.0.0 area 04 H6 a( h* w- b4 t* Z( ?4 u
network 172.16.1.0 0.0.0.3 area 0
% n/ j3 h) \9 U& b$ M. q!1 [$ X* z/ g$ C' d& s
R1路由表:  B4 o' U4 ^5 V2 K

2 S  ?) z# I: O$ T  x
! d1 t& M8 F: @- Q: c     1.0.0.0/32 is subnetted, 1 subnets7 A; T& K* W6 N- T: y+ z$ j* F1 {
C       1.1.1.1 is directly connected, Loopback0
$ ?  B; }* L5 ]: _$ ~, P3 l# m     2.0.0.0/32 is subnetted, 1 subnets- S& T/ M7 n! r2 ]# u( z3 [
O       2.2.2.2 [110/2] via 172.16.1.2, 00:11:46, FastEthernet0/00 @" Z+ j5 W' C$ q
     172.16.0.0/30 is subnetted, 3 subnets
8 J8 M) E0 E4 ]6 t: S$ e' V5 b& p/ EO E2    172.16.1.8 [110/20] via 172.16.1.2, 00:11:46, FastEthernet0/0
% P& C8 }8 @" O, YC       172.16.1.4 is directly connected, FastEthernet1/0
/ J) k0 M; i  _/ l, n& TC       172.16.1.0 is directly connected, FastEthernet0/0
% d3 j# L$ h: VR1#$ }5 F2 c' v/ p$ |9 ], r  a
6 O3 K. R! n: ]. |/ ^( L' [
R2配置:  E  I- X+ @$ l! m0 i

* x% W6 A" a1 K# G8 vinte**ce Loopback0
9 n3 s/ G4 O8 ^. e0 Fip address 2.2.2.2 255.255.255.2558 @9 A$ s" ^. |' f
!/ |' `* y$ ~. d2 g; P3 R
inte**ce FastEthernet0/08 r0 J- m9 K7 c2 E% [/ K
description To R1
$ j5 g3 n% n2 `$ rip address 172.16.1.2 255.255.255.252& C' c9 C5 E7 y1 `( B' j7 V
duplex auto
6 ^+ N2 G7 e: B3 Z! {) I& h8 tspeed auto
9 S  O, R& Q( g  s- y6 m!
( `# u6 K3 g+ b; Z& v8 K: rinte**ce FastEthernet1/0/ J& w4 j: Y9 o
description To R49 T0 u4 g' m0 J  q, Z$ o
ip address 172.16.1.9 255.255.255.252
* L$ B. l- k( pduplex auto& K. f& S& }: _. p5 W
speed auto+ u# c% r5 c0 c" ?- H
!8 A8 I% S: _9 u6 G
router ospf 1
0 k9 k6 `; G7 ilog-adjacency-changes
/ C! ^1 [. D. P+ r- a5 A8 Yredistribute connected subnets
3 s/ z/ a/ `' a2 i4 g) `redistribute bgp 1 subnets' a4 }$ m( F* |' q# V+ m5 e' [
network 2.2.2.2 0.0.0.0 area 0
6 t# P' ?( M6 a/ F5 Snetwork 172.16.1.0 0.0.0.3 area 0/ A& K2 v, a* Y
!! |9 D3 F! H; i9 Y  g% G
router bgp 1% \3 X. a# \1 ~* A8 N$ d9 m
no synchronization3 H& m. }3 H9 X; H# E
bgp log-neighbor-changes
/ l; J; X6 J; h$ _! T+ ], wnetwork 2.2.2.2 mask 255.255.255.255/ B: Q0 T, ^1 g# @
redistribute ospf 1
! w; ~* K" j: I" w/ r8 }7 y$ g% O1 F+ @neighbor 172.16.1.10 remote-as 1  j, ^/ Y! g% Z6 n+ z4 }. F
neighbor 172.16.1.10 next-hop-self
! a1 ]; ]4 y% j* p3 x7 D- ^no auto-summary
6 m7 o, J( v. a4 a- D! ^) C/ G) D) U, T% l
R2路由表:+ Q; e& R+ [. \+ P( j6 I
$ W- D: m( z4 R  z9 h
     1.0.0.0/32 is subnetted, 1 subnets5 C3 ?( n; a- W/ S# m3 S; M
O       1.1.1.1 [110/2] via 172.16.1.1, 00:12:03, FastEthernet0/0
: J8 ?. S( \: I     2.0.0.0/32 is subnetted, 1 subnets
# }* H" ~: t3 ^9 `5 ^9 w3 MC       2.2.2.2 is directly connected, Loopback0
" T1 _) b5 |8 O2 z) i     4.0.0.0/32 is subnetted, 1 subnets
; k2 T: h. o) E" ~" B5 ~B       4.4.4.4 [200/0] via 172.16.1.10, 00:08:52
4 j! B: W$ |4 C. e- m- x$ a     6.0.0.0/32 is subnetted, 1 subnets
6 i. f6 z# l) h0 d, a4 X4 q# sB       6.6.6.6 [200/2] via 172.16.1.10, 00:08:52
( g) [( r/ Y$ z% ^     172.16.0.0/30 is subnetted, 4 subnets
7 a6 a* S0 r: T4 UB       172.16.1.16 [200/0] via 172.16.1.10, 00:08:52
* c! t! w3 X' Y, i1 `* M3 @$ JC       172.16.1.8 is directly connected, FastEthernet1/0+ C! B/ [4 N* f* d# |- C
O E2    172.16.1.4 [110/20] via 172.16.1.1, 00:12:03, FastEthernet0/0" _# _0 S* X! U& a# q, \
C       172.16.1.0 is directly connected, FastEthernet0/0$ Z- j% {: v$ V
0 m. w9 Y5 E3 F8 @: V$ }6 z- L3 _

+ u% L  x8 T# b9 D7 R( P
5 Z- k7 l9 e# s6 ^3 H$ A, M0 V# d" m  Y, G7 O! O& k
R4配置:
+ L# r: b( v( {3 A
! _* w* l' ~* Z* w6 _3 ^' ainte**ce Loopback0
8 Q# @& S5 b# U& Mip address 4.4.4.4 255.255.255.255+ i( y* |% A1 X; q0 T; o7 a! B
!
4 a2 v1 c' U  X! p! {7 ginte**ce FastEthernet0/0
" j# h% P$ G7 u( Q5 D. H0 jdescription To R2# K7 ]% ]  q. ~& L, O& z9 e
ip address 172.16.1.10 255.255.255.252) o' w" S$ D8 o
duplex auto( i, Q7 q4 I7 V3 \9 {- c
speed auto
9 g" c/ m# T, u!
# S0 A9 \, s% m* N- @( Einte**ce FastEthernet1/04 B: f4 Z, Z6 Z# j& G4 t/ T
description To R69 v: Z  I6 h+ P$ M  A8 |6 Q
ip address 172.16.1.17 255.255.255.252+ X) Y" E# I4 E' y) _8 ?9 j
duplex auto# ]" W0 d1 |) x# v) Y) Q4 _) u1 `
speed auto- E( |' }; J7 ~
!
) I" B. r& A) o* frouter ospf 2
' X8 F5 a. S5 W, @6 ulog-adjacency-changes
: N: O8 _( l. S6 Aredistribute connected subnets
9 I9 Q8 G# j, \" R( d4 ?( rredistribute bgp 1 subnets
$ @) V2 e# I% c9 l& l# Inetwork 4.4.4.4 0.0.0.0 area 0
7 ?2 m4 @. Y& q5 g% D" w5 O7 c5 ]network 172.16.1.16 0.0.0.3 area 0
1 P4 {! G  Z! P% d9 d!, I. [7 e* m# t4 H, n# k
router bgp 1* ?8 N. l- {" B, h" J
no synchronization
5 G7 s3 L" U, Cbgp log-neighbor-changes# v7 `9 w+ p! \  Y  P
network 4.4.4.4 mask 255.255.255.255# U) m  f0 T/ h
redistribute ospf 2
% Z  ~: b6 t1 \neighbor 172.16.1.9 remote-as 1+ G  s5 ?, D8 \3 h* C
neighbor 172.16.1.9 next-hop-self
' y9 y. V+ W% l) sno auto-summary* @2 W2 K& \& ]  x0 b
R4路由表:1 a- U0 Y( o' d7 i: V+ @- I

/ c" q4 _# ^4 z3 {; k8 b! h     1.0.0.0/32 is subnetted, 1 subnets3 Q4 o/ A. d" K1 @" R/ I4 L  }- h
B       1.1.1.1 [200/2] via 172.16.1.9, 00:09:238 {# S, s/ X. E& F! V# x) x
     2.0.0.0/32 is subnetted, 1 subnets
4 f9 _6 r" r, V2 pB       2.2.2.2 [200/0] via 172.16.1.9, 00:09:23
9 d6 ?$ ]1 f' H% ?     4.0.0.0/32 is subnetted, 1 subnets
- [4 [( m. \" R- X; DC       4.4.4.4 is directly connected, Loopback0' h; U0 [5 t* A) }. \
     6.0.0.0/32 is subnetted, 1 subnets
: @) J$ {: P' R' UO       6.6.6.6 [110/2] via 172.16.1.18, 00:10:55, FastEthernet1/0. z) J* r% f: p: u  S) q
     172.16.0.0/30 is subnetted, 4 subnets
: |- t# n3 K! ]" O. B- dO E2    172.16.1.20 [110/20] via 172.16.1.18, 00:10:55, FastEthernet1/0
3 Y2 _- v. r: Y' w! p  Z! Y2 `C       172.16.1.16 is directly connected, FastEthernet1/0" Q8 v7 ]& N' |
C       172.16.1.8 is directly connected, FastEthernet0/0
: `9 L5 O# N8 L; T( lB       172.16.1.0 [200/0] via 172.16.1.9, 00:09:23
1 k( h4 U" F( t& ]/ T" u4 ?: U3 `+ Q6 N, s& P' F* @( l  s

( i" v! a. E8 \( b& KR6配置:$ b: h0 Z3 K4 }# f7 N  K
inte**ce Loopback0
' v, s: o+ ~' O0 Z# Nip address 6.6.6.6 255.255.255.255% Q% u9 z! w2 I/ A( |$ w% h* ?
!
4 L# }6 `# m4 e, y2 j4 b7 e" Sinte**ce FastEthernet0/0- _' l: o. b( J; I  \' o; ^
description To R4" X" M! @8 A0 y& _# `" w  B0 G
ip address 172.16.1.18 255.255.255.252$ S9 l3 [( r. _' y* t+ m
duplex auto, h) T" Z; u+ K0 Q8 ?
speed auto% {9 P3 x/ J# E2 v% q( d" B  E& K
!
7 A9 M' Z. ]- N$ ?3 I: w  |4 minte**ce FastEthernet1/02 p5 x0 Q  F5 M, G. U+ v
description To R5
6 H- v; ?/ S7 T& S6 v7 Nip address 172.16.1.22 255.255.255.2521 H2 V* o' T3 X& L6 V
duplex auto6 h# y" }* n$ a7 }$ S* A$ @
speed auto
" O- P& B' F/ V/ F1 V% ]!
6 ]9 \: {0 q8 N" J" @router ospf 2
' p- L1 J% O2 elog-adjacency-changes/ \& g. P# v' _0 {! V$ J% B
redistribute connected subnets5 Q3 \$ E3 V' M. U( x; D6 V# u
network 6.6.6.6 0.0.0.0 area 0
4 u% J' g6 j1 [/ fnetwork 172.16.1.16 0.0.0.3 area 0
3 w& f, H( |; ^2 u/ O8 n. T!; w! B/ C6 Q6 f3 U7 O
ip http server% g  S9 }, j& \: k/ _: Z, D  {
no ip http secure-se
* v# J6 B' E! V3 W$ A# I8 o. z! i4 r" c! r- W; M
R6路由表:
! o( |6 T( z3 p8 Z7 i0 Q5 ?! O1 h9 w$ U3 \3 w% p, C& A4 ^9 Q
     4.0.0.0/32 is subnetted, 1 subnets  |* ?- \, a" S. K9 A4 a* d. P( [
O       4.4.4.4 [110/2] via 172.16.1.17, 00:11:18, FastEthernet0/0
2 h! @% F" \- _$ Y/ Z4 [- ^0 \     6.0.0.0/32 is subnetted, 1 subnets
2 j1 w. c( o* o, lC       6.6.6.6 is directly connected, Loopback0. i: I, ]4 q, Y
     172.16.0.0/30 is subnetted, 3 subnets
0 Y3 ^% |4 ~7 e2 G4 d% LC       172.16.1.20 is directly connected, FastEthernet1/0
6 r; G/ l8 Z0 ~, R8 X8 F' ]$ dC       172.16.1.16 is directly connected, FastEthernet0/0
& A/ `' X4 j8 w/ l8 v: q1 ?7 `& l8 E; oO E2    172.16.1.8 [110/20] via 172.16.1.17, 00:11:18, FastEthernet0/0
& `; N! V0 N5 P3 y, oR6#
CCNA考试 官方正规报名 仅需1500元
回复 论坛版权

举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|无图浏览|手机版|网站地图|攻城狮论坛

GMT+8, 2025-7-25 11:57 , Processed in 0.116663 second(s), 16 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4 © 2001-2013 Comsenz Inc.

Designed by ARTERY.cn