phamminhtuan
01-12-2008, 03:01 PM
http://img20.imageshack.us/img20/5766/10pb5.jpg (http://img20.imageshack.us/my.php?image=10pb5.jpg)
Hình 1:
Định tuyến như hình trên
R1#sh run
router rip
version 2
network 1.0.0.0
network 192.168.12.0
R2#sh run
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
redistribute rip subnets
network 2.2.2.0 0.0.0.255 area 0
network 192.168.23.0 0.0.0.255 area 0
!
router rip
version 2
network 192.168.12.0
Và R3 ta thấy
R3# sh ip route
O E2 192.168.12.0/24 [110/20] via 192.168.23.1, 00:00:09, FastEthernet1/0
O E2 1.0.0.0/8 [110/20] via 192.168.23.1, 00:00:09, FastEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 192.168.23.1, 00:32:05, FastEthernet1/0
C 192.168.23.0/24 is directly connected, FastEthernet1/0
Kết luận:
=> RIP có quảng bá những connected mà đã tham gia vào định tuyến RIP. Cả EIGRP và OSPF cũng vậy chỉ trừ IS-IS.
http://img386.imageshack.us/img386/4048/1331ca0.jpg (http://img386.imageshack.us/my.php?image=1331ca0.jpg)
Hình 2:
R1#sh run
interface Loopback1
ip address 1.1.1.1 255.255.255.0
ip router isis
interface FastEthernet0/0
ip address 192.168.12.1 255.255.255.0
ip router isis
router isis
net 49.1111.1111.1111.1111.00
R2#sh run
interface Loopback1
ip address 2.2.2.2 255.255.255.0
interface FastEthernet0/0
ip address 192.168.12.2 255.255.255.0
ip router isis
!
interface FastEthernet1/0
ip address 192.168.23.1 255.255.255.0
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
redistribute isis level-1 subnets
network 2.2.2.0 0.0.0.255 area 0
network 192.168.23.0 0.0.0.255 area 0
!
router isis
net 49.1111.2222.2222.2222.00
R2#sh ip route
C 192.168.12.0/24 is directly connected, FastEthernet0/0
1.0.0.0/24 is subnetted, 1 subnets
i L1 1.1.1.0 [115/20] via 192.168.12.1, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback1
C 192.168.23.0/24 is directly connected, FastEthernet1/0
R3#sh run
interface FastEthernet1/0
ip address 192.168.23.2 255.255.255.0
router ospf 1
router-id 3.3.3.3
network 192.168.23.0 0.0.0.255 area 0
R3#sh ip route
1.0.0.0/24 is subnetted, 1 subnets
O E2 1.1.1.0 [110/20] via 192.168.23.1, 00:24:51, FastEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 192.168.23.1, 00:24:51, FastEthernet1/0
C 192.168.23.0/24 is directly connected, FastEthernet1/0
Kết luận:
Qua đây ta thấy IS-IS redistribute vào OSPF chỉ những route mà R2 học được [không bao gồm connected mặc dầu connected cũng tham gia vào IS-IS].
Tiếp theo bài trên vì sao R3 chỉ nhận được route summary [Hình 1]
R3# sh ip route
O E2 192.168.12.0/24 [110/20] via 192.168.23.1, 00:00:09, FastEthernet1/0
O E2 1.0.0.0/8 [110/20] via 192.168.23.1, 00:00:09, FastEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 192.168.23.1, 00:32:05, FastEthernet1/0
C 192.168.23.0/24 is directly connected, FastEthernet1/0
Sau đó vào R1
R1(config)#router rip
R1(config-router)#no auto
Vào R3 xem
O E2 192.168.12.0/24 [110/20] via 192.168.23.1, 00:06:21, FastEthernet1/0
1.0.0.0/24 is subnetted, 1 subnets
O E2 1.1.1.0 [110/20] via 192.168.23.1, 00:00:52, FastEthernet1/0
Kết luận:
Vì R2 nhận summary từ RIP dẫn đến R3 cũng nhận summary từ OSPF vào
Ta thấy khi redistribute RIP vào OSPF thì mặc định có cả những route R2 học từ RIP và cả những connected tham gia vào RIP của R2.
Redistribute EIGRP vào OSPF cũng có cách đối xử tương tự như RIP vào OSPF.
File đính kèm.
Hình 1:
Định tuyến như hình trên
R1#sh run
router rip
version 2
network 1.0.0.0
network 192.168.12.0
R2#sh run
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
redistribute rip subnets
network 2.2.2.0 0.0.0.255 area 0
network 192.168.23.0 0.0.0.255 area 0
!
router rip
version 2
network 192.168.12.0
Và R3 ta thấy
R3# sh ip route
O E2 192.168.12.0/24 [110/20] via 192.168.23.1, 00:00:09, FastEthernet1/0
O E2 1.0.0.0/8 [110/20] via 192.168.23.1, 00:00:09, FastEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 192.168.23.1, 00:32:05, FastEthernet1/0
C 192.168.23.0/24 is directly connected, FastEthernet1/0
Kết luận:
=> RIP có quảng bá những connected mà đã tham gia vào định tuyến RIP. Cả EIGRP và OSPF cũng vậy chỉ trừ IS-IS.
http://img386.imageshack.us/img386/4048/1331ca0.jpg (http://img386.imageshack.us/my.php?image=1331ca0.jpg)
Hình 2:
R1#sh run
interface Loopback1
ip address 1.1.1.1 255.255.255.0
ip router isis
interface FastEthernet0/0
ip address 192.168.12.1 255.255.255.0
ip router isis
router isis
net 49.1111.1111.1111.1111.00
R2#sh run
interface Loopback1
ip address 2.2.2.2 255.255.255.0
interface FastEthernet0/0
ip address 192.168.12.2 255.255.255.0
ip router isis
!
interface FastEthernet1/0
ip address 192.168.23.1 255.255.255.0
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
redistribute isis level-1 subnets
network 2.2.2.0 0.0.0.255 area 0
network 192.168.23.0 0.0.0.255 area 0
!
router isis
net 49.1111.2222.2222.2222.00
R2#sh ip route
C 192.168.12.0/24 is directly connected, FastEthernet0/0
1.0.0.0/24 is subnetted, 1 subnets
i L1 1.1.1.0 [115/20] via 192.168.12.1, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback1
C 192.168.23.0/24 is directly connected, FastEthernet1/0
R3#sh run
interface FastEthernet1/0
ip address 192.168.23.2 255.255.255.0
router ospf 1
router-id 3.3.3.3
network 192.168.23.0 0.0.0.255 area 0
R3#sh ip route
1.0.0.0/24 is subnetted, 1 subnets
O E2 1.1.1.0 [110/20] via 192.168.23.1, 00:24:51, FastEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 192.168.23.1, 00:24:51, FastEthernet1/0
C 192.168.23.0/24 is directly connected, FastEthernet1/0
Kết luận:
Qua đây ta thấy IS-IS redistribute vào OSPF chỉ những route mà R2 học được [không bao gồm connected mặc dầu connected cũng tham gia vào IS-IS].
Tiếp theo bài trên vì sao R3 chỉ nhận được route summary [Hình 1]
R3# sh ip route
O E2 192.168.12.0/24 [110/20] via 192.168.23.1, 00:00:09, FastEthernet1/0
O E2 1.0.0.0/8 [110/20] via 192.168.23.1, 00:00:09, FastEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 192.168.23.1, 00:32:05, FastEthernet1/0
C 192.168.23.0/24 is directly connected, FastEthernet1/0
Sau đó vào R1
R1(config)#router rip
R1(config-router)#no auto
Vào R3 xem
O E2 192.168.12.0/24 [110/20] via 192.168.23.1, 00:06:21, FastEthernet1/0
1.0.0.0/24 is subnetted, 1 subnets
O E2 1.1.1.0 [110/20] via 192.168.23.1, 00:00:52, FastEthernet1/0
Kết luận:
Vì R2 nhận summary từ RIP dẫn đến R3 cũng nhận summary từ OSPF vào
Ta thấy khi redistribute RIP vào OSPF thì mặc định có cả những route R2 học từ RIP và cả những connected tham gia vào RIP của R2.
Redistribute EIGRP vào OSPF cũng có cách đối xử tương tự như RIP vào OSPF.
File đính kèm.