OSPF的完全stub区域
来源:互联网 发布:网络项目创业包括哪些 编辑:程序博客网 时间:2024/04/28 00:29
1、OSPF的 完全stub区域
a、 完全存根区域没有外部路由和域间路由,只能通过默认路由
b、 区域内命令配置area 区域-id stub no-summary
R1配置
enconf thostname R1 int loopback 0ip address 1.1.1.1 255.255.255.0no shutdownexit int f0/0ip address 192.168.1.1 255.255.255.0no shutdownexit router ospf 1network 1.1.1.0 0.0.0.255 area 1network 192.168.1.0 0.0.0.255 area 1area 1 stub no-summaryexitend
R2配置
enconf thostname R2 int loopback 0ip address 2.2.2.2 255.255.255.0no shutdownexit int f0/0ip address 192.168.1.2 255.255.255.0no shutdownexit int f0/1ip address 192.168.2.1 255.255.255.0no shutdownexit router ospf 1network 2.2.2.0 0.0.0.255 area 0network 192.168.1.0 0.0.0.255 area 1network 192.168.2.0 0.0.0.255 area 0area 1 stub no-summaryexitend
R3配置
enconf thostname R3 int loopback 0ip address 3.3.3.3 255.255.255.0no shutdownexit int f0/1ip address 192.168.2.2 255.255.255.0no shutdownexit int f0/0ip address 202.168.1.1 255.255.255.0no shutdownexit router ospf 1network 192.168.2.0 0.0.0.255 area 0network 3.3.3.0 0.0.0.255 area 0redistribute static metric-type 1 subnetsexit ip route 4.4.4.0 255.255.255.0 f0/0end
R4配置
enconf thostname R4 int f0/0ip address 202.168.1.2 255.255.255.0no shutdownexit int loopback 0ip address 4.4.4.4 255.255.255.0no shutdownexit ip route 0.0.0.0 0.0.0.0 f0/0end
R1#show 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 - OSPFexternal 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 192.168.1.2 tonetwork 0.0.0.0
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
O*IA0.0.0.0/0 [110/2] via 192.168.1.2, 00:00:02, FastEthernet0/0
R1#
R1#show ip ospf database
OSPF Router with ID (1.1.1.1) (ProcessID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 33 0x80000003 0x00500e 2
2.2.2.2 2.2.2.2 33 0x80000002 0x005515 1
Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
192.168.1.2 2.2.2.2 33 0x80000001 0x00741f
Summary Net Link States (Area1)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 2.2.2.2 11 0x80000001 0x0057fe
解释:完全存根区域不能学习外部路由和其他区域的路由信息,只能通过默认路由0.0.0.0。
R2#show ip ospf database
OSPF Router with ID (2.2.2.2) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
2.2.2.2 2.2.2.2 49 0x80000004 0x0055f8 2
3.3.3.3 3.3.3.3 49 0x80000004 0x00a29d 2
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
192.168.2.2 3.3.3.3 49 0x80000001 0x007f07
Summary Net Link States (Area0)
Link ID ADV Router Age Seq# Checksum
192.168.1.0 2.2.2.2 44 0x80000001 0x009a51
1.1.1.1 2.2.2.2 44 0x80000002 0x00311f
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
2.2.2.2 2.2.2.2 67 0x80000002 0x005515 1
1.1.1.1 1.1.1.1 67 0x80000003 0x00500e 2
Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
192.168.1.2 2.2.2.2 67 0x80000001 0x00741f
Summary Net Link States (Area1)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 2.2.2.2 44 0x80000001 0x0057fe
R2#show 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 - OSPFexternal 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
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/2] via 192.168.1.1, 00:01:05, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/2] via 192.168.2.2, 00:00:48, FastEthernet0/1
4.0.0.0/24 is subnetted, 1 subnets
O E1 4.4.4.0 [110/21] via 192.168.2.2, 00:00:48, FastEthernet0/1
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, FastEthernet0/1
解释:非存根区域能学习外部路由和其他区域的路由信息。
- OSPF的完全stub区域
- OSPF的stub区域
- 熟悉OSPF的特殊区域:stub和stub totally
- OSPF特殊区域之STUB
- OSPF特殊区域之totally stub
- OSPF加密和 OSPF 完全的存根区域及NAT Route-MAP实验
- 多区域的OSPF
- OSPF的NSSA区域
- OSPF的区域和汇总
- 特殊的OSPF区域类型
- OSPF的多区域的配置
- ospf各种区域间的lsa总结
- ospf各种区域间的lsa
- OSPF多区域的简单配置
- 用GNS做多区域的OSPF
- 思科多区域OSPF的配置
- ospf多区域配置
- OSPF区域类型
- 控制反转与依赖注入
- jsonp跨域请求
- Android -- RecyclerView的使用
- 树莓派2安装Windows10
- OpenCV中IplImage/CvMat/Mat转化关系
- OSPF的完全stub区域
- 测试的初步认知
- 其他CTF题目(记录备忘)
- 面试题2:实现一个Singleton模式
- (模板)java文件读写与保留小数
- 里面maven时间不同环境下加载不同的配置文件2
- Autoit3 如何捕足控件
- 最大连续子序列算法(数组的连续子数组最大和(首尾不相连))
- JAVA异常处理