cisco路由器配置,都配置了OSPF,其它路由器为何不知道其中一个路由器modem接口上的ip地址

这个外部路由器,担任ASBR的角色,把一个external route 192.168.1.0/24 通过一个OSPF 宣告:network 192.168.1.0 0.0.0.255 area 6就可以了吗? No! 要用redistribute connected 宣告才可以,缺省是External 2 路由。建议使用 area 0,不过在单一区域也无妨。
■网友
先说一下思路,区域问题。OSPF的骨干区域是区域0,在你的配置中没有看到。这个是OSPF网络规划的优先第一点。但我并未有看到你有任何说明。现在说拍错的方法,所有网络排错都是由低到高。PT上接口起来了就是绿色也就是说L1和L2正常。但是在工作环境下,首先确定物理层起来了。说白了线插好了?线用对了?总之是物理的没问题了那么看L2。链路层拍错在单纯以太网下很简单,除非STP挂起或者双工问题之外基本没有问题。看最关键的L3。比来复杂了,开始直接操作协议。那么看看接口的IP地址和子网掩码是否匹配。是否向网络通告了正确的地址。在OSPF网络下是否将正确的地址运行在了正确的区域。这些是最基本的,如果还有问题,看看是否启用了什么特性。如果可以,请你将路由器的配置也show出来。如果你对于协议比较熟悉可以直接在外部路由上DEBUG。
■网友
排错思路应该是这样,先看直连能不能通信,再看ospf邻居有没有起来,最后看ospf的配置和接口的配置对不对
■网友
我想应该提供下sh int modem7/0和sh ip ospf int。在几台设备上都提供下sh ip ospf database。
■网友
Router0路由器的running-config如下:Router#show running-config Building configuration...Current configuration : 782 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname Router!!!!!!!!!!!!!!!!!!interface FastEthernet0/0 ip address 10.10.10.1 255.255.255.0 duplex auto speed auto!interface FastEthernet1/0 no ip address duplex auto speed auto shutdown!interface Serial2/0 ip address 220.181.76.2 255.255.255.0 clock rate 64000!interface Serial3/0 no ip address shutdown!interface FastEthernet4/0 no ip address shutdown!interface FastEthernet5/0 no ip address shutdown!router ospf 20 log-adjacency-changes network 10.10.10.0 0.0.0.255 area 6 network 220.181.76.0 0.0.0.255 area 6!ip classless!!!!!!!line con 0!line aux 0!line vty 0 4 login!!!end外部路由器的running-config如下:Router#show running-config Building configuration...Current configuration : 958 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname Router!!!!ip dhcp excluded-address 192.168.1.1!ip dhcp pool BH network 192.168.1.0 255.255.255.0 default-router 192.168.1.1!!!username BHL password 0 BWL!!!!!!!!!!!interface FastEthernet0/0 no ip address duplex auto speed auto shutdown!interface FastEthernet1/0 no ip address duplex auto speed auto shutdown!interface Serial2/0 ip address 220.181.76.1 255.255.255.0!interface Serial3/0 no ip address shutdown!interface FastEthernet4/0 no ip address shutdown!interface FastEthernet5/0 no ip address shutdown!interface Modem7/0 ip address 192.168.1.1 255.255.255.0!router ospf 20 log-adjacency-changes network 220.181.76.0 0.0.0.255 area 6 network 192.168.1.0 0.0.0.255 area 6!ip classless!!!!!!!line con 0!line aux 0!line vty 0 4 login!!!end三层交换机的路由表如下: 10.0.0.0/24 is subnetted, 1 subnetsC 10.10.10.0 is directly connected, FastEthernet0/24 172.16.0.0/24 is subnetted, 8 subnetsC 172.16.1.0 is directly connected, FastEthernet0/23C 172.16.10.0 is directly connected, Vlan10C 172.16.20.0 is directly connected, Vlan20C 172.16.30.0 is directly connected, Vlan30C 172.16.40.0 is directly connected, Vlan40C 172.16.50.0 is directly connected, Vlan50C 172.16.60.0 is directly connected, Vlan60C 172.16.70.0 is directly connected, Vlan70O 220.181.76.0/24 via 10.10.10.1, 00:39:24, FastEthernet0/24router0路由器的路由表如下: 10.0.0.0/24 is subnetted, 1 subnetsC 10.10.10.0 is directly connected, FastEthernet0/0 172.16.0.0/24 is subnetted, 8 subnetsO 172.16.1.0 via 10.10.10.254, 00:21:52, FastEthernet0/0O 172.16.10.0 via 10.10.10.254, 00:21:52, FastEthernet0/0O 172.16.20.0 via 10.10.10.254, 00:21:52, FastEthernet0/0O 172.16.30.0 via 10.10.10.254, 00:21:52, FastEthernet0/0O 172.16.40.0 via 10.10.10.254, 00:21:52, FastEthernet0/0O 172.16.50.0 via 10.10.10.254, 00:21:52, FastEthernet0/0O 172.16.60.0 via 10.10.10.254, 00:21:52, FastEthernet0/0O 172.16.70.0 via 10.10.10.254, 00:21:52, FastEthernet0/0C 220.181.76.0/24 is directly connected, Serial2/0外部路由器的路由表如下: * 0.0.0.0/32 is subnetted, 1 subnetsC* 0.0.0.0 is directly connected, Modem7/0 10.0.0.0/24 is subnetted, 1 subnetsO 10.10.10.0 via 220.181.76.2, 00:22:41, Serial2/0 172.16.0.0/24 is subnetted, 8 subnetsO 172.16.1.0 via 220.181.76.2, 00:22:41, Serial2/0O 172.16.10.0 via 220.181.76.2, 00:22:41, Serial2/0O 172.16.20.0 via 220.181.76.2, 00:22:41, Serial2/0O 172.16.30.0 via 220.181.76.2, 00:22:41, Serial2/0O 172.16.40.0 via 220.181.76.2, 00:22:41, Serial2/0O 172.16.50.0 via 220.181.76.2, 00:22:41, Serial2/0O 172.16.60.0 via 220.181.76.2, 00:22:41, Serial2/0O 172.16.70.0 via 220.181.76.2, 00:22:41, Serial2/0C 192.168.1.0/24 is directly connected, Modem7/0C 220.181.76.0/24 is directly connected, Serial2/0情况如上,为什么三层交换机和router0路由器不知道外部路由器modem接口上的192.168.1.0段?


推荐阅读