IGP汇总试验
__________________RIP___________________________________________________________________________
b
1> Config ip address with R1.R2.R3.R4 and Loopback0 is 3.3.x.x/24 . ( x = Router Number )
Advertise Loopback0 with relevant IGP
The router can ping Loopback0 each other.and in routing-table the Loopback's netmask is 24.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
2> R4 & BB1 run RIP,R4 run RIP Version 2,R4 only advertise RIP update to Ethernet0.
And only receive 199.9.z.0/24 ( z = odd number ) from BB1.
Please use one naming standard ACL accomplish.( Name = WOLF )
At R4 . When you " show ip route rip ":
R 199.9.1.0/24 [120/1] via 150.100.1.1, 00:00:12, Ethernet0
R 199.9.5.0/24 [120/8] via 150.100.1.1, 00:00:12, Ethernet0
R 199.9.21.0/24 [120/1] via 150.100.1.1, 00:00:12, Ethernet0
3> When R4 not receice RIP update from BB1 after 160 seconds. set it "Possible Down".
4> R4 only send <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />3.3.0.0/16 to BB1.
__________________EIGRP_________________________________________________________________________
1> R2和R4的S1口运行EIGRP,AS=90
一旦发生拓扑变化。R2不向R4发送Query。
2> R2上建立Loopback8 :188.8.8.2/24;Loopback9 :188.8.9.2/24,将Lo8/Lo9宣告进EIGRP。
但R4只能收到一条汇总路由(要求精确汇总,不能包含路由黑洞)
3> 配置R4,使R4收到EIGRP路由的Metric为3200000(只能修改bandwidth)
R4#show ip route eigrp
3.0.0.0/24 is subnetted, 3 subnets
D 3.3.2.0 [90/3200000] via 3.3.24.2, 00:05:56, Serial1
188.8.0.0/23 is subnetted, 1 subnets
D 188.8.8.0 [90/3200000] via 3.3.24.2, 00:05:56, Serial1
4> 请将EIGRP占用R4 Serial1口的带宽调整为600K。
5> 在R4上将RIP和EIGRP做双向重分布。
__________________OSPF__________________________________________________________________________
1> 如图,运行OSPF。将各接口宣告进相应的Area中。
R3从BB2收到4条明细路由,请做相应的设置,使R2只能收到一条汇总路由。
2> R1和R3不能使用组播建立邻居关系,并且R1的S1口要成为DR;R3的S1口成为DROTHER。
3> 在R2上将EIGRP和OSPF做双向重分布。
进入OSPF的外部路由,设置Seed Cost=10,并且在传递过程中Cost要累加。
4> R1建立Loopback100 : 3.3.100.1/24,使其他路由器都能访问,但不能用network通告此接口。
5> 通过配置,使Area2出现LSA7,并且能产生LSA7默认路由,要求在Area2中出现尽可能少的LSA7。
en
conf t
hostname R5
!
logging queue-limit 100
!
ip subnet-zero
no ip domain lookup
!
!
!
!
interface Loopback0
ip address 3.3.5.5 255.255.255.0
!
interface Loopback1
ip address 199.9.1.1 255.255.255.0
!
interface Loopback4
ip address 199.9.4.1 255.255.255.0
!
interface Loopback5
ip address 199.9.5.1 255.255.255.0
!
interface Loopback21
ip address 199.9.21.1 255.255.255.0
!
interface Loopback22
ip address 199.9.22.1 255.255.255.0
!
interface Loopback177
ip address 177.7.16.5 255.255.255.0
ip ospf network point-to-point
!
interface Loopback178
ip address 177.7.17.5 255.255.255.0
ip ospf network point-to-point
!
interface Loopback179
ip address 177.7.18.5 255.255.255.0
ip ospf network point-to-point
!
interface Loopback180
ip address 177.7.19.5 255.255.255.0
ip ospf network point-to-point
!
interface F0/0
ip address 150.100.1.1 255.255.255.0
duplex full
no sh
!
interface Serial1/0
ip address 150.100.2.2 255.255.255.0
no sh
!
router ospf 110
router-id 3.3.5.5
log-adjacency-changes
network 150.100.2.0 0.0.0.255 area 0
network 177.7.0.0 0.0.255.255 area 0
!
router rip
network 150.100.0.0
network 199.9.1.0
network 199.9.4.0
network 199.9.5.0
network 199.9.21.0
network 199.9.22.0
!
ip http server
ip classless
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
End
配置:
R1#show run
Building configuration...
Current configuration : 1233 bytes
!
version 12.1
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
!
!
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
ip audit notify log
ip audit po max-events 100
!
!
!
!
!
!
!
interface Loopback0
ip address 3.3.1.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback100
ip address 3.3.100.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 3.3.12.1 255.255.255.0
serial restart-delay 0
clockrate 64000
!
interface Serial1/1
ip address 3.3.13.1 255.255.255.0
ip ospf network non-broadcast
serial restart-delay 0
clockrate 64000
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 0 range 177.7.16.0 255.255.252.0
area 1 virtual-link 3.3.3.3
area 2 nssa
redistribute connected subnets
network 3.3.12.0 0.0.0.255 area 2
network 3.3.13.0 0.0.0.255 area 1
neighbor 3.3.13.3
!
ip classless
ip http server
!
!
!
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 4
!
end
-----------------------------------------------------------------
R2#show run
Building configuration...
Current configuration : 1452 bytes
!
version 12.1
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R2
!
!
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
ip audit notify log
ip audit po max-events 100
!
!
!
!
!
!
!
interface Loopback0
ip address 3.3.2.2 255.255.255.0
ip ospf network point-to-point
!
interface Loopback8
ip address 188.88.8.2 255.255.255.0
!
interface Loopback9
ip address 188.88.9.2 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 3.3.12.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 3.3.24.2 255.255.255.0
ip summary-address eigrp 90 188.88.8.0 255.255.254.0 5
serial restart-delay 0
clockrate 64000
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 90
redistribute ospf 1 metric 100 0 255 1 1500
network 3.3.2.0 0.0.0.255
network 3.3.24.0 0.0.0.255
network 188.88.0.0
no auto-summary
eigrp log-neighbor-changes
!
router ospf 1
router-id 3.3.2.2
log-adjacency-changes
area 2 nssa no-redistribution default-information-originate
redistribute eigrp 90 metric 10 metric-type 1 subnets
network 3.3.12.0 0.0.0.255 area 2
!
ip classless
ip route 0.0.0.0 0.0.0.0 3.3.24.4
ip http server
!
!
!
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 4
!
end
---------------------------------------------------------------------------
R3#show run
Building configuration...
Current configuration : 1086 bytes
!
version 12.1
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R3
!
!
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
ip audit notify log
ip audit po max-events 100
!
!
!
!
!
!
!
interface Loopback0
ip address 3.3.3.3 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 150.100.2.3 255.255.255.0
serial restart-delay 0
clockrate 64000
!
interface Serial1/1
ip address 3.3.13.3 255.255.255.0
ip ospf network non-broadcast
ip ospf priority 0
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 0 range 177.7.16.0 255.255.252.0
area 1 virtual-link 3.3.1.1
network 3.3.13.0 0.0.0.255 area 1
network 150.100.2.0 0.0.0.255 area 0
!
ip classless
ip http server
!
!
!
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 4
!
end
-----------------------------------------------------------------
R4#show run
Building configuration...
Current configuration : 1297 bytes
!
version 12.1
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R4
!
!
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
ip audit notify log
ip audit po max-events 100
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 150.100.1.4 255.255.255.0
ip summary-address rip 3.3.0.0 255.255.0.0
duplex auto
speed auto
!
interface Serial1/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/1
bandwidth 1000
ip address 3.3.24.4 255.255.255.0
ip bandwidth-percent eigrp 90 60
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 90
redistribute rip metric 100 0 255 1 1500
network 3.3.24.0 0.0.0.255
no auto-summary
eigrp log-neighbor-changes
!
router rip
version 2
timers basic 30 160 180 180
redistribute eigrp 90
network 3.0.0.0
network 150.100.0.0
distribute-list wlof in FastEthernet0/0
no auto-summary
!
ip classless
ip http server
!
!
ip access-list standard wlof
ip access-list standard wolf
permit 199.99.1.0 0.0.0.255
permit 199.99.5.0 0.0.0.255
permit 199.99.21.0 0.0.0.255
!
!
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 4
!
end
------------------------------------------------------------
BB1#show run
Building configuration...
Current configuration : 1289 bytes
!
version 12.1
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname BB1
!
!
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
ip audit notify log
ip audit po max-events 100
!
!
!
!
!
!
!
interface Loopback0
ip address 3.3.5.5 255.255.255.0
!
interface Loopback1
ip address 199.99.1.1 255.255.255.0
!
interface Loopback4
ip address 199.99.4.1 255.255.255.0
!
interface Loopback5
ip address 199.99.5.1 255.255.255.0
!
interface Loopback21
ip address 199.99.21.1 255.255.255.0
!
interface Loopback22
ip address 199.99.22.1 255.255.255.0
!
interface FastEthernet0/0
ip address 150.100.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial1/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router rip
version 2
timers basic 30 160 180 180
network 150.100.0.0
network 199.99.1.0
network 199.99.4.0
network 199.99.5.0
network 199.99.21.0
network 199.99.22.0
no auto-summary
!
ip classless
ip http server
!
!
!
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 4
!
end
-----------------------------------------------------------------
BB2#show run
Building configuration...
Current configuration : 1445 bytes
!
version 12.1
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname BB2
!
!
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
ip audit notify log
ip audit po max-events 100
!
!
!
!
!
!
!
interface Loopback0
ip address 3.3.6.6 255.255.255.0
ip ospf network point-to-point
!
interface Loopback177
ip address 177.7.16.5 255.255.255.0
ip ospf network point-to-point
!
interface Loopback178
ip address 177.7.17.5 255.255.255.0
ip ospf network point-to-point
!
interface Loopback179
ip address 177.7.18.5 255.255.255.0
ip ospf network point-to-point
!
interface Loopback180
ip address 177.7.19.5 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 150.100.2.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
router-id 3.3.6.6
log-adjacency-changes
network 150.100.2.0 0.0.0.255 area 0
network 177.7.16.0 0.0.0.255 area 0
network 177.7.17.0 0.0.0.255 area 0
network 177.7.18.0 0.0.0.255 area 0
network 177.7.19.0 0.0.0.255 area 0
!
ip classless
ip http server
!
!
!
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 4
!
end
-------------------------------------------------------------------
R1#show ip route
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 3.3.12.2 to network 0.0.0.0
3.0.0.0/24 is subnetted, 4 subnets
C 3.3.1.0 is directly connected, Loopback0
C 3.3.12.0 is directly connected, Serial1/0
C 3.3.13.0 is directly connected, Serial1/1
C 3.3.100.0 is directly connected, Loopback100
177.7.0.0/16 is variably subnetted, 5 subnets, 2 masks
O 177.7.18.0/24 [110/129] via 3.3.13.3, 00:10:51, Serial1/1
O 177.7.19.0/24 [110/129] via 3.3.13.3, 00:10:51, Serial1/1
O 177.7.16.0/22 is a summary, 00:10:51, Null0
O 177.7.16.0/24 [110/129] via 3.3.13.3, 00:10:51, Serial1/1
O 177.7.17.0/24 [110/129] via 3.3.13.3, 00:10:51, Serial1/1
150.100.0.0/24 is subnetted, 1 subnets
O 150.100.2.0 [110/128] via 3.3.13.3, 00:10:51, Serial1/1
O*N2 0.0.0.0/0 [110/1] via 3.3.12.2, 00:10:52, Serial1/0
-------------------------------------------------------------------------
R2#show ip route
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 3.3.24.4 to network 0.0.0.0
3.0.0.0/24 is subnetted, 6 subnets
O N2 3.3.1.0 [110/20] via 3.3.12.1, 00:15:37, Serial1/0
C 3.3.2.0 is directly connected, Loopback0
C 3.3.12.0 is directly connected, Serial1/0
O IA 3.3.13.0 [110/128] via 3.3.12.1, 00:15:37, Serial1/0
C 3.3.24.0 is directly connected, Serial1/1
O N2 3.3.100.0 [110/20] via 3.3.12.1, 00:15:37, Serial1/0
188.88.0.0/16 is variably subnetted, 3 subnets, 2 masks
D 188.88.8.0/23 is a summary, 01:54:28, Null0
C 188.88.8.0/24 is directly connected, Loopback8
C 188.88.9.0/24 is directly connected, Loopback9
D EX 199.99.1.0/24 [170/26112000] via 3.3.24.4, 01:48:29, Serial1/1
177.7.0.0/22 is subnetted, 1 subnets
O IA 177.7.16.0 [110/193] via 3.3.12.1, 00:11:19, Serial1/0
D EX 199.99.22.0/24 [170/26112000] via 3.3.24.4, 01:48:30, Serial1/1
D EX 199.99.5.0/24 [170/26112000] via 3.3.24.4, 01:48:30, Serial1/1
150.100.0.0/24 is subnetted, 2 subnets
O IA 150.100.2.0 [110/192] via 3.3.12.1, 00:15:24, Serial1/0
D EX 150.100.1.0 [170/26112000] via 3.3.24.4, 01:48:30, Serial1/1
D EX 199.99.21.0/24 [170/26112000] via 3.3.24.4, 01:48:30, Serial1/1
D EX 199.99.4.0/24 [170/26112000] via 3.3.24.4, 01:48:30, Serial1/1
S* 0.0.0.0/0 [1/0] via 3.3.24.4
---------------------------------------------------------------------
R3#show ip route
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 3.3.13.1 to network 0.0.0.0
3.0.0.0/24 is subnetted, 5 subnets
O E2 3.3.1.0 [110/20] via 3.3.13.1, 00:15:54, Serial1/1
C 3.3.3.0 is directly connected, Loopback0
O IA 3.3.12.0 [110/128] via 3.3.13.1, 00:15:54, Serial1/1
C 3.3.13.0 is directly connected, Serial1/1
O E2 3.3.100.0 [110/20] via 3.3.13.1, 00:15:54, Serial1/1
177.7.0.0/16 is variably subnetted, 5 subnets, 2 masks
O 177.7.18.0/24 [110/65] via 150.100.2.2, 00:15:54, Serial1/0
O 177.7.19.0/24 [110/65] via 150.100.2.2, 00:15:54, Serial1/0
O 177.7.16.0/22 is a summary, 00:15:54, Null0
O 177.7.16.0/24 [110/65] via 150.100.2.2, 00:15:54, Serial1/0
O 177.7.17.0/24 [110/65] via 150.100.2.2, 00:15:54, Serial1/0
150.100.0.0/24 is subnetted, 1 subnets
C 150.100.2.0 is directly connected, Serial1/0
O*E2 0.0.0.0/0 [110/1] via 3.3.13.1, 00:15:54, Serial1/1
-------------------------------------------------------------------------
R4#show ip route
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 not set
3.0.0.0/24 is subnetted, 6 subnets
D EX 3.3.1.0 [170/26112000] via 3.3.24.2, 00:48:21, Serial1/1
D 3.3.2.0 [90/3200000] via 3.3.24.2, 01:51:50, Serial1/1
D EX 3.3.12.0 [170/26112000] via 3.3.24.2, 01:29:56, Serial1/1
D EX 3.3.13.0 [170/26112000] via 3.3.24.2, 00:16:42, Serial1/1
C 3.3.24.0 is directly connected, Serial1/1
D EX 3.3.100.0 [170/26112000] via 3.3.24.2, 00:48:21, Serial1/1
188.88.0.0/23 is subnetted, 1 subnets
D 188.88.8.0 [90/3200000] via 3.3.24.2, 01:53:49, Serial1/1
R 199.99.1.0/24 [120/1] via 150.100.1.1, 00:00:27, FastEthernet0/0
177.7.0.0/22 is subnetted, 1 subnets
D EX 177.7.16.0 [170/26112000] via 3.3.24.2, 00:12:23, Serial1/1
R 199.99.22.0/24 [120/1] via 150.100.1.1, 00:00:27, FastEthernet0/0
R 199.99.5.0/24 [120/1] via 150.100.1.1, 00:00:27, FastEthernet0/0
150.100.0.0/24 is subnetted, 2 subnets
D EX 150.100.2.0 [170/26112000] via 3.3.24.2, 00:16:28, Serial1/1
C 150.100.1.0 is directly connected, FastEthernet0/0
R 199.99.21.0/24 [120/1] via 150.100.1.1, 00:00:27, FastEthernet0/0
R 199.99.4.0/24 [120/1] via 150.100.1.1, 00:00:27, FastEthernet0/0
---------------------------------------------------------------------------
BB1#show ip route
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 not set
3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R 3.3.0.0/16 [120/1] via 150.100.1.4, 00:00:13, FastEthernet0/0
C 3.3.5.0/24 is directly connected, Loopback0
C 199.99.1.0/24 is directly connected, Loopback1
C 199.99.22.0/24 is directly connected, Loopback22
C 199.99.5.0/24 is directly connected, Loopback5
150.100.0.0/24 is subnetted, 1 subnets
C 150.100.1.0 is directly connected, FastEthernet0/0
C 199.99.21.0/24 is directly connected, Loopback21
C 199.99.4.0/24 is directly connected, Loopback4
---------------------------------------------------------------------------
转载于:https://blog.51cto.com/loveme23/100055