zhoubuhe 发表于 2018-4-22 09:21:09

OSPF重分布问题



OSPF的R8和R9 区域0
R9中有两个VLAN : VLAN10和VLAN20
R10和R11 分别是模拟两台PC
R10属于VLAN10R11属于VLAN20
VLAN10 和VLAN20 是OSPF区域10
R8 重分布lookpack接口,地址是11.11.11.11
问题: R10#ping 11.11.11.11 不通。R11#ping11.11.11.11 不通。
麻烦大家看看。配置有什么问题 。还是配置缺少什么。
配置如下:
=========================================================================
R8#show run
Building configuration...
Current configuration : 983 bytes
!
! Last configuration change at 21:52:57 EET Sat Apr 21 2018
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone EET 2 0
!
!         
no ip domain-lookup
ip cef   
no ipv6 cef
!         
!         
!         
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!         
vlan internal allocation policy ascending
!         

!         

interface Loopback1
ip address 11.11.11.11 255.255.255.255
!         
interface Ethernet0/0
no switchport
ip address 192.168.100.2 255.255.255.252
ip ospf 100 area 0
duplex auto
!         
interface Ethernet0/1
!         
interface Ethernet0/2
!         
interface Ethernet0/3
!         
router ospf 100
router-id 1.1.1.1
redistribute connected subnets
!         
ip forward-protocol nd
!         
no ip http server
no ip http secure-server
!         
!         
!         
!         
!         
!         
control-plane
!         
!         
line con 0
logging synchronous
line aux 0
line vty 0 4
!         
!         
end
==========================================================================

R9#show run
Building configuration...
Current configuration : 1207 bytes
!
! Last configuration change at 22:17:10 EET Sat Apr 21 2018
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname ABR
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone EET 2 0
!

!         
no ip domain-lookup
ip cef   
no ipv6 cef
!         
!         
!         
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!         
vlan internal allocation policy ascending
!         
!         
!         
!         
!         
!         
interface Ethernet0/0
no switchport
ip address 192.168.100.1 255.255.255.252
ip ospf 100 area 0
duplex auto
!         
interface Ethernet0/1
switchport access vlan 10
switchport mode access
!         
interface Ethernet0/2
switchport access vlan 20
switchport mode access
!         
interface Ethernet0/3
!         
interface Vlan10
ip address 192.168.10.1 255.255.255.0
ip ospf 100 area 10
!         
interface Vlan20
ip address 192.168.20.1 255.255.255.0
ip ospf 100 area 10
!         
router ospf 100
router-id 2.2.2.2
network 192.168.10.0 0.0.0.255 area 10
network 192.168.20.0 0.0.0.255 area 10
!         
ip forward-protocol nd
!         
no ip http server
no ip http secure-server
!         
!         
!   

=======================================================================
模拟PC
Router11(config)#do show run
Building configuration...
Current configuration : 1043 bytes
!
! Last configuration change at 22:19:52 EET Sat Apr 21 2018
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone EET 2 0
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
no ip routing
!         
!         
!         
!
no ip cef
no ipv6 cef
!         
multilink bundle-name authenticated
!         
!      
!         
redundancy
!         
!      
!         
interface Ethernet0/0
ip address 192.168.20.10 255.255.255.0
no ip route-cache
!         
interface Ethernet0/1
no ip address
no ip route-cache
shutdown
!         
interface Ethernet0/2
no ip address
no ip route-cache
shutdown
!         
interface Ethernet0/3
no ip address
no ip route-cache
shutdown
!         
ip default-gateway 192.168.20.1
ip forward-protocol nd
!         
!         
no ip http server
no ip http secure-server
!         
!         
!         
!         
control-plane
!         
!         
!         
!         
!         
!         
!         
!         
line con 0
logging synchronous
line aux 0
line vty 0 4
login   
transport input none
!         
!         
end            
=============================================================================
模拟PC
Router10(config)#do show run
Building configuration...
Current configuration : 1001 bytes
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone EET 2 0
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
no ip routing
!
!         
!
!         
no ip domain lookup
no ip cef
no ipv6 cef
!         
multilink bundle-name authenticated
!         
!   
redundancy
!      
!         
interface Ethernet0/0
ip address 192.168.10.10 255.255.255.0
no ip route-cache
!         
interface Ethernet0/1
no ip address
no ip route-cache
shutdown
!         
interface Ethernet0/2
no ip address
no ip route-cache
shutdown
!         
interface Ethernet0/3
no ip address
no ip route-cache
shutdown
!         
ip default-gateway 192.168.10.1
ip forward-protocol nd
!         
!         
no ip http server
no ip http secure-server
!         
!         
!         
!         
control-plane
!         
!         
!      
!         
line con 0
logging synchronous
line aux 0
line vty 0 4
login   
transport input none
!         
!         
end      
=============================
为什么R10 和R11 ping不通 11.11.11.11
说明原因。谢谢

qq5576492 发表于 2018-4-22 10:28:47

看一下R9有沒有11.11.11.11的路由

zhoubuhe 发表于 2018-4-22 23:36:56

R9有一条11.11.11.11 OSPF外部的路由。怎么就是不通。麻烦大家了
页: [1]
查看完整版本: OSPF重分布问题