PDA

View Full Version : Thắc mắc về OSPF nhiều AREA



bkvtin
30-01-2009, 03:33 PM
http://www.freeimagehosting.net/uploads/1afd3e8640.jpg

-----------Config R1-------------------

R1#sh running-config
Building configuration...

Current configuration : 731 bytes
!
version 12.2
no service password-encryption
!
hostname R1
!
!
!
!
!
ip ssh version 1
no ip domain-lookup
!
!
interface FastEthernet0/0
ip address 192.168.1.5 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.1.1 255.255.255.252
duplex auto
speed auto
!
interface Serial2/0
no ip address
shutdown
!
interface Serial3/0
no ip address
shutdown
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 192.168.1.4 0.0.0.3 area 0
network 192.168.1.0 0.0.0.3 area 1
!
router ospf 2
log-adjacency-changes
!
ip classless
!
!
!
!
!
line con 0
logging synchronous
line vty 0 4
login
!
!
end

---------------------------------------

-----------Config R2-------------------

R2#SH RUN
Building configuration...

Current configuration : 834 bytes
!
version 12.2
no service password-encryption
!
hostname R2
!
!
!
!
!
ip ssh version 1
no ip domain-lookup
!
!
interface Loopback0
ip address 12.12.12.12 255.255.255.0
!
interface Loopback1
ip address 13.13.13.13 255.255.248.0
!
interface FastEthernet0/0
ip address 192.168.1.6 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
no ip address
shutdown
!
interface Serial3/0
no ip address
shutdown
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
router ospf 3
log-adjacency-changes
network 12.12.12.0 0.0.0.255 area 0
network 13.13.8.0 0.0.7.255 area 0
network 192.168.1.4 0.0.0.3 area 0
!
ip classless
!
!
!
!
!
line con 0
logging synchronous
line vty 0 4
login
!
!
end


---------------------------------------

-----------Config R3-------------------

R3#SH RUN
R3#SH RUNning-config
Building configuration...

Current configuration : 834 bytes
!
version 12.2
no service password-encryption
!
hostname R3
!
!
!
!
!
ip ssh version 1
no ip domain-lookup
!
!
interface Loopback0
ip address 10.10.10.10 255.255.255.0
!
interface Loopback1
ip address 11.11.11.11 255.255.252.0
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet1/0
ip address 192.168.1.2 255.255.255.252
duplex auto
speed auto
!
interface Serial2/0
no ip address
shutdown
!
interface Serial3/0
no ip address
shutdown
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
router ospf 4
log-adjacency-changes
network 10.10.10.0 0.0.0.255 area 1
network 11.11.8.0 0.0.3.255 area 1
network 192.168.1.0 0.0.0.3 area 1
!
ip classless
!
!
!
!
!
line con 0
logging synchronous
line vty 0 4
login
!
!
end

---------------------------------------


Cho em hỏi em cấu hình các con router như trên thì làm sao để nhận thông tin giữa các con router khác vùng area? Xin cám ơn

phamminhtuan
30-01-2009, 09:52 PM
Bạn nói rõ hơn về ý của câu "làm sao để nhận thông tin giữa các con router khác vùng area".
1. Thông tin của các router thì chỉ nằm trong vùng của nó [cụ thể LSA 1 và 2].
2. Nếu ý bạn muốn nói là mình sẽ Nối thêm vài router thuộc vủng khác vào area 1 thì bạn cần cấu hình thêm virtual-link. Vì các vùng khác sẽ thấy nhau khi router đi qua một vùng transit [area 0 là vùng transit hoặc virtual-link cũng được xem là trasit]

bkvtin
30-01-2009, 10:55 PM
Khi em config như trên thì khi show ip route ospf thì không hiện đầy đủ các đường mạng.

phamminhtuan
31-01-2009, 11:41 AM
Ý bạn muốn hiện đường mạng của cổng loopback luôn à hay muốn hiện đường nào.
Vì ospf học mạng qua trạng thái cổng nên bạn sẽ thấy cổng loopback luôn /32.
Nếu muốn hiện đúng loopback thì vào cổng đó thêm câu
R(config-if)#ip ospf network point-to-point