ISP 使用的 ISIS 链路状态路由协议
最编程
2024-04-07 09:15:20
...
ISIS
特点:较快的会聚速度,高稳定性,可扩展性 默认度量值都是10
NSAP地址 相当于ospf里的router-id 都是唯一的!通过LSP获取区域路径]
network-entity的格式:Area = 49.0001, System ID = aaaa.bbbb.cccc, NSEL = 00
area:为可变长度部分,范围为1-13个字节。
System ID:是IS或ES在区域内的唯一标识,总共为6个字节,可以使用MAC地址或由IP地址转化得到。
NSEL:service identifier,共一个字节。(00表示在ip环境)
AFI=49为私有地址空间,类似于私有的IP地址
R1>en
R1#conf t
R1(config)#inter loop 0 配置环回口
R1(config-if)#ip address 1.1.1.1 255.255.255.255
R1(config-if)#no shut
R1(config-if)#inter f0/0 物理地址
R1(config-if)#ip address 192.168.12.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#end
R1(config)#router isis
R1(config-router)#net 49.0001.0001.0001.0001.00 ISIS NET地址
R1(config-router)#ex
R1(config)#inter f0/0 运 行isis协议
R1(config-if)#ip router isis
R1(config-if)#inter loop 0
R1(config-if)#ip router isis
R1(config-if)#end
R1#show isis neighbors 查看isis邻居关系 发现有2个 优化一下
System Id Type Interface IP Address State Holdtime Circuit Id
R2 L1 Fa0/0 192.168.12.2 UP 8 R2.01
R2 L2 Fa0/0 192.168.12.2 UP 8 R2.01
R1#conf t
R1(config)#router isis
R1(config-router)#is-type level-1 把类型改成1
R1(config-router)#end
R1#show isi neighbors
System Id Type Interface IP Address State Holdtime Circuit Id
R1#show isi neighbors
System Id Type Interface IP Address State Holdtime Circuit Id 发现只有一个了
R2 L1 Fa0/0 192.168.12.2 UP 9 R2.01
R2配置:
R2>en
R2#conf t
R2(config)#inter f0/0
R2(config-if)#ip address 192.168.12.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#inter f0/1
R2(config-if)#ip address 192.168.23.2 255.255.255.0
R2(config-if)#inter loop 0
R2(config-if)#ip address 2.2.2.2 255.255.255.255
R2(config-if)#no shut
R2(config-if)#ex
R2(config)#router isis
R2(config-router)#net 49.0001.0002.0002.0002.00
R2(config-router)#ex
R2(config)#inter f0/0
R2(config-if)#ip router isis
R2(config-if)#inter f0/1
R2(config-if)#ip router isis
R2(config-if)#int loop 0
R2(config-if)#ip router isis
R3配置
R3>en
R3#conf t
R3(config)#inter loop 0
R3(config-if)#ip address 3.3.3.3 255.255.255.255
R3(config-if)#no shut
R3(config-if)#inter f0/0
R3(config-if)#ip address 192.168.23.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#inter f0/1
R3(config-if)#ip address 192.168.34.3 255.255.255.0
R3(config-if)#no shut
R3(config)#router isis
R3(config-router)#net 49.0002.0003.0003.0003.00
R3(config-router)#ex
R3(config)#inter f0/0
R3(config-if)#ip router isis
R3(config-if)#inter f0/1
R3(config-if)#ip router isis
R3(config-if)#inter loop 0
R3(config-if)#ip router isis
R3(config-if)#end
R3#show ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
i L2 192.168.12.0/24 [115/20] via 192.168.23.2, FastEthernet0/0
1.0.0.0/32 is subnetted, 1 subnets
i L2 1.1.1.1 [115/30] via 192.168.23.2, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
i L2 2.2.2.2 [115/20] via 192.168.23.2, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
4.0.0.0/32 is subnetted, 1 subnets
i L1 4.4.4.4 [115/20] via 192.168.34.4, FastEthernet0/1
C 192.168.23.0/24 is directly connected, FastEthernet0/0
C 192.168.34.0/24 is directly connected, FastEthernet0/1
R3#write
Building configuration...
[OK]
R4配置:
R4>en
R4#conf t
R4(config)#inter f0/0
R4(config-if)#ip address 192.168.34.4 255.255.255.0
R4(config-if)#no shut
R4(config-if)#inter loop 0
R4(config-if)#ip address 4.4.4.4 255.255.255.255
R4(config-if)#no shut
R4(config-if)#ex
R4(config)#router isis
R4(config-router)#net 49.0002.0004.0004.0004.00
R4(config-router)#ex
R4(config)#inter f0/0
R4(config-if)#ip router isis
R4(config-if)#inter loop 0
R4(config-if)#ip router isis
R4(config-if)#end
R4#show ip rout
*Mar 1 00:11:46.507: %SYS-5-CONFIG_I: Configured from console by console
R4#show ip rout
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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.34.3 to network 0.0.0.0
上一篇: 硬件理解说明 2
推荐阅读
-
ISP 使用的 ISIS 链路状态路由协议
-
基于 NFC 的无线电池管理 BMS - ● 主动读取内部传感器:利用 NFC 技术,BMS 能够主动读取内部传感器的数据 [... 考虑车辆外使用案例中的空闲状态场景:NFC 技术可用于处理闲置状态下的电池组读取,例如在第二次生命转移期间进行存储。 主动诊断读取:在邻近系统中部署了 BMS 的情况下,使用 NFC 技术进行主动诊断读取。 (ii) 系统结构 系统架构如图所示,在建立安全通道之前,需要对设备进行身份验证。数据链路通信层由 NDEF 记录处理,而数据存储可以是离线的,也可以是数据库中的在线存储。活动和空闲状态的诊断读数取决于设备和数据方向,需要与外部 NFC 阅读器进行通信。软件架构分为三层,包括硬件抽象层(HAL)、中间层(中间件)和应用层。HAL 处理硬件驱动组件,中间件执行设备验证,而应用层则由开发人员根据安全漏洞和格式扩展*定义。 为确保安全,系统采用了一个安全模型,为 BMS 和主动诊断读取情况格式化应用数据。安全考虑因素包括设备相互验证、使用安全通道(加密和防篡改)以及确保电池组内读数的安全。 考虑到不同的 BMS 拓扑,包括集中式、调制式、分布式和分散式,系统需要满足设备相互验证和使用安全通道的要求。对于每种拓扑结构,都必须考虑将性能开销降至最低。电池是封闭的,对其进行物理攻击不可行或成本太高。外部攻击可能也很困难。基于对称或非对称加密技术的自动验证可用于保护电池组读数。安全协议在验证阶段和会话密钥确认阶段采用双密钥加密,以抵御攻击。中间件在数据格式验证、确认和处理中发挥关键作用,确保数据传输安全。 (iii) 唤醒模型设计