OSPF和RIP综合实验 有点难度!

本文详细介绍了OSPF及NSSA区域配置的实际案例,包括路由器间的动态路由协议配置、环回口设置、子网汇总等操作,并展示了不同路由器间的路由表及可达性测试。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

      ospf实验
R1>en
R1#show running-config           查看配置文件
hostname R1
interface Loopback0                 环回口地址
 ip address 172.16.0.1 255.255.255.0
!
interface Loopback1
 ip address 172.16.1.1 255.255.255.0
!
interface Loopback2
 ip address 172.16.2.1 255.255.255.0
!
interface Loopback3
 ip address 172.16.3.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 192.168.12.1 255.255.255.0
router rip                   rip动态路由协议 以跳数为度量值
 version 2                      版本2
 network 172.16.0.0           自己知道的网络号
 network 192.168.12.0
 no auto-summary                   不自动汇总
end
 
R2#show running-config
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.12.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.23.2 255.255.255.0
 duplex auto
 speed auto
!
router ospf 110                 ospf动态路由协议 以 cost 为度量值
 log-adjacency-changes              
 area 1 nssa no-summary                  NSSA区域
 summary-address 172.16.0.0 255.255.252.0            汇总地址
 redistribute rip subnets                                 把rip协议加入到 ospf里
 network 2.2.2.2 0.0.0.0 area 1
 network 192.168.12.0 0.0.0.255 area 1                网络号 后面跟反掩码 区域号
 network 192.168.23.0 0.0.0.255 area 1
!
router rip                         rip协议
 version 2                            
 redistribute ospf 110 metric 3            把ospf 协议打入到 rip协议里 度量值3
 network 2.0.0.0                    
 network 192.168.12.0
 network 192.168.23.0
 no auto-summary

end
 
R3#show running-config
hostname R3
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.23.3 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.34.3 255.255.255.0
 duplex auto
 speed auto
!
router ospf 110
 log-adjacency-changes
 area 1 nssa no-summary
 network 3.3.3.3 0.0.0.0 area 1
 network 192.168.23.0 0.0.0.255 area 1
 network 192.168.34.0 0.0.0.255 area 1
end
 

R4#show running-config
Building configuration...
hostname R4
!
interface Loopback0
 ip address 4.4.4.4 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.34.4 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.45.4 255.255.255.0
 duplex auto
 speed auto
!
router ospf 110
 log-adjacency-changes
 area 1 nssa no-summary
 network 4.4.4.4 0.0.0.0 area 0
 network 192.168.34.0 0.0.0.255 area 1
 network 192.168.45.0 0.0.0.255 area 0
end
 
R5:
hostname R5
interface Loopback0
 ip address 5.5.5.5 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.45.5 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.56.5 255.255.255.0
 duplex auto
 speed auto
!
router ospf 110
 log-adjacency-changes
 network 5.5.5.5 0.0.0.0 area 0
 network 192.168.45.0 0.0.0.255 area 0
 network 192.168.56.0 0.0.0.255 area 2
!
end
 
 
R6#show running-config
Building configuration...
hostname R6
!
interface Loopback0
 ip address 6.6.6.6 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.56.6 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.67.6 255.255.255.0
 duplex auto
 speed auto
!
router ospf 110
 log-adjacency-changes
 redistribute rip subnets
 network 6.6.6.6 0.0.0.0 area 2
 network 192.168.56.0 0.0.0.255 area 2
 network 192.168.67.0 0.0.0.255 area 2
!
router rip
 version 2
 redistribute ospf 110 metric 3
 network 6.0.0.0
 network 192.168.56.0
 network 192.168.67.0
 no auto-summary
!
end
 

R7#show running-config
hostname R7
!
interface Loopback0
 ip address 7.7.7.7 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.67.7 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
router rip
 version 2
 network 7.0.0.0
 network 192.168.67.0
 no auto-summary
!
end
R1>ping 7.7.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 7.7.7.7, timeout is 2 seconds:
!!!!!
R2的路由表
C    192.168.12.0/24 is directly connected, FastEthernet0/0
     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/11] via 192.168.23.3, 00:19:33, FastEthernet0/1
     172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
R       172.16.0.0/24 [120/1] via 192.168.12.1, 00:00:20, FastEthernet0/0
O       172.16.0.0/22 is a summary, 00:20:13, Null0
R       172.16.1.0/24 [120/1] via 192.168.12.1, 00:00:21, FastEthernet0/0
R       172.16.2.0/24 [120/1] via 192.168.12.1, 00:00:21, FastEthernet0/0
R       172.16.3.0/24 [120/1] via 192.168.12.1, 00:00:21, FastEthernet0/0
C    192.168.23.0/24 is directly connected, FastEthernet0/1
O    192.168.34.0/24 [110/20] via 192.168.23.3, 00:19:35, FastEthernet0/1
O*IA 0.0.0.0/0 [110/21] via 192.168.23.3, 00:19:36, FastEthernet0/1
 
R6学习到汇总路由 我的拓扑图显示 是R7 show ip route 看到
R    192.168.12.0/24 [120/3] via 192.168.67.6, 00:00:07, FastEthernet0/0
     2.0.0.0/32 is subnetted, 1 subnets
R       2.2.2.2 [120/3] via 192.168.67.6, 00:00:07, FastEthernet0/0
     3.0.0.0/32 is subnetted, 1 subnets
R       3.3.3.3 [120/3] via 192.168.67.6, 00:00:07, FastEthernet0/0
R    192.168.45.0/24 [120/3] via 192.168.67.6, 00:00:07, FastEthernet0/0
     4.0.0.0/32 is subnetted, 1 subnets
R       4.4.4.4 [120/3] via 192.168.67.6, 00:00:07, FastEthernet0/0
     5.0.0.0/32 is subnetted, 1 subnets
R       5.5.5.5 [120/3] via 192.168.67.6, 00:00:08, FastEthernet0/0
     6.0.0.0/32 is subnetted, 1 subnets
R       6.6.6.6 [120/1] via 192.168.67.6, 00:00:08, FastEthernet0/0
     172.16.0.0/22 is subnetted, 1 subnets
R       172.16.0.0 [120/3] via 192.168.67.6, 00:00:10, FastEthernet0/0

R    192.168.56.0/24 [120/1] via 192.168.67.6, 00:00:10, FastEthernet0/0
     7.0.0.0/32 is subnetted, 1 subnets
C       7.7.7.7 is directly connected, Loopback0
R    192.168.23.0/24 [120/3] via 192.168.67.6, 00:00:10, FastEthernet0/0
C    192.168.67.0/24 is directly connected, FastEthernet0/0
R    192.168.34.0/24 [120/3] via 192.168.67.6, 00:00:10, FastEthernet0/0

回答:发现有一条默认路由 做了NSSA 四类和五类都没了,三类就剩下一条默认路由 多了一条七类 看紫色表示 有七类LSA没有五类了
R3#show ip ospf database nssa-external
            OSPF Router with ID (3.3.3.3) (Process ID 110)
                Type-7 AS External Link States (Area 1)
  Routing Bit Set on this LSA
  LS age: 1938
  Options: (No TOS-capability, Type 7/5 translation, DC)
  LS Type: AS External Link
  Link State ID: 172.16.0.0 (External Network Number )
  Advertising Router: 2.2.2.2
  LS Seq Number: 80000001
  Checksum: 0xE6E5
  Length: 36
  Network Mask: /22
        Metric Type: 2 (Larger than any link state path)
        TOS: 0
        Metric: 20
        Forward Address: 2.2.2.2
        External Route Tag: 0

R3#show ip ospf database external
            OSPF Router with ID (3.3.3.3) (Process ID 110)

回答:R6上有 4.4.4.4 ASBR AR是5.5.5.5
R6#show ip ospf database asbr-summary
            OSPF Router with ID (6.6.6.6) (Process ID 110)
                Summary ASB Link States (Area 2)
  Routing Bit Set on this LSA
  LS age: 1488
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(AS Boundary Router)
  Link State ID: 4.4.4.4 (AS Boundary Router address)      
  Advertising Router: 5.5.5.5
  LS Seq Number: 80000001
  Checksum: 0x907D
  Length: 28
  Network Mask: /0
        TOS: 0  Metric: 10

因为做了NSSA后,R4即是ASBR也是ABR
华三通信(H3C)的IE认证属于H3C认证体系中的高级别认证,其机试部分通常具有较高的难度。华三IE认证考试主要面向具备扎实网络技术基础实际操作经验的技术人员,考核内容不仅涵盖理论知识,还强调对H3C设备的实际配置、调试与故障排查能力。 机试部分主要考察考生对路由交换技术的深入理解实践能力,包括但不限于以下内容: 1. **复杂网络环境的搭建**:考生需要在规定时间内完成多台H3C设备的配置,确保网络拓扑结构满足题目要求。 2. **路由协议的配置与优化**:包括静态路由、RIPOSPF、BGP等协议的配置,并能够根据实际场景进行优化[^1]。 3. **交换技术的应用**:如VLAN划分、生成树协议(STP)、链路聚合(LACP)、QoS策略配置等[^1]。 4. **网络安全与访问控制**:ACL配置、防火墙策略、NAT转换、AAA认证等安全机制的实施[^1]。 5. **高可用性与冗余设计**:如VRRP、HSRP、堆叠/集群等技术的配置。 6. **故障排除能力**:在已有的网络环境中查找并修复配置错误或设备故障,恢复网络服务[^1]。 考试形式通常为模拟真实网络环境,考生需在限定时间内完成多个任务节点的配置,并保证网络的连通性稳定性。由于没有明确的选择题或填空题,机试更注重动手能力问题解决能力。 以下是简单的CLI配置示例,展示如何配置基本的VLANTrunk端口: ```bash # 创建VLAN vlan 10 vlan-name Sales vlan 20 vlan-name HR # 将端口加入VLAN interface GigabitEthernet0/0/1 port link-type access port default vlan 10 interface GigabitEthernet0/0/2 port link-type access port default vlan 20 # 配置Trunk端口 interface GigabitEthernet0/0/24 port link-type trunk port trunk allow-pass vlan 10 20 ``` 总体来看,华三IE的机试难度较高,要求考生具备丰富的实战经验对H3C设备的熟练掌握。建议在备考过程中多进行实验练习,尤其是针对不同网络场景下的综合配置训练。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值