全部博文(131)
分类: WINDOWS
2009-04-19 11:00:32
Network |
IP Address |
Netmask |
Remark |
192.168.1.0/28 |
192.168.1.1 – 14 |
255.255.255.240 |
Subnet of C3662 |
192.168.1.16/28 |
192.168.1.17 – 30 |
255.255.255.240 |
Subnet of C2621-1 |
192.168.1.32/28 |
192.168.1.33 – 46 |
255.255.255.240 |
Subnet of C2621-2 |
192.168.1.48/28 |
192.168.1.49 – 62 |
255.255.255.240 |
Subnet of C2621-3 |
192.168.1.64/30 |
192.168.1.65 – 66 |
255.255.255.252 |
Link C3662 to C2621-1 |
192.168.1.68/30 |
192.168.1.69 – 70 |
255.255.255.252 |
Link C3662 to C2621-2 |
192.168.1.72/30 |
192.168.1.73 – 74 |
255.255.255.252 |
Link C3662 to C2621-3 |
Multi-area OSPF Network
C3662
#network 192.168.1.0
#network 192.168.1.64
#network 192.168.1.68
#network 192.168.1.72
C2621-1
#network 192.168.1.16
#network 192.168.1.64
C2621-2
#network 192.168.1.32
#network 192.168.1.68
C2621-3
#network 192.168.1.48
#network 192.168.1.72
Router#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
192.168.1.0/24 is variably subnetted, 7 subnets, 2 masks
O IA 192.168.1.0/28 [110/2] via 192.168.1.65, 00:00:01, FastEthernet0/1
C 192.168.1.16/28 is directly connected, FastEthernet0/0
O IA 192.168.1.32/28 [110/66] via 192.168.1.65, 00:00:01, FastEthernet0/1
O IA 192.168.1.48/28 [110/66] via 192.168.1.65, 00:00:01, FastEthernet0/1
C 192.168.1.64/30 is directly connected, FastEthernet0/1
O IA 192.168.1.68/30 [110/65] via 192.168.1.65, 00:00:01, FastEthernet0/1
O IA 192.168.1.72/30 [110/65] via 192.168.1.65, 00:00:01, FastEthernet0/1
4、SNMP的配置
SNMP(简单网络管理协议)——典型的应用层协议,用于管理器和管理代理通过网络来通信。管理器负责协助管理员收集网络重要信息,这些信息用于确定网络设备和网络整体运行是否正常。简单配置如下:
C2621-3(config)#snmp-server community geck-ro ro
;配置只读通信字符串,rw为读写
C2621-3(config)#snmp-server host 10.254.190.1 rw
;配置网管工作站地址(另外三个路由器的SNMP的配置参考C2621-3)
总结:配置多区域的OSPF时,要永远记住“非主干区域必须和主干区域直接连接在一起”这句话。C3662路由器按照给定条件宣布4条不同区域的OSPF分别和另外三个路由器的OSPF通信。