CCIE-10-IPv6-TS

news2024/11/28 22:48:08

目录

  • 实验条件
    • 网络拓朴
  • 环境配置
  • 开始Troubleshooting
    • 问题1. R25和R22邻居关系没有建立
    • 问题2. 去往R25网络的下一跳地址不存在、不可用
    • 问题3. 去往目标网络的下一跳地址不存在、不可用

实验条件

网络拓朴

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

环境配置

在我的资源里可以下载(就在这篇文章的开头也可以下载)
在这里插入图片描述

开始Troubleshooting

检查所有接口的配置

Phone#show ipv int br
Ethernet0/0            [up/up]
    FE80::A8BB:CCFF:FE02:3000
    2001:CC1E:BEEF:25::100
Ethernet0/1            [administratively down/down]
    unassigned
Ethernet0/2            [administratively down/down]
    unassigned
Ethernet0/3            [administratively down/down]
    unassigned

R25#show ipv int br
Ethernet0/0            [up/up]
    FE80::A8BB:CCFF:FE02:2000
    2001:CC1E:BEEF:25::1
Ethernet0/1            [up/up]
    FE80::A8BB:CCFF:FE02:2010
    2001:CC1E:BEEF:2225::18
Loopback0              [up/up]
    FE80::A8BB:CCFF:FE02:2000
    2001:CC1E:BEEF::2225
R25#

R22#show ipv int br
Ethernet0/0            [up/up]
    unassigned
Ethernet0/1            [up/up]
    FE80::A8BB:CCFF:FE01:F010
    2001:CC1E:BEEF:2225::17
Ethernet1/0            [up/up]
    FE80::A8BB:CCFF:FE01:F001
    2001:CC1E:ABCD:2622::13

其它的两台路由器没有密码,应该是不需要调整的,
直接ping Server4的IPv6地址

Phone#ping 2001:BEEF:CAFE::26
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:BEEF:CAFE::26, timeout is 2 seconds:
UUUUU
Success rate is 0 percent (0/5)
Phone#traceroute 2001:BEEF:CAFE::26
Type escape sequence to abort.
Tracing the route to 2001:BEEF:CAFE::26

  1 2001:CC1E:BEEF:25::1 !U  !U  !U 
Phone#

ping包出现U表示目标不可达的意思, 就是路由器在查询路由表的时候没有目标网络的路由表,而且也没有默认路由,这时就回给源路由器一个目标不可达,源路由器就显示一个U的标记;

数据包到达了网关R25之后就没有下一跳的路由了,查询R25的路由相关配置

R25#show ipv route      
IPv6 Routing Table - default - 6 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
       B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
       H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
       IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
       ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
       RL - RPL, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
       OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
       la - LISP alt, lr - LISP site-registrations, ld - LISP dyn-eid
       lA - LISP away, a - Application
LC  2001:CC1E:BEEF::2225/128 [0/0]
     via Loopback0, receive
C   2001:CC1E:BEEF:25::/64 [0/0]
     via Ethernet0/0, directly connected
L   2001:CC1E:BEEF:25::1/128 [0/0]
     via Ethernet0/0, receive
C   2001:CC1E:BEEF:2225::/64 [0/0]
     via Ethernet0/1, directly connected
L   2001:CC1E:BEEF:2225::18/128 [0/0]
     via Ethernet0/1, receive
L   FF00::/8 [0/0]
     via Null0, receive
R25#show run | s router          
router bgp 65101
 bgp log-neighbor-changes
 neighbor 123.1.2.17 remote-as 12345
 !
 address-family ipv4
  neighbor 123.1.2.17 activate
 exit-address-family
 !
 address-family ipv6
  network 2001:CC1E:BEEF::2225/128
  network 2001:CC1E:BEEF:25::/64
  neighbor 123.1.2.17 activate
 exit-address-family

没有目标的路由信息,路由协议采用的是BGP协议, 查看一下BGP邻居状态情况

R25#show ip bgp summary
BGP router identifier 202.65.1.5, local AS number 65101
BGP table version is 1, main routing table version 1

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
123.1.2.17      4        12345       0       0        1    0    0 never    Idle

发现R25和R22的邻居关系没有起来、查询R22的路由表信息,发现在R22上有和R26的邻居关系且有目标网络的路由信息且能ping通到目标网络。

R22#show ipv route
IPv6 Routing Table - default - 6 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
       B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
       H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
       IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
       ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
       RL - RPL, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
       OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
       la - LISP alt, lr - LISP site-registrations, ld - LISP dyn-eid
       lA - LISP away, a - Application
B   2001:BEEF:CAFE::/64 [20/0]
     via FE80::A8BB:CCFF:FE02:10, Ethernet1/0
C   2001:CC1E:ABCD:2622::/64 [0/0]
     via Ethernet1/0, directly connected
L   2001:CC1E:ABCD:2622::13/128 [0/0]
     via Ethernet1/0, receive
C   2001:CC1E:BEEF:2225::/64 [0/0]
     via Ethernet0/1, directly connected
L   2001:CC1E:BEEF:2225::17/128 [0/0]
     via Ethernet0/1, receive
L   FF00::/8 [0/0]
     via Null0, receive
R22#show ip bgp summary
BGP router identifier 134.22.22.22, local AS number 12345
BGP table version is 6, main routing table version 6
5 network entries using 720 bytes of memory
5 path entries using 420 bytes of memory
2/2 BGP path/bestpath attribute entries using 320 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1484 total bytes of memory
BGP activity 6/0 prefixes, 6/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
123.1.2.18      4        65101       0       0        1    0    0 never    Idle (Admin)
123.3.3.3       4        12345       0       0        1    0    0 never    Idle
123.5.5.5       4        12345       0       0        1    0    0 never    Idle
134.21.21.21    4        12345       0       0        1    0    0 never    Idle
134.56.78.14    4        10001      22      19        6    0    0 00:15:40        5
R22#ping 2001:BEEF:CAFE::26
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:BEEF:CAFE::26, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R22#

那么只需要解决R22和R25的邻居关系且把目标的网络让R25接收就可以达到我们的目标。

问题1. R25和R22邻居关系没有建立

之前看了R25的BGP配置没有发现异常、继续检查R22的BGP配置

R22#show run | s router bgp
router bgp 12345
 bgp router-id 134.22.22.22
 bgp log-neighbor-changes
 neighbor PEER peer-group
 neighbor PEER remote-as 12345
 neighbor 2001:CC1E:ABCD:2622::12 remote-as 10001
 neighbor 123.1.2.18 remote-as 65101
 neighbor 123.1.2.18 shutdown
 neighbor 123.3.3.3 peer-group PEER
 neighbor 123.5.5.5 peer-group PEER
 neighbor 134.21.21.21 peer-group PEER
 neighbor 134.56.78.14 remote-as 10001
 !
 address-family ipv4
  neighbor PEER next-hop-self
  no neighbor 2001:CC1E:ABCD:2622::12 activate
  neighbor 123.1.2.18 activate
  neighbor 123.3.3.3 activate
  neighbor 123.5.5.5 activate
  neighbor 134.21.21.21 activate
  neighbor 134.56.78.14 activate
  neighbor 134.56.78.14 route-map MED out
 exit-address-family
 !        
 address-family ipv6
  neighbor 2001:CC1E:ABCD:2622::12 activate
  neighbor 123.1.2.18 activate
  neighbor 123.1.2.18 route-map NEXT-HOP out
 exit-address-family
R22#

发现邻居关系被 Shutdown了,no shutdown就可以了


R22#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R22(config)#router bgp 12345
R22(config-router)#no neighbor 123.1.2.18 shutdown
R22(config-router)#
%BGP-5-ADJCHANGE: neighbor 123.1.2.18 Up 
R22(config-router)#do show ip bgp summary
BGP router identifier 134.22.22.22, local AS number 12345
BGP table version is 6, main routing table version 6
5 network entries using 720 bytes of memory
5 path entries using 420 bytes of memory
2/2 BGP path/bestpath attribute entries using 320 bytes of memory
2 BGP AS-PATH entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1508 total bytes of memory
BGP activity 8/0 prefixes, 8/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
123.1.2.18      4        65101       6       8        6    0    0 00:00:10        0
123.3.3.3       4        12345       0       0        1    0    0 never    Idle
123.5.5.5       4        12345       0       0        1    0    0 never    Idle
134.21.21.21    4        12345       0       0        1    0    0 never    Idle
134.56.78.14    4        10001      27      25        6    0    0 00:20:47        5
R22(config-router)#

发现R22和R25的邻居关系已经正常,查看BGP路由信息

R22(config-router)#do show bgp ipv6 unicast        
BGP table version is 2, local router ID is 134.22.22.22
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, 
              x best-external, a additional-path, c RIB-compressed, 
              t secondary path, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>   2001:BEEF:CAFE::/64
                       2001:CC1E:ABCD:2622::12
                                                              0 10001 i
 *    2001:CC1E:BEEF::2225/128
                       ::FFFF:123.1.2.18
                                                0             0 65101 i
 *    2001:CC1E:BEEF:25::/64
                       ::FFFF:123.1.2.18
                                                0             0 65101 i
R25#show bgp ipv6 unicast 
BGP table version is 3, local router ID is 202.65.1.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, 
              x best-external, a additional-path, c RIB-compressed, 
              t secondary path, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *    2001:BEEF:CAFE::/64
                       ::FFFF:123.1.2.17
                                                              0 12345 10001 i
 *>   2001:CC1E:BEEF::2225/128
                       ::                       0         32768 i
 *>   2001:CC1E:BEEF:25::/64
                       ::                       0         32768 i
R25#

问题2. 去往R25网络的下一跳地址不存在、不可用

修改去往R25网络的下一跳地址,查询到R25上有配置了一个route-map 下一跳地址是R25的E0/1

R25#show run | s router
router bgp 65101
 bgp log-neighbor-changes
 neighbor 123.1.2.17 remote-as 12345
 !
 address-family ipv4
  neighbor 123.1.2.17 activate
 exit-address-family
 !
 address-family ipv6
  network 2001:CC1E:BEEF::2225/128
  network 2001:CC1E:BEEF:25::/64
  neighbor 123.1.2.17 activate
 exit-address-family
R25#show route-map
route-map NEXT-HOP, permit, sequence 10
  Match clauses:
  Set clauses:
     ipv6 next-hop 2001:CC1E:BEEF:2225::18
  Policy routing matches: 0 packets, 0 bytes
R25#

next-hop 2001:CC1E:BEEF:2225::18 这个IP地址是R25的 e0/1口,那说明这个route-map是为了修改BGP邻居访问network 2001:CC1E:BEEF::2225/128network 2001:CC1E:BEEF:25::/64时指定下一跳为自己的e0/1口,那说明这个route-map应该配置在out的方向上

R25#conf t
R25(config)#router bgp 65101
R25(config-router-af)#address-family ipv6
R25(config-router-af)#neighbor 123.1.2.17 route-map NEXT-HOP out
R25(config-router-af)#do show run | s router bgp
router bgp 65101
 bgp log-neighbor-changes
 neighbor 123.1.2.17 remote-as 12345
 !
 address-family ipv4
  neighbor 123.1.2.17 activate
 exit-address-family
 !
 address-family ipv6
  network 2001:CC1E:BEEF::2225/128
  network 2001:CC1E:BEEF:25::/64
  neighbor 123.1.2.17 activate
  neighbor 123.1.2.17 route-map NEXT-HOP out
 exit-address-family
R25(config-router-af)#

在R22的路由器上,查询BGP表

R22#show bgp ipv6 unicast
BGP table version is 4, local router ID is 134.22.22.22
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, 
              x best-external, a additional-path, c RIB-compressed, 
              t secondary path, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>   2001:BEEF:CAFE::/64
                       2001:CC1E:ABCD:2622::12
                                                              0 10001 i
 *>   2001:CC1E:BEEF::2225/128
                       2001:CC1E:BEEF:2225::18
                                                0             0 65101 i
 *>   2001:CC1E:BEEF:25::/64
                       2001:CC1E:BEEF:2225::18
                                                0             0 65101 i
R22#show ipv route
IPv6 Routing Table - default - 8 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
       B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
       H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
       IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
       ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
       RL - RPL, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
       OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
       la - LISP alt, lr - LISP site-registrations, ld - LISP dyn-eid
       lA - LISP away, a - Application
B   2001:BEEF:CAFE::/64 [20/0]
     via FE80::A8BB:CCFF:FE02:10, Ethernet1/0
C   2001:CC1E:ABCD:2622::/64 [0/0]
     via Ethernet1/0, directly connected
L   2001:CC1E:ABCD:2622::13/128 [0/0]
     via Ethernet1/0, receive
B   2001:CC1E:BEEF::2225/128 [20/0]
     via FE80::A8BB:CCFF:FE02:2010, Ethernet0/1
B   2001:CC1E:BEEF:25::/64 [20/0]
     via FE80::A8BB:CCFF:FE02:2010, Ethernet0/1
C   2001:CC1E:BEEF:2225::/64 [0/0]
     via Ethernet0/1, directly connected
L   2001:CC1E:BEEF:2225::17/128 [0/0]
     via Ethernet0/1, receive
L   FF00::/8 [0/0]
     via Null0, receive

下一跳已经正常,且已经加进路由表中

问题3. 去往目标网络的下一跳地址不存在、不可用

修改去往目标网络的下一跳地址,查询到R22上的BGP有配置了一个route-map NEXT-HOP

R22#show run | s router bgp
router bgp 12345
 bgp router-id 134.22.22.22
 bgp log-neighbor-changes
......
 !
 address-family ipv6
 ......
  neighbor 123.1.2.18 route-map NEXT-HOP out
 exit-address-family
R22#show route-map NEXT-HOP
route-map NEXT-HOP, permit, sequence 10
  Match clauses:
  Set clauses:
  Policy routing matches: 0 packets, 0 bytes
R22#

却是什么都没有配置、这导致R25去往目标网络时的下跳变成了::FFFF:123.1.2.17这个无效地址,因此配置一下set next-hop解决这个问题(ipv4建邻居,传ipv6路由和ipv6建邻居,传ipv4路由的下一跳都会出现问题需要手动修改)

R22#conf t
R22(config)#route-map NEXT-HOP permit 10
R22(config-route-map)#set ipv next-hop 2001:CC1E:BEEF:2225::17
R22(config-route-map)#do show route-map NEXT-HOP
route-map NEXT-HOP, permit, sequence 10
  Match clauses:
  Set clauses:
     ipv6 next-hop 2001:CC1E:BEEF:2225::17
  Policy routing matches: 0 packets, 0 bytes
R22(config-route-map)#

在R25上查看BGP路由表

R25#show bgp ipv6 unicast        
BGP table version is 4, local router ID is 202.65.1.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, 
              x best-external, a additional-path, c RIB-compressed, 
              t secondary path, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>   2001:BEEF:CAFE::/64
                       2001:CC1E:BEEF:2225::17
                                                              0 12345 10001 i
 *>   2001:CC1E:BEEF::2225/128
                       ::                       0         32768 i
 *>   2001:CC1E:BEEF:25::/64
                       ::                       0         32768 i
R25#show ipv route 
IPv6 Routing Table - default - 7 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
       B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
       H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
       IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
       ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
       RL - RPL, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
       OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
       la - LISP alt, lr - LISP site-registrations, ld - LISP dyn-eid
       lA - LISP away, a - Application
B   2001:BEEF:CAFE::/64 [20/0]
     via FE80::A8BB:CCFF:FE01:F010, Ethernet0/1
LC  2001:CC1E:BEEF::2225/128 [0/0]
     via Loopback0, receive
C   2001:CC1E:BEEF:25::/64 [0/0]
     via Ethernet0/0, directly connected
L   2001:CC1E:BEEF:25::1/128 [0/0]
     via Ethernet0/0, receive
C   2001:CC1E:BEEF:2225::/64 [0/0]
     via Ethernet0/1, directly connected
L   2001:CC1E:BEEF:2225::18/128 [0/0]
     via Ethernet0/1, receive
L   FF00::/8 [0/0]
     via Null0, receive
R25#

去往目标网络的下一跳已经正常,现在测试一下网络是否连通

Phone#ping 2001:BEEF:CAFE::26
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:BEEF:CAFE::26, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Phone#traceroute 2001:BEEF:CAFE::26
Type escape sequence to abort.
Tracing the route to 2001:BEEF:CAFE::26

  1 2001:CC1E:BEEF:25::1 0 msec 0 msec 1 msec
  2 2001:CC1E:BEEF:2225::17 0 msec 0 msec 1 msec
  3 2001:CC1E:ABCD:2622::12 0 msec 1 msec 0 msec
  4 2001:BEEF:CAFE::26 1 msec 1 msec 0 msec
Phone#

网络通了,目标达成。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1576740.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

深入MyBatis的动态SQL:概念、特性与实例解析

MyBatis 是一个优秀的持久层框架,它支持定制化 SQL、存储过程以及高级映射。 MyBatis 避免了几乎所有的 JDBC 代码和手动设置参数以及获取结果集。它可以使用简单的 XML 或注解来配置和映射原始类型、接口和 Java POJO,即普通的 Java 对象为数据库中的记…

【数据结构与算法】:快速排序和冒泡排序

一,快速排序 快速排序是一种比较复杂的排序算法,它总共有4种实现方式,分别是挖坑法,左右"指针"法,前后"指针"法,以及非递归的快速排序,并且这些算法中也会涉及多种优化措施…

IntelliJ IDEA 2024.1 更新亮点汇总:全面提升开发体验

IntelliJ IDEA 2024.1 更新亮点汇总:全面提升开发体验 文章目录 IntelliJ IDEA 2024.1 更新亮点汇总:全面提升开发体验摘要引言 IntelliJ IDEA 2024.1 的新增功能主要亮点全行代码完成 最终的支持 Java 22 功能新航站楼 贝塔编辑器中的粘滞线 人工智能助…

Ubuntu 20.04.06 PCL C++学习记录(十八)

[TOC]PCL中点云分割模块的学习 学习背景 参考书籍:《点云库PCL从入门到精通》以及官方代码PCL官方代码链接,,PCL版本为1.10.0,CMake版本为3.16 学习内容 PCL中实现欧式聚类提取。在点云处理中,聚类是一种常见的任务,它将点云数据划分为多…

Microbiome|北京林业大学生物多样性研究团队揭示土壤原核生物群落在推动亚热带森林植物多样性与生产力关系中的重要作用

生物多样性与生态系统功能(BEF)之间的关系是生态研究的重要课题之一。土壤微生物群落的变化可能是调节这种关系的关键因素之一。关于森林中真菌群落对树木多样性-生产力关系的影响,已有大量研究。然而,对于细菌和古细菌&#xff0…

第四届计算机、物联网与控制工程国际学术会议(CITCE 2024)

先投稿,先送审,先录用!快至投稿后三天录用! 第四届计算机、物联网与控制工程国际学术会议(CITCE 2024) The 4th International Conference on Computer, Internet of Things and Control Engineering(CITCE…

exe签名证书

我们需要明白什么是exe签名证书?exe签名证书是一种数字证书,用于对可执行文件(即.exe文件)进行数字签名。这种签名可以确保软件的完整性和来源,防止软件被恶意篡改。同时,它也提供了一种机制,使…

THREE.JS 数据纹理简明教程

我一直在研究从 Three.js 中的数据创建纹理。 这非常简单,但有一些注意事项,有些部分可能会令人困惑。 很多年前我曾陷入过一些陷阱,最近又再次陷入其中,所以我决定写下来! NSDT工具推荐: Three.js AI纹理开…

通过自动化部署消除人为操作:不断提高提交部署比率

三十年后,我仍然热爱成为一名软件工程师。事实上,我最近读了威尔拉森(Will Larson)的《员工工程师:超越管理轨道的领导力》,这进一步点燃了我以编程方式解决复杂问题的热情。知道雇主继续照顾员工、原则和杰…

222,完全二叉树的节点数

给你一棵 完全二叉树 的根节点 root ,求出该树的节点个数。 完全二叉树 的定义如下:在完全二叉树中,除了最底层节点可能没填满外,其余每层节点数都达到最大值,并且最下面一层的节点都集中在该层最左边的若干位置。若最…

2024/4/2—力扣—二叉树的最近公共祖先

代码实现: 思路: 递归判断左子树和右子树,查找p或者q是否在当前节点的子树上 1,在同一子树上,同一左子树,返回第一个找到的相同值,同一右子树上,返回第一个找到的相同值 2&#xff0…

ES学习日记(十一)-------Java操作ES之基本操作

前言 此篇博客还是一些基础操作,没什么可写的,需要的同学直接抄作业进行测试就可以 上一节写了连接和测试新增操作,这一节写java操作ES的基本操作,也就是增删改查,在这里补充一点知识,我们之前用了指定的索引进行指定添加 有一个情况是,如果我们指定了…

git提交代码时报错,提不了

问题 今天在换了新电脑,提交代码时报错 ✖ eslint --fix found some errors. Please fix them and try committing again. ✖ 21 problems (20 errors, 1 warning) husky > pre-commit hook failed (add --no-verify to bypass) 解决 通过 --no-verify 解决&…

✌2024/4/3—力扣—最长回文子串

代码实现: 解法一:动态规划——回文子串 char* longestPalindrome(char *s) {int n strlen(s);if (s NULL || n 0 || n 1) {return s;}int dp[n][n];memset(dp, 0, sizeof(dp));for (int i n - 1; i > 0; i--) { // 从下到上for (int j i; j &l…

C语言面试题之判定字符是否唯一

判定字符是否唯一 实例要求 实现一个算法,确定一个字符串 s 的所有字符是否全都不同 实例分析 1、使用一个大小为 256 的bool数组 charSet 来记录字符是否出现过;2、遍历字符串时,如果字符已经在数组中标记过,则返回 false&a…

SpringCloud Alibaba Sentinel 创建流控规则

一、前言 接下来是开展一系列的 SpringCloud 的学习之旅,从传统的模块之间调用,一步步的升级为 SpringCloud 模块之间的调用,此篇文章为第十四篇,即介绍 SpringCloud Alibaba Sentinel 创建流控规则。 二、基本介绍 我们在 senti…

腾讯视频号新玩法,有人已经“遥遥领先”了~

我是王路飞。 抖音的流量红利让用户看到了新的变现方式。 短视频、开直播、开店铺卖货、图文带货等等,都是依托于抖音这个平台去发展起来的。 而抖音的巨大成功,被吸引到的还有互联网行业巨头,比如腾讯。 而腾讯视频号的上线就表明了&…

智能网联汽车自动驾驶数据记录系统DSSAD数据元素

目录 第一章 数据元素分级 第二章 数据元素分类 第三章 数据元素基本信息表 表1 车辆及自动驾驶数据记录系统基本信息 表2 车辆状态及动态信息 表3 自动驾驶系统运行信息 表4 行车环境信息 表5 驾驶员操作及状态信息 第一章 数据元素分级 自动驾驶数据记录系统记录的数…

git Failed to connect to 你的网址 port 8282: Timed out

git Failed to connect to 你的网址 port 8282: Timed out 出现这个问题的原因是:原来的仓库换了网址,原版网址不可用了。 解决方法如下: 方法一:查看git用户配置是否有如下配置 http.proxyhttp://xxx https.proxyhttp://xxx如果…

DIY可视化UniApp表格组件

表格组件在移动端的用处非常广泛,特别是在那些需要展示结构化数据、进行比较分析或提供详细信息的场景中。数据展示与整理:表格是展示结构化数据的理想方式,特别是在需要展示多列和多行数据时。通过表格,用户可以轻松浏览和理解数…