基于OSPF的MPLS动态流量工程和BGP4
2. OSPF:
R5-3640#sh ip rou
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is 10.10.15.1 to network 0.0.0.0
10.0.0.0/8 is variably subnetted, 16 subnets, 2 masks
O IA 10.10.3.0/24 [110/3] via 10.10.15.1, 00:07:55, FastEthernet0/0
O IA 10.10.11.0/24 [110/2] via 10.10.15.1, 00:07:55, FastEthernet0/0
O IA 10.10.10.1/32 [110/2] via 10.10.15.1, 00:07:55, FastEthernet0/0
O IA 10.10.12.0/24 [110/22] via 10.10.15.1, 00:07:55, FastEthernet0/0
O IA 10.10.13.0/24 [110/2] via 10.10.15.1, 00:07:55, FastEthernet0/0
C 10.10.15.0/24 is directly connected, FastEthernet0/0
O IA 10.10.22.0/24 [110/4] via 10.10.15.1, 00:07:55, FastEthernet0/0
O IA 10.10.20.2/32 [110/4] via 10.10.15.1, 00:07:55, FastEthernet0/0
O IA 10.10.23.0/24 [110/3] via 10.10.15.1, 00:07:55, FastEthernet0/0
O IA 10.10.24.0/24 [110/4] via 10.10.15.1, 00:07:55, FastEthernet0/0
O IA 10.10.26.0/24 [110/19] via 10.10.15.1, 00:07:55, FastEthernet0/0
O IA 10.10.30.3/32 [110/3] via 10.10.15.1, 00:07:55, FastEthernet0/0
O IA 10.10.33.0/24 [110/3] via 10.10.15.1, 00:07:56, FastEthernet0/0
O IA 10.10.40.4/32 [110/5] via 10.10.15.1, 00:07:56, FastEthernet0/0
C 10.10.50.0/24 is directly connected, Loopback0
O IA 10.10.100.0/24 [110/4] via 10.10.15.1, 00:07:56, FastEthernet0/0
O*IA 0.0.0.0/0 [110/2] via 10.10.15.1, 00:07:56, FastEthernet0/0
R5-3640#sh ip pos ospf da
OSPF Router with ID (10.10.50.5) (Process ID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
10.10.10.1 10.10.10.1 500 0x80000010 0x8D0D 1
10.10.50.5 10.10.50.5 504 0x80000011 0x7F62 2
Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
10.10.15.5 10.10.50.5 504 0x80000001 0xC697
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 10.10.10.1 501 0x8000000D 0xA270
10.10.3.0 10.10.10.1 775 0x80000001 0xA85E
10.10.10.1 10.10.10.1 501 0x80000007 0x3BBE
10.10.11.0 10.10.10.1 501 0x80000007 0x3ABF
10.10.12.0 10.10.10.1 501 0x80000007 0xF7EC
10.10.13.0 10.10.10.1 501 0x80000007 0x24D3
10.10.20.2 10.10.10.1 501 0x80000004 0xDC13
10.10.22.0 10.10.10.1 502 0x80000006 0xD617
10.10.23.0 10.10.10.1 502 0x80000009 0xBB2F
10.10.24.0 10.10.10.1 502 0x80000004 0xC429
10.10.26.0 10.10.10.1 502 0x80000004 0x4597
10.10.30.3 10.10.10.1 502 0x80000007 0x548E
10.10.33.0 10.10.10.1 502 0x80000007 0x5191
10.10.40.4 10.10.10.1 502 0x80000004 0xF5E2
10.10.100.0 10.10.10.1 502 0x80000007 0x7727
R5-3640# exit
[Connection to 10.10.50.5 closed by foreign host]
R1#sh ip rou
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
Gateway of last resort is not set
222.222.222.0/24 is variably subnetted, 2 subnets, 2 masks
C 222.222.222.2/32 is directly connected, Serial4/1/3
C 222.222.222.0/24 is directly connected, Serial4/1/3
100.0.0.0/24 is subnetted, 2 subnets
C 100.100.100.0 is directly connected, FastEthernet10/0/0
C 100.100.110.0 is directly connected, FastEthernet10/0/1
10.0.0.0/8 is variably subnetted, 19 subnets, 2 masks
O 10.10.3.0/24 [110/2] via 10.10.13.3, 00:05:57, POS4/0/0
C 10.10.11.0/24 is directly connected, FastEthernet2/0/0
C 10.10.10.1/32 is directly connected, Loopback0
C 10.10.12.0/24 is directly connected, Multilink1
C 10.10.13.0/24 is directly connected, POS4/0/0
C 10.10.12.2/32 is directly connected, Multilink1
C 10.10.15.0/24 is directly connected, FastEthernet2/0/1
--More-- O IA 10.10.22.0/24 [110/3] via 10.10.13.3, 00:05:58, POS4/0/0
O 10.10.20.2/32 [110/3] via 10.10.13.3, 00:05:58, POS4/0/0
O 10.10.23.0/24 [110/2] via 10.10.13.3, 00:05:58, POS4/0/0
O 10.10.24.0/24 [110/3] via 10.10.13.3, 00:05:58, POS4/0/0
O IA 10.10.26.0/24 [110/18] via 10.10.13.3, 00:05:58, POS4/0/0
O 10.10.30.3/32 [110/2] via 10.10.13.3, 00:05:58, POS4/0/0
O 10.10.33.0/24 [110/2] via 10.10.13.3, 00:05:58, POS4/0/0
S 10.10.40.4/32 is directly connected, Tunnel1
S 10.10.24.44/32 is directly connected, Tunnel2
O 10.10.50.5/32 [110/2] via 10.10.15.5, 00:08:23, FastEthernet2/0/1
O E2 10.10.99.0/24 [110/20] via 10.10.13.3, 00:05:58, POS4/0/0
O 10.10.100.0/24 [110/3] via 10.10.13.3, 00:05:59, POS4/0/0
R1#sh ip ospf nei
Neighbor ID Pri State Dead Time Address Interface
10.10.20.2 0 FULL/ - 00:00:36 10.10.12.2 Multilink1
10.10.30.3 0 FULL/ - 00:00:39 10.10.13.3 POS4/0/0
10.10.50.5 1 FULL/DR 00:00:38 10.10.15.5 FastEthernet2/0/1
R1#sh ip ospf inter
Multilink1 is up, line protocol is up
Internet Address 10.10.12.1/24, Area 0
Process ID 1, Router ID 10.10.10.1, Network Type POINT_TO_POINT, Cost: 21
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:03
Index 5/5, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 14
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
3. EBGP/IBGP
R2#sh ip bgp sum
BGP router identifier 10.10.20.2, local AS number 100
BGP table version is 100001, main routing table version 100001
100000 network entries and 100000 paths using 14500000 bytes of memory
1 BGP path attribute entries using 56 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP activity 100000/476 prefixes, 100000/0 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.10.10.1 4 100 37 4948 100001 0 0 00:15:11 0
10.10.30.3 4 100 32 2502 100001 0 0 00:28:55 0
150.150.150.2 4 400 179 59 100001 0 0 00:27:30 100000
R2#10.10.10.1
Trying 10.10.10.1 ...
% Connection refused by remote host
R2#10.10.10.1
Trying 10.10.10.1 ...
% Connection refused by remote host
R3#sh ip bgp sum
BGP router identifier 10.10.30.3, local AS number 100
BGP table version is 1, main routing table version 1
100000 network entries and 100000 paths using 14500000 bytes of memory
1 BGP path attribute entries using 56 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP activity 100000/390 prefixes, 100000/0 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.10.10.1 4 100 35 36 1 0 0 00:15:41 0
10.10.20.2 4 100 2503 33 1 0 0 00:29:15 100000
R3#exit
[Connection to 10.10.30.3 closed by foreign host]
R1#sh ip bgp sum
BGP router identifier 10.10.10.1, local AS number 100
BGP table version is 1, main routing table version 1
100000 network entries and 100000 paths using 14500000 bytes of memory
1 BGP path attribute entries using 56 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP activity 100000/112 prefixes, 100000/0 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.10.20.2 4 100 2459 19 1 0 0 00:15:43 100000
10.10.30.3 4 100 19 19 1 0 0 00:15:53 0
R1#
6. 结果:
拥有OSPF 的NSSA、STUB、等功能
拥有EBGP、IBGP的功能
拥有基于OSPF的流量工程
拥有承载10万条BGP路由表能力
0
相关文章