你好,
你先把192.168.14.146 255.255.255.240 改为:
192.168.14.144 255.255.255.240,再试试。
你说的命令“area 1 range 192.168.14.128 255.255.255.224”不能输入,我想知道你的C2811是模拟器做实验还是在硬件配置的?
如果是硬件C2811,那么命令应该是支持的,
最基本的IOS“C2811-IPBASE-M”都应该支持。
当然,实在不行,你可以换个IOS再试试。我可以传给你。
做个实验,
两台C2801路由器:2801a、2801b,其中2801a是个边界路由器
相关配置如下:
2801a:
2801a(config)#do show run
Building configuration...
!
interface FastEthernet0/0
ip address 192.168.14.129 255.255.255.240
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.14.145 255.255.255.240
duplex auto
speed auto
no keepalive
!
interface FastEthernet0/3/3
switchport access vlan 11
!
interface Vlan11
ip address 172.21.110.30 255.255.255.0
!
router ospf 100
log-adjacency-changes
area 1 range 192.168.14.128 255.255.255.224 //路由汇总
network 172.21.110.0 0.0.0.255 area 0
network 192.168.14.128 0.0.0.15 area 1
network 192.168.14.144 0.0.0.15 area 1 //一定要申明两个区域的网段,这样才会被认为是边界路由器
!
!
2801a(config)#do show ip route | include 192.168.14
192.168.14.0/24 is variably subnetted, 3 subnets, 2 masks
C 192.168.14.128/28 is directly connected, FastEthernet0/0
O 192.168.14.128/27 is a summary, 00:00:24, Null0
C 192.168.14.144/28 is directly connected, FastEthernet0/1
然后找区域area 0路由器2801b,查看路由如下:
2801b#show ip route | include 192.168.14
192.168.14.0/27 is subnetted, 1 subnets
O IA 192.168.14.128 [110/2] via 172.21.110.30, 00:04:11, Vlan11
有问题,M我。
温馨提示:答案为网友推荐,仅供参考