BGP策略实验

BGP策略实验

1.拓扑

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

2.要求

1.使用配用preva1策略,确保R4通过R2到达192.168.10.0/24

2.用AS Path策略,确保R4通过R3到达192.168.11.0/24

3.配置MED策略,确保R4通过R3到达192.168.12.0/24

4.使用Local Preference策略,确保R1通过R2到达192.168.1.0/24

5.使用Local Preference策略,确保R1通过R3到达192.168.2.0/24

6.配置负载均衡,确保R1通过R2和R3到达192.168.3.0/24

7.使用As策略,As 500不接受任何始发于AS 123的路由

8.使用自定义community策略,确保192.168.3.0/24路由不会被发布到AS 500

9.IBGP使用环回接口建邻,EBGP使用物理接口建邻

10.修改AS 123中的用户网段为Broadcast,方便后续在BGP中宣告

11、BGP宣告路由时,仅宣告24网段的用户路由

3.配置

配置IP

[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad	
[Huawei-GigabitEthernet0/0/0]ip address 12.0.0.2 24
May 23 2024 17:07:36-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocolIP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad	
[Huawei-GigabitEthernet0/0/1]ip address 13.0.0.2 24
May 23 2024 17:07:45-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocolIP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[Huawei-GigabitEthernet0/0/1]int g0/0/2	
[Huawei-GigabitEthernet0/0/2]ip address 15.0.0.1 24
[Huawei]int l0
[Huawei-LoopBack0]ip ad	
[Huawei-LoopBack0]ip address 1.1.1.1 32
[Huawei-LoopBack0]int l1
[Huawei-LoopBack1]ip address 192.168.100.1 24
[Huawei-LoopBack1]q
[Huawei]sys R1
[R1-LoopBack1]ospf network-type broadcast
[R2-GigabitEthernet0/0/0]ip address 24.0.0.1 24
May 23 2024 17:08:50-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]undo ipad	
[R2-GigabitEthernet0/0/0]undo ip ad	
[R2-GigabitEthernet0/0/0]undo ip address 
May 23 2024 17:08:55-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the DOWN state. 
[R2-GigabitEthernet0/0/0]ip ad	
[R2-GigabitEthernet0/0/0]ip address 24.0.0.2 24
May 23 2024 17:09:00-08:00 R2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]int g0/0/01
[R2-GigabitEthernet0/0/1]ip ad	
[R2-GigabitEthernet0/0/1]ip address 12.0.0.1 24
[R2-GigabitEthernet0/0/1]
May 23 2024 17:09:11-08:00 R2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R2-GigabitEthernet0/0/1]q
[R2]int l0
[R2-LoopBack0]ip ad	
[R2-LoopBack0]ip address 2.2.2.2 32
[R2-LoopBack0]int l1
[R2-LoopBack1]ip ad	
[R2-LoopBack1]ip address 192.168.20.1 24
[R2-LoopBack1]os	
[R2-LoopBack1]ospf n	
[R2-LoopBack1]ospf network-type broadcast 
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip ad	
[R3-GigabitEthernet0/0/0]ip address 13.0.0.1 24
[R3-GigabitEthernet0/0/0]
May 23 2024 17:09:53-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-GigabitEthernet0/0/0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip ad	
[R3-GigabitEthernet0/0/1]ip address 34.0.0.2 24
May 23 2024 17:10:05-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R3-GigabitEthernet0/0/1]q
[R3]int l0
[R3-LoopBack0]ip ad	
[R3-LoopBack0]ip address 3.3.3.3 32
[R3-LoopBack0]q
[R3]int l1
[R3-LoopBack1]ip ad	
[R3-LoopBack1]ip address 192.168.30.1 24
[R3-LoopBack1]int l0
[R3-LoopBack0]ospf n	
[R3-LoopBack0]ospf network-type b	
[R3-LoopBack0]ospf network-type broadcast 
[R4-GigabitEthernet0/0/0]ip address 24.0.0.1 24
[R4-GigabitEthernet0/0/0]
May 23 2024 17:10:42-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R4-GigabitEthernet0/0/0]int g0/0/01
[R4-GigabitEthernet0/0/1]ip ad	
[R4-GigabitEthernet0/0/1]ip address 34.0.0.1 24
May 23 2024 17:10:51-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R4-GigabitEthernet0/0/1]q
[R4]int l0
[R4-LoopBack0]ip ad	
[R4-LoopBack0]ip address 192.168.1.1 24
[R4-LoopBack0]int l1
[R4-LoopBack1]ip ad	
[R4-LoopBack1]ip address 192.168.2.1 24
[R4-LoopBack1]int l2
[R4-LoopBack2]ip ad	
[R4-LoopBack2]ip address 192.168.3.1 24
[R5-GigabitEthernet0/0/0]ip address 15.0.0.2 24
[R5-GigabitEthernet0/0/0]
May 23 2024 17:11:59-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R5-GigabitEthernet0/0/0]q
[R5]int l0
[R5-LoopBack0]ip ad	
[R5-LoopBack0]ip address 192.168.10.1 24
[R5-LoopBack0]int l1
[R5-LoopBack1]ip ad	
[R5-LoopBack1]ip address 192.168.11.1 24
[R5-LoopBack1]int l2
[R5-LoopBack2]ip address 192.168.12.1 24

宣告环回

[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]ne	
[R1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]n	
[R1-ospf-1-area-0.0.0.0]network 192.168.100.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]n	
[R1-ospf-1-area-0.0.0.0]ne	
[R1-ospf-1-area-0.0.0.0]network 12.0.0.2 0.0.0.0
[R1-ospf-1-area-0.0.0.0]ne	
[R1-ospf-1-area-0.0.0.0]network 13.0.0.2 0.0.0.0
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]ne	
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]ne	
[R2-ospf-1-area-0.0.0.0]network 192.168.20.1 0.0.0.0
[R2-ospf-1-area-0.0.0.0]ne	
[R2-ospf-1-area-0.0.0.0]network 24.0.0.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]ne	
[R2-ospf-1-area-0.0.0.0]network 12.0.0.1 0.0.0.0
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]ne	
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]ne	
[R3-ospf-1-area-0.0.0.0]network 192.168.30.1 0.0.0.0
[R3-ospf-1-area-0.0.0.0]ne	
[R3-ospf-1-area-0.0.0.0]network 34.0.0.2 0.0.0.0
[R3-ospf-1-area-0.0.0.0]ne	
[R3-ospf-1-area-0.0.0.0]network 13.0.0.1 0.0.0.0

BGP宣告

[R1]bgp 123
[R1-bgp]ROU	
[R1-bgp]route-select
[R1-bgp]router-id 1.1.1.1
[R1-bgp]peer 15.0.0.2 as	
[R1-bgp]peer 15.0.0.2 as-number 500
[R1-bgp]pe	
[R1-bgp]peer 2.2.2.2 as	
[R1-bgp]peer 2.2.2.2 as-number 123
[R1-bgp]peer 2.2.2.2 connect-interface l0
[R1-bgp]peer 2.2.2.2 n	
[R1-bgp]peer 2.2.2.2 next-hop-local
[R1-bgp]peer 3.3.3.3 as	
[R1-bgp]peer 3.3.3.3 as-number 123
[R1-bgp]peer 3.3.3.3 c	
[R1-bgp]peer 3.3.3.3 connect-interface l0
[R1-bgp]peer 3.3.3.3 n	
[R1-bgp]peer 3.3.3.3 next-hop-invariable
[R1-bgp]peer 3.3.3.3 next-hop-local
[R2]bgp 123
[R2-bgp]rou	
[R2-bgp]route-select
[R2-bgp]router-id 2.2.2.2
[R2-bgp]peer 24.0.0.1 as	
[R2-bgp]peer 24.0.0.1 as-number 400
[R2-bgp]peer 1.1.1.1 as	
[R2-bgp]peer 1.1.1.1 as-path-filter
[R2-bgp]peer 1.1.1.1 as-number 123
[R2-bgp]peer 1.1.1.1 con	
[R2-bgp]peer 1.1.1.1 connect-interface l0
[R2-bgp]peer 1.1.1.1 n	
[R2-bgp]peer 1.1.1.1 next-hop-invariable
[R2-bgp]peer 1.1.1.1 next-hop-local
[R3]bgp 123
[R3-bgp]ro	
[R3-bgp]route-select
[R3-bgp]router-id 3.3.3.3
[R3-bgp]peer 34.0.0.1 as	
[R3-bgp]peer 34.0.0.1 as-number 400
[R3-bgp]peer 1.1.1.1 as	
[R3-bgp]peer 1.1.1.1 as-path-filter
[R3-bgp]peer 1.1.1.1 as-number 123
[R3-bgp]peer 1.1.1.1 c	
[R3-bgp]peer 1.1.1.1 connect-interface l0
[R3-bgp]peer 1.1.1.1 n	
[R3-bgp]peer 1.1.1.1 next-hop-invariable
[R3-bgp]peer 1.1.1.1 next-hop-local
[R4]bgp 400	
[R4-bgp]peer 24.0.0.2 as-number 123
[R4-bgp]peer 34.0.0.2 as	
[R4-bgp]peer 34.0.0.2 as-number 123
[R5]bgp 500
[R5-bgp]rou	
[R5-bgp]route-select
[R5-bgp]router-id 5.5.5.5
[R5-bgp]peer 15.0.0.1 as	
[R5-bgp]peer 15.0.0.1 as-number 123

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

宣告环回

[R4-bgp]network 192.168.1.0 24
[R4-bgp]n	
[R4-bgp]nexthop
[R4-bgp]network 192.168.2.0 24
[R4-bgp]ne	
[R4-bgp]nexthop
[R4-bgp]network 192.168.3.0 24
[R5-bgp]network 192.168.10.0 24
[R5-bgp]ne	
[R5-bgp]nexthop
[R5-bgp]network 192.168.11.0 24
[R5-bgp]net	
[R5-bgp]network 192.168.12.0 24
[R1-bgp]network 192.168.100.0 24
[R1-bgp]ne	
[R1-bgp]nexthop
[R1-bgp]network 192.168.20.0 24
[R1-bgp]net	
[R1-bgp]network  192.168.30.0 2
[R3-bgp]network 192.168.30.0 24
[R3-bgp]ne	
[R3-bgp]nexthop 	
[R3-bgp]network 192.168.100.0 24
[R3-bgp]ne	
[R3-bgp]nexthop 	
[R3-bgp]network 192.168.20.0 24
[R2-bgp]network 192.168.20.0 24
[R2-bgp]net	
[R2-bgp]network 192.168.100.0 24
[R2-bgp]ne	
[R2-bgp]network 192.168.30.0 24

做策略

[R4]ip ip-prefix aa permit 192.168.10.0 24
[R4]rou	
[R4]route
[R4]route-policy aa p	
[R4]route-policy aa permit  node	
[R4]route-policy aa permit  node 10
Info: New Sequence of this List.
[R4-route-policy]if	
[R4-route-policy]if-match ip	
[R4-route-policy]if-match ip
[R4-route-policy]if-match ip-prefix aa
[R4-route-policy]ap	
[R4-route-policy]apply p	
[R4-route-policy]apply preference
[R4-route-policy]apply preferred-value 100
[R4-route-policy]q
[R4]rou	
[R4]route
[R4]route-policy aa p	
[R4]route-policy aa permit n	
[R4]route-policy aa permit node 20
Info: New Sequence of this List.
[R4-route-policy]q
[R4]bgp 400
[R4-bgp]peer 24.0.0.2 route-policy aa i	
[R4-bgp]peer 24.0.0.2 route-policy aa import 
[R4]ip ip-prefix bb permit 192.168.11.0 24
[R4]if	
[R4]if
[R4]rou	
[R4]route-policy aa p	
[R4]route-policy aa permit n	
[R4]route-policy aa permit node 15
Info: You are overwriting this sequence.
[R4-route-policy]if	
[R4-route-policy]if-match ip 	
[R4-route-policy]if-match ip
[R4-route-policy]if-match ip-prefix bb
[R4-route-policy]ap	
[R4-route-policy]apply as	
[R4-route-policy]apply as-path 123 123 500	
[R4-route-policy]apply as-path 123 123 500 o	
[R4-route-policy]apply as-path 123 123 500 overwrite 
[R2]route-policy aa p	
[R2]route-policy aa permit n	
[R2]route-policy aa permit node 10
Info: New Sequence of this List.
[R2-route-policy]if-match ip-prefix aa
[R2-route-policy]a	
[R2-route-policy]apply  con	
[R2-route-policy]apply con	
[R2-route-policy]apply con
[R2-route-policy]apply c	
[R2-route-policy]apply community
[R2-route-policy]apply cost 200
[R2-route-policy]q
[R2]rou	
[R2]router	
[R2]route
[R2]route-policy aa p	
[R2]route-policy aa permit n	
[R2]route-policy aa permit node 20
Info: New Sequence of this List.
[R2-route-policy]q
[R2]bgp 123	
[R2-bgp]peer 24.0.0.1 route-policy aa e	
[R2-bgp]peer 24.0.0.1 route-policy aa export 
[R2-bgp]
[R3]ip ip-prefix aa permit 192.168.12.0 24
[R3]rou	
[R3]route
[R3]route-policy aa p	
[R3]route-policy aa permit no	
[R3]route-policy aa permit node 10
Info: New Sequence of this List.
[R3-route-policy]if	
[R3-route-policy]if-match ip	
[R3-route-policy]if-match ip
[R3-route-policy]if-match ip-prefix aa
[R3-route-policy]ap	
[R3-route-policy]apply co	
[R3-route-policy]apply comm-filter
[R3-route-policy]apply community
[R3-route-policy]apply cost 20
[R3-route-policy]q
[R3]rou	
[R3]router
[R3]route	
[R3]route-policy aa p	
[R3]route-policy aa permit n	
[R3]route-policy aa permit node 20
Info: New Sequence of this List.
[R3-route-policy]q
[R3]bgp 123
[R3-bgp]p	
[R3-bgp]peer 34.0.0.1 r	
[R3-bgp]peer 34.0.0.1 route-limit
[R3-bgp]peer 34.0.0.1 route-policy aa e	
[R3-bgp]peer 34.0.0.1 route-policy aa export 
[R1]ip ip-prefix bb permit 192.168.1.0 24
[R1]ip 	
[R1]ip ip	
[R1]ip ipv6-prefix
[R1]ip ip-prefix bb p	
[R1]ip ip-prefix bb permit 192.168.2.0 24
[R1]rou	
[R1]route
[R1]route-policy aa 	
[R1]route-policy aap	
[R1]route-policy aa 	
[R1]route-policy aa p	
[R1]route-policy aa permit n	
[R1]route-policy aa permit node 10
Info: New Sequence of this List.
[R1-route-policy]if	
[R1-route-policy]if-match ip	
[R1-route-policy]if-match ip
[R1-route-policy]if-match ip-prefix aa
[R1-route-policy]ap	
[R1-route-policy]apply l	
[R1-route-policy]apply local-preference 200
[R1-route-policy]q
[R1]rou	
[R1]route
[R1]route-policy aa p	
[R1]route-policy aa permit n	
[R1]route-policy aa permit node  20
Info: New Sequence of this List.
[R1-route-policy]q
[R1]bgp 123
[R1-bgp]q
[R1]rou	
[R1]route
[R1]route-policy bb p	
[R1]route-policy bb permit no	
[R1]route-policy bb permit node 10
Info: New Sequence of this List.
[R1-route-policy]if	
[R1-route-policy]if-match ip	
[R1-route-policy]if-match ip
[R1-route-policy]if-match ip-prefix bb
[R1-route-policy]ap	
[R1-route-policy]apply l	
[R1-route-policy]apply local-preference 200
[R1-route-policy]q
[R1]rou	
[R1]route
[R1]route-policy bb p	
[R1]route-policy bb permit node 20
Info: New Sequence of this List.
[R1-route-policy]bgp 123
[R1-bgp]peer 2.2.2.2 r	
[R1-bgp]peer 2.2.2.2 reflect-client
[R1-bgp]peer 2.2.2.2 route-limit 	
[R1-bgp]peer 2.2.2.2 route-policy aa i	
[R1-bgp]peer 2.2.2.2 route-policy aa import 
[R1-bgp]pe	
[R1-bgp]peer 3.3.3.3 r	
[R1-bgp]peer 3.3.3.3 reflect-client
[R1-bgp]peer 3.3.3.3 route-limit
[R1-bgp]peer 3.3.3.3 route-policy bb i	
[R1-bgp]peer 3.3.3.3 route-policy bb import

负载均衡

[R1-bgp]maximum load-balancing 2

不接受始发as123的路由

[R5]ip as-path-filter 1 deny ^123$
[R5]ip as	
[R5]ip as-path-filter 1 p	
[R5]ip as-path-filter 1 permit .*
[R5]bpg 500^
Error: Unrecognized command found at '^' position.
[R5]pe	
[R5]bgp 500
[R5-bgp]peer 15.0.0.1 as	
[R5-bgp]peer 15.0.0.1 as-number	
[R5-bgp]peer 15.0.0.1 as-path-filter 1 i	
[R5-bgp]peer 15.0.0.1 as-path-filter 1 import 

自定义community策略

[R1]ip ip-prefix cc permit 192.168.3.0 24
[R1]rou	
[R1]route
[R1]route-policy aa p	
[R1]route-policy aa permit node 15
Info: New Sequence of this List.
[R1-route-policy]if	
[R1-route-policy]if-match ip	
[R1-route-policy]if-match ip
[R1-route-policy]if-match ip-prefix cc
[R1-route-policy]a	
[R1-route-policy]apply ci	
[R1-route-policy]apply co	
[R1-route-policy]apply community no	
[R1-route-policy]apply community no-export-subconfed
[R1-route-policy]apply community none
[R1-route-policy]apply community no-advertise
[R1-route-policy]apply community no-export
[R1-route-policy]q
[R1]rou	
[R1]route-policy-change
[R1]router
[R1]route
[R1]route-polic bb p	
[R1]route-polic bb p
[R1]route-polic bb pe	
[R1]route-polic bb pe
[R1]rou	
[R1]route-policy-change
[R1]router
[R1]route
[R1]route-policy bb pe	
[R1]route-policy bb permit node 15
Info: New Sequence of this List.
[R1-route-policy]if	
[R1-route-policy]if-match ip	
[R1-route-policy]if-match ip
[R1-route-policy]if-match ip-prefix cc
[R1-route-policy]ap	
[R1-route-policy]apply co	
[R1-route-policy]apply comm-filter
[R1-route-policy]apply community no	
[R1-route-policy]apply community no-export-subconfed
[R1-route-policy]apply community none
[R1-route-policy]apply community no-advertise
[R1-route-policy]apply community no-exporte-policy-change
[R1]router
[R1]route
[R1]route-policy bb pe	
[R1]route-policy bb permit node 15
Info: New Sequence of this List.
[R1-route-policy]if	
[R1-route-policy]if-match ip	
[R1-route-policy]if-match ip
[R1-route-policy]if-match ip-prefix cc
[R1-route-policy]ap	
[R1-route-policy]apply co	
[R1-route-policy]apply comm-filter
[R1-route-policy]apply community no	
[R1-route-policy]apply community no-export-subconfed
[R1-route-policy]apply community none
[R1-route-policy]apply community no-advertise
[R1-route-policy]apply community no-export

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

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

相关文章

Sentinel的隔离和降级

文章目录 1、概念简介2、FeignClient整合Sentinel2.1、修改配置,开启sentinel功能2.2、编写失败降级逻辑2.3、总结 3、线程隔离(舱壁模式)3.1、线程隔离的实现方式3.2、sentinel的线程隔离1)配置隔离规则2)Jmeter测试 …

南加州大学字节提出MagicPose,提供逼真的人类视频生成,实现生动的运动和面部表情传输,以及不需要任何微调的一致的野外零镜头生成。

MagicPose可以精确地生成外观一致的结果,而原始的文本到图像模型(如Stable Diffusion和ControlNet)很难准确地保持主体身份信息。 此外,MagicPose模块可以被视为原始文本到图像模型的扩展/插件,而无需修改其预训练的权重。 相关链接 论文链…

k8s pv 一直是release状态

如下图所示,pv 一直是release状态 这个时候大家可能就会想到现在我的 PVC 被删除了,PV 也变成了 Released 状态,那么我重建之前的 PVC 他们不就可以重新绑定了,事实并不会,PVC 只能和 Available 状态的 PV 进行绑定。…

如何远程连接默认端口?

远程连接是指通过网络实现两个或多个计算机之间的连接和通信。在进行远程连接时,使用的端口号是一个重要的参数。端口号是计算机上正在运行的特定应用程序的标识符。每个应用程序都会监听一个或多个特定的端口号,以便接收来自其他计算机的连接请求&#…

Android正向开发实现客户端证书认证

前言 如果第三方模块被混淆,那hook方式均不能生效。这时就需要根据系统包去定位校验的函数,因此需要对安卓开发者是如何实现客户端证书校验的有一定了解,接下来就介绍这部分内容。 开发者实现客户端证书校验的本质是:证书/密钥 + 代码。 在形式上有:证书校验、公钥校验和…

【Linux】:进程优先级

朋友们、伙计们,我们又见面了,本期来给大家解读一下有关Linux进程优先级的知识点,如果看完之后对你有一定的启发,那么请留下你的三连,祝大家心想事成! C 语 言 专 栏:C语言:从入门到…

LSTM实例解析

大家好,这里是七七,今天带给大家的实例解析。以前也用过几次LSTM模型,但由于原理不是很清楚,因此不能清晰地表达出来,这次用LSTM的时候,去自习研究了原理以及代码,来分享给大家此次经历。 一、简…

JAVA 中 HTTP 基本认证(Basic Authentication)

目录 服务端这么做服务端告知客户端使用 Basic Authentication 方式进行认证服务端接收并处理客户端按照 Basic Authentication 方式发送的数据 客户端这么做如果客户端是浏览器如果客户端是 RestTemplat如果客户端是 HttpClient 其它参考 服务端这么做 服务端告知客户端使用 …

AWS CloudWatch日志组中关于中文关键字的查询

问题 在AWS CloudWatch日志组中,想要查询出包含中文关键字的错误日志,结果,AWS说语法错误。 最开始,使用如下查询,查询可能的错误日志: 查询语句,如下: {($.log %ERROR%) }具体效…

实战Java虚拟机-高级篇

一、GraalVM 什么是GraalVM GraalVM是Oracle官方推出的一款高性能JDK,使用它享受比OpenJDK或者OracleJDK更好的性能。GraalVM的官方网址:https://www.graalvm.org/官方标语:Build faster, smaller, leaner applications。 更低的CPU、内存…

js实现鼠标拖拽多选功能

实现功能 在PC端的H5页面中&#xff0c;客户拖动鼠标可以连选多个选项 效果展示 具体代码如下 <!DOCTYPE html> <html><head><title>鼠标拖拽多选功能</title><script src"https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js&quo…

ClickHouse配置与使用

静态IP配置 # 修改网卡配置文件 vim /etc/sysconfig/network-scripts/ifcfg-ens33# 修改文件内容 TYPEEthernet PROXY_METHODnone BROWSER_ONLYno BOOTPROTOstatic IPADDR192.168.18.128 NETMASK255.255.255.0 GATEWAY192.168.18.2 DEFROUTEyes IPV4_FAILURE_FATALno IPV6INIT…

【408真题】2009-12

“接”是针对题目进行必要的分析&#xff0c;比较简略&#xff1b; “化”是对题目中所涉及到的知识点进行详细解释&#xff1b; “发”是对此题型的解题套路总结&#xff0c;并结合历年真题或者典型例题进行运用。 涉及到的知识全部来源于王道各科教材&#xff08;2025版&…

招人啦~数通售后、云计算和云服务的岗位需求

小伙伴们大家好&#xff0c;小誉的就业推荐又来咯。想要跳槽晋升找工作的朋友们&#xff0c;千万不要错过机会哦~ 北京集成商数通售后 薪资:12-18k 1、负责公司系统集成项目的网络技术实施工作&#xff0c;包括项目的网络架构的规划、设计、调整、性能优化; 2、负责从项目开展…

零基础HTML教程(35)--网站的本地部署

文章目录 1. 背景2. 网站的本地部署3. 本地部署的步骤4. 服务器软件介绍5. 本地部署实操5.1 开发一个网站5.2 下载服务器软件5.3 将网站复制到服务器软件下5.4 启动服务器软件5.5 通过Http协议访问网站 6. 小结 1. 背景 我们之前开发的网页&#xff0c;都是编写完成后&#xf…

Day22:Leetcode:654.最大二叉树 + 617.合并二叉树 + 700.二叉搜索树中的搜索 + 98.验证二叉搜索树

LeetCode&#xff1a;654.最大二叉树 1.思路 解决方案&#xff1a; 单调栈是本题的最优解&#xff0c;这里将单调栈题解本题的一个小视频放在这里 单调栈求解最大二叉树的过程当然这里还有leetcode大佬给的解释&#xff0c;大家可以参考一下&#xff1a; 思路很清晰&#xf…

云渲染的线程数是什么意思?

云渲染线程是指在云渲染过程中&#xff0c;同时处理渲染任务的线程数量。 线程是CPU调度和执行的基本单位&#xff0c;每个线程可以独立执行一系列指令。在云渲染场景中&#xff0c;服务器通常配备有高性能的CPU&#xff0c;这些CPU可能拥有几十甚至上百个物理核心&#xff0c…

Vue2基础及其进阶面试(一)

简单版项目初始化 新建一个vue2 官网文档&#xff1a;介绍 — Vue.js 先确保下载了vue的脚手架 npm install -g vue-cli npm install -g vue/cli --force vue -V 创建项目 vue create 自己起个名字 选择自己选择特性 选择&#xff1a; Babel&#xff1a;他可以将我们写…

单向无头链表实现

目录 1. 为什么要有链表&#xff1f; 2. 链表的种类 3. 具体功能实现 &#xff08;1&#xff09;节点结构体定义 &#xff08;2&#xff09;申请节点 &#xff08;3&#xff09;尾插 &#xff08;4&#xff09;尾删 &#xff08;5&#xff09;头插 &#xff08;6&#…

面向对象-----继承

前面向大家介绍了面向对象中的封装性&#xff0c;今天再来向大家介绍面向对象的继承和多态的两大特性。 1.继承 1.1 为什么需要继承&#xff1f; 在java语言中&#xff0c;我们用类来描述世间万物&#xff0c;虽然万物非常复杂&#xff0c;但总有一些共同点&#xff0c;如果…