CCNP课程实验-05-Comprehensive_Experiment
目录
- 实验条件
- 网络拓朴
- 基础配置实现
- IGP需求:
- 1. 根据拓扑所示,配置OSPF和EIGRP
- 2. 在R3上增加一个网段:33.33.33.0/24 (用Loopback 1模拟) 宣告进EIGRP,并在R3上将EIGRP重分布进OSPF。要求重分布进OSPF后的路由Tag值设置为666,且Cost值能沿传递路径累加。但OSPF区域不能出现33.33.33.0/24这条路由。
- 3. 在R1上看到34.1.1.0/24路由的管理距离为111。
- 4. R1和R2之间不需要选举DR、BDR,但需要使用组播更新。
- 5. 在R2上增加两个网段:22.22.1.0/24,22.22.2.0/24 (用Loopback模拟) 视情况宣告进相关区域。在R2上配置最精确的路由汇总,使得R3能看到汇总路由。
- 6. Area 0区域为保证安全,开启区域密文认证,密码为SPOTO
- 7. Area 1区域需尽量减少路由数量,且不允许引入任何外部路由。
- BGP需求
- 1. R1和R2采用Loopback 0建立IBGP邻居(AS 12),R3和R4采用Loopback 0建立IBGP邻居(AS 34),R1和R4、R2和R3建立EBGP邻居。
- 2. R1上增加两个网段:10.10.10.0/24,10.10.11.0/24。R2上增加两个网段:20.20.20.0/24,20.20.21.0/24。将这些网段都宣告进BGP。
- 3. 配置使得R3、R4的BGP表如图所示
- IPv6-OSPF需求
- 1. 采用OSPFv3方式配置,手动设置Router-id为Loopback 0的IPv4地址,区域设计与IPv4相同。各物理接口都需宣告进OSPF。
- 2. 要求R3能Ping通R4的IPv6 Loopback 0地址。
- IPv6-BGP需求
- 1. R1和R2采用Loopback 0建立IBGP邻居,R1和R4、R2和R3建立EBGP邻居。
- 2. R1上增加一个网段:10:10:10::10/128,R3上增加一个网段:30:30:30::30/128 (用Loopback模拟) 并宣告进BGP。要求R1能从10:10:10::10 Ping通R3的30:30:30::30
实验条件
网络拓朴
IPv4:
拓扑中的IPv4互联地址段采用:AB.1.1.X/24,其中AB为两台路由器编号组合。例如:R1-R2之间的AB为12,X为路由器编号,如R1的X=1
Loopback 0接口地址格式为:X.X.X.X/32,其中X为路由器编号。
没有特殊要求,不允许使用静态路由。
IPv6:
拓扑中的IPv6互联地址采用:2001:AB::X/64,其中AB为两台路由器编号组合。例如:R1-R2之间的AB为12,X为路由器编号,如R1的X=1
Loopback 0接口地址格式为:X:X:X::X/128,其中X为路由器编号。
没有特殊要求,不允许使用静态路由。
基础配置实现
R1
R1(config-if)#do show run | s interface
interface Loopback0ip address 1.1.1.1 255.255.255.255
interface Ethernet0/0ip address 12.1.1.1 255.255.255.0no shutdown
interface Ethernet0/1ip address 14.1.1.1 255.255.255.0no shutdown
R2
R2(config-if)#do show run | s interface
interface Loopback0ip address 2.2.2.2 255.255.255.255
interface Ethernet0/0ip address 12.1.1.2 255.255.255.0no shutdown
interface Ethernet0/1ip address 23.1.1.2 255.255.255.0no shutdown
R2(config-if)#
R3
R3(config-route-map)#do show run | s interface
interface Loopback0ip address 3.3.3.3 255.255.255.255
interface Loopback1ip address 33.33.33.33 255.255.255.0
interface Ethernet0/0ip address 34.1.1.3 255.255.255.0no shutdown
interface Ethernet0/1ip address 23.1.1.3 255.255.255.0no shutdown
R4
R4(config-router)#do show run | s interface
interface Loopback0ip address 4.4.4.4 255.255.255.255
interface Ethernet0/0ip address 34.1.1.4 255.255.255.0no shutdown
interface Ethernet0/1ip address 14.1.1.4 255.255.255.0no shutdown
IGP需求:
1. 根据拓扑所示,配置OSPF和EIGRP
R1
router ospf 100router-id 1.1.1.1
interface Ethernet0/0ip ospf 100 area 0
interface Ethernet0/1ip ospf 100 area 1
R2
router ospf 100router-id 2.2.2.2
interface Ethernet0/0ip ospf 100 area 0
interface Ethernet0/1ip ospf 100 area 2
R3
router ospf 100router-id 3.3.3.3
interface Ethernet0/1ip ospf 100 area 2
router eigrp 100network 3.3.3.3 0.0.0.0network 34.1.1.3 0.0.0.0eigrp router-id 3.3.3.3
R4
router eigrp 100network 4.4.4.4 0.0.0.0network 34.1.1.4 0.0.0.0eigrp router-id 4.4.4.4
router ospf 100router-id 4.4.4.4
interface Ethernet0/1ip ospf 100 area 1
2. 在R3上增加一个网段:33.33.33.0/24 (用Loopback 1模拟) 宣告进EIGRP,并在R3上将EIGRP重分布进OSPF。要求重分布进OSPF后的路由Tag值设置为666,且Cost值能沿传递路径累加。但OSPF区域不能出现33.33.33.0/24这条路由。
R3
interface Loopback1ip address 33.33.33.33 255.255.255.0ip prefix-list R3-summary seq 5 permit 33.33.33.0/24
route-map R3-summary deny 10match ip address prefix-list R3-summary
route-map R3-summary permit 20set tag 666
router ospf 100redistribute eigrp 100 metric-type 1 subnets route-map R3-summary
3. 在R1上看到34.1.1.0/24路由的管理距离为111。
R1路由表记录
34.0.0.0/24 is subnetted, 1 subnets
O E1 34.1.1.0 [111/40] via 12.1.1.2, 00:07:21, Ethernet0/0
在router ospf 配置下,使用distance
access-list 10 permit 34.1.1.0 0.0.0.255
router ospf 100distance 111 0.0.0.0 255.255.255.255 10
4. R1和R2之间不需要选举DR、BDR,但需要使用组播更新。
把他们的网络类型修改成P2P,就不需要选举DR/BDR了,
R1
interface Ethernet0/0ip ospf network point-to-point
R2
interface Ethernet0/0ip ospf network point-to-point
5. 在R2上增加两个网段:22.22.1.0/24,22.22.2.0/24 (用Loopback模拟) 视情况宣告进相关区域。在R2上配置最精确的路由汇总,使得R3能看到汇总路由。
R2
interface Loopback0ip address 2.2.2.2 255.255.255.255
interface Loopback1ip address 22.22.1.1 255.255.255.0router ospf 100network 22.22.1.1 0.0.0.0 area 0network 22.22.2.1 0.0.0.0 area 0area 0 range 22.22.0.0 255.255.252.0
R3收到了来自2.2.2.2的通告信息
R3#show ip ospf database summary 22.22.0.0OSPF Router with ID (3.3.3.3) (Process ID 100)Summary Net Link States (Area 2)LS age: 1683Options: (No TOS-capability, DC, Upward)LS Type: Summary Links(Network)Link State ID: 22.22.0.0 (summary Network Number)Advertising Router: 2.2.2.2LS Seq Number: 80000001Checksum: 0x20EALength: 28Network Mask: /22MTID: 0 Metric: 1 R3#
6. Area 0区域为保证安全,开启区域密文认证,密码为SPOTO
R1
interface Ethernet0/0ip ospf authentication message-digestip ospf message-digest-key 1 md5 SPOTO
R2
interface Ethernet0/0ip ospf authentication message-digestip ospf message-digest-key 1 md5 SPOTO
7. Area 1区域需尽量减少路由数量,且不允许引入任何外部路由。
把Area1区域变成末梢区域,就可以实现目的
R1
router ospf 100area 1 stub no-summary
R2
router ospf 100area 1 stub
BGP需求
1. R1和R2采用Loopback 0建立IBGP邻居(AS 12),R3和R4采用Loopback 0建立IBGP邻居(AS 34),R1和R4、R2和R3建立EBGP邻居。
R1
router bgp 12bgp router-id 1.1.1.1bgp log-neighbor-changesneighbor 2.2.2.2 remote-as 12neighbor 2.2.2.2 update-source Loopback0neighbor 2.2.2.2 next-hop-selfneighbor 14.1.1.4 remote-as 34
R1
router bgp 12bgp router-id 2.2.2.2bgp log-neighbor-changesneighbor 1.1.1.1 remote-as 12neighbor 1.1.1.1 update-source Loopback0neighbor 1.1.1.1 next-hop-selfneighbor 23.1.1.3 remote-as 34
R3
router bgp 34bgp router-id 3.3.3.3bgp log-neighbor-changesneighbor 4.4.4.4 remote-as 34neighbor 4.4.4.4 update-source Loopback0neighbor 4.4.4.4 next-hop-selfneighbor 23.1.1.2 remote-as 12
R4
router bgp 34bgp router-id 4.4.4.4bgp log-neighbor-changesneighbor 3.3.3.3 remote-as 34neighbor 3.3.3.3 update-source Loopback0neighbor 3.3.3.3 next-hop-self // IBGP对等体,最好配置上该项,将路由下跳指向自己neighbor 14.1.1.1 remote-as 12
2. R1上增加两个网段:10.10.10.0/24,10.10.11.0/24。R2上增加两个网段:20.20.20.0/24,20.20.21.0/24。将这些网段都宣告进BGP。
R1
interface Loopback1ip address 10.10.10.1 255.255.255.0
interface Loopback2ip address 10.10.11.1 255.255.255.0router bgp 12network 10.10.10.0 mask 255.255.255.0network 10.10.11.0 mask 255.255.255.0
R2
interface Loopback3ip address 20.20.20.1 255.255.255.0
interface Loopback4ip address 20.20.21.1 255.255.255.0router bgp 12network 20.20.20.0 mask 255.255.255.0network 20.20.21.0 mask 255.255.255.0
3. 配置使得R3、R4的BGP表如图所示
R3
现在的R3BGP路由如下图
Network Next Hop Metric LocPrf Weight Path* i 10.10.10.0/24 4.4.4.4 0 100 0 12 i*> 23.1.1.2 0 12 i* i 10.10.11.0/24 4.4.4.4 0 100 0 12 i*> 23.1.1.2 0 12 i* i 20.20.20.0/24 4.4.4.4 0 100 0 12 i*> 23.1.1.2 0 0 12 i* i 20.20.21.0/24 4.4.4.4 0 100 0 12 i*> 23.1.1.2 0 0 12 i
R4
现在的R4BGP路由如下图
Network Next Hop Metric LocPrf Weight Path* i 10.10.10.0/24 3.3.3.3 0 100 0 12 i*> 14.1.1.1 0 0 12 i*> 10.10.11.0/24 14.1.1.1 0 0 12 i* i 3.3.3.3 0 100 0 12 i*> 20.20.20.0/24 14.1.1.1 0 12 i* i 3.3.3.3 0 100 0 12 i*> 20.20.21.0/24 14.1.1.1 0 12 i* i 3.3.3.3 0 100 0 12 i
比较得出结果
R3:不同点
Network Next Hop Metric LocPrf Weight Path* i 10.10.10.0/24 4.4.4.4 0 100 0 12 i*> 23.1.1.2 0 12 i
1. 这两条的Path值有改动,从10.10.10.0是EBGP的AS-PATH
2. 下一跳地址为4.4.4.4的路由要成为最优路径,LocalPrf值要设置为200
3. 缺少一条20.20.20.0/23的路由。
1 .先修改R4上通告过来的AS-Path,可以从R1-R4-in 方向进行修改。可以同时修改local-preference值。AS-PATH值只能在EBGP通告的时候,才可以修改
, 因此需要在R4上接收的时候,就要修改PATH值,
R4
ip prefix-list bgp seq 5 permit 10.10.10.0/24route-map R1-R4-in permit 10 // R1-R4-in方向的,进来的10.10.10.0/24路由match ip address prefix-list bgpset as-path prepend 5 6 7 8 // AS-PATH添加5,6,7,8
route-map R1-R4-in permit 20// R4-R3-out方向的,出去的10.10.10.0/24路由,
// 要在相同的AS区域内,报文才可以传递PATH-Attribute属性,Local-preference, 也可以在R3上配置,R4-R3-in方向进行修改。
route-map R4-R3-out permit 10match ip address prefix-list bgpset local-preference 200
route-map R4-R3-out permit 20router bgp 34neighbor 14.1.1.1 route-map R1-R4-in inneighbor 3.3.3.3 route-map R4-R3-out out
R4 BGP路由表结果展示
可见PATH值已修改。
R4(config-router)#do show ip bgp
BGP table version is 27, local router ID is 4.4.4.4
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 foundNetwork Next Hop Metric LocPrf Weight Path*> 10.10.10.0/24 14.1.1.1 0 0 5 6 7 8 12 i*> 10.10.11.0/24 14.1.1.1 0 0 12 i* i 3.3.3.3 0 100 0 12 i*> 20.20.20.0/24 14.1.1.1 0 12 i* i 3.3.3.3 0 100 0 12 i*> 20.20.21.0/24 14.1.1.1 0 12 i* i 3.3.3.3 0 100 0 12 i
R3 BGP路由表结果展示
可见PATH值、LocalPrf值都已修改,虽然AS-PATH变长(越短优先),但是因为localprf值越大越优先。所以4.4.4.4这一条的10.10.10.0路由成为最优路径。
R3(config-router)#do show ip bgp
BGP table version is 21, local router ID is 3.3.3.3
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 foundNetwork Next Hop Metric LocPrf Weight Path*>i 10.10.10.0/24 4.4.4.4 0 200 0 5 6 7 8 12 i* 23.1.1.2 0 12 i* i 10.10.11.0/24 4.4.4.4 0 100 0 12 i*> 23.1.1.2 0 12 i* i 20.20.20.0/24 4.4.4.4 0 100 0 12 i*> 23.1.1.2 0 0 12 i* i 20.20.21.0/24 4.4.4.4 0 100 0 12 i*> 23.1.1.2 0 0 12 i
- 修改23.1.1.2通告过来的路由的AS-PATH值。
在R3上配置, R2-R3-in方向进行配置AS-PATH,因为R2-R3之间是EBGP,所以可以修改AS-PATH
R3
ip prefix-list bgp10 seq 5 permit 10.10.10.0/24// R2-R3-in方向的,进来的10.10.10.0/24路由
route-map R2-R3-in permit 10match ip address prefix-list bgp10set as-path prepend last-as 4 // AS-PATH,重复最后一个AS号
route-map R2-R3-in permit 20router bgp 34neighbor 23.1.1.2 route-map R2-R3-in in
R3 BGP路由表结果展示
可见PATH值已修改。
R3(config-router)#do show ip bgp
BGP table version is 21, local router ID is 3.3.3.3
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 foundNetwork Next Hop Metric LocPrf Weight Path*>i 10.10.10.0/24 4.4.4.4 0 200 0 5 6 7 8 12 i* 23.1.1.2 0 12 12 12 12 12 i* i 10.10.11.0/24 4.4.4.4 0 100 0 12 i*> 23.1.1.2 0 12 i* i 20.20.20.0/24 4.4.4.4 0 100 0 12 i*> 23.1.1.2 0 0 12 i* i 20.20.21.0/24 4.4.4.4 0 100 0 12 i*> 23.1.1.2 0 0 12 i
R4 BGP路由表结果展示
然而R4上并没有收到来自3.3.3.3的,关于10.10.10.0,AS-PATH是12 12 12 12 12 i的记录, 这是因为在R3上,这条记录他不是Best,所以不会被转发给其它IBGP
R4(config-router)#do show ip bgp
BGP table version is 27, local router ID is 4.4.4.4
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 foundNetwork Next Hop Metric LocPrf Weight Path*> 10.10.10.0/24 14.1.1.1 0 0 5 6 7 8 12 i*> 10.10.11.0/24 14.1.1.1 0 0 12 i* i 3.3.3.3 0 100 0 12 i*> 20.20.20.0/24 14.1.1.1 0 12 i* i 3.3.3.3 0 100 0 12 i*> 20.20.21.0/24 14.1.1.1 0 12 i* i 3.3.3.3 0 100 0 12 i
- 缺少了20.20.20.0/23路由记录,要添加这条路由信息
这条记录子网掩码比较短,因此是经过聚合的,综合分析R3,R4图片中的路由信息可得到。 R3有收到R4的聚合路由通告信息。而从R2收到的路由是24位子网掩码的。因此,聚合路由的是R1路由器。且在R4路由器上并没有收到来自R1的24长度的路由,所以可以确定聚合时,只通告汇总路由,不通告明细路由
所以在R1配置
如下
router bgp 12aggregate-address 20.20.20.0 255.255.254.0 as-set summary-only // summary-only 只通告汇总路由
R3 BGP路由表结果展示
达成图片所要求的路由表效果
R3(config-router)#do show ip bgp
BGP table version is 34, local router ID is 3.3.3.3
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 foundNetwork Next Hop Metric LocPrf Weight Path*>i 10.10.10.0/24 4.4.4.4 0 200 0 5 6 7 8 12 i* 23.1.1.2 0 12 12 12 12 12 i* i 10.10.11.0/24 4.4.4.4 0 100 0 12 i*> 23.1.1.2 0 12 i*> 20.20.20.0/24 23.1.1.2 0 0 12 i // R2通告而来* i 20.20.20.0/23 4.4.4.4 0 100 0 12 i // R3只通告汇总路由。并且长度24的明细路由*> 23.1.1.2 0 12 i*> 20.20.21.0/24 23.1.1.2 0 0 12 i
R4 BGP路由表结果展示
达成图片所要求的路由表效果
R4(config-router)#do show ip bgp
BGP table version is 30, local router ID is 4.4.4.4
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 foundNetwork Next Hop Metric LocPrf Weight Path*> 10.10.10.0/24 14.1.1.1 0 0 5 6 7 8 12 i*> 10.10.11.0/24 14.1.1.1 0 0 12 i* i 3.3.3.3 0 100 0 12 i*>i 20.20.20.0/24 3.3.3.3 0 100 0 12 i // R3通告而来* i 20.20.20.0/23 3.3.3.3 0 100 0 12 i // R3通告(adv-router为1.1.1.1的汇总路由)和R2的24长度的路由*> 14.1.1.1 0 0 12 i // R1只通告汇总路由*>i 20.20.21.0/24 3.3.3.3 0 100 0 12 i
IPv6-OSPF需求
1. 采用OSPFv3方式配置,手动设置Router-id为Loopback 0的IPv4地址,区域设计与IPv4相同。各物理接口都需宣告进OSPF。
2. 要求R3能Ping通R4的IPv6 Loopback 0地址。
R1
interface Loopback0ipv6 address 1:1:1:1::1/128ipv6 enableospfv3 100 ipv6 area 0
interface Ethernet0/0ipv6 address 2001:12::1/64ipv6 enableipv6 ospf 100 area 0
interface Ethernet0/1ipv6 address 2001:14::1/64ipv6 enableospfv3 100 ipv6 area 1router ospfv3 100router-id 1.1.1.1!address-family ipv6 unicastexit-address-family
R2
R2(config-if)#do show run | s interface
interface Loopback0ipv6 address 2:2:2:2::2/128ipv6 enableospfv3 100 ipv6 area 0
interface Ethernet0/0ipv6 address 2001:12::2/64ipv6 enableospfv3 100 ipv6 area 0
interface Ethernet0/1ipv6 address 2001:23::2/64ipv6 enableospfv3 100 ipv6 area 2router ospfv3 100router-id 2.2.2.2!address-family ipv6 unicastexit-address-family
R3
interface Loopback0ipv6 address 3:3:3:3::3/128ipv6 enableospfv3 100 ipv6 area 2
interface Ethernet0/0ipv6 address 2001:34::3/64ipv6 enable
interface Ethernet0/1ipv6 address 2001:23::3/64ipv6 enableospfv3 100 ipv6 area 2
R4
interface Loopback0ipv6 address 4:4:4:4::4/128ipv6 enableospfv3 100 ipv6 area 1
interface Ethernet0/1ipv6 address 2001:14::4/64ipv6 enableospfv3 100 ipv6 area 1router ospfv3 100router-id 4.4.4.4!address-family ipv6 unicastexit-address-family
OSPFv3配置完成之后,R4和R3之间不能直接通信
由R1,R2,R3绕着走。
R4#traceroute 3:3:3:3::3
Type escape sequence to abort.
Tracing the route to 3:3:3:3::31 2001:14::1 1 msec 0 msec 0 msec2 2001:12::2 1 msec 0 msec 1 msec3 2001:23::3 0 msec 1 msec 0 msec
R4#
测试路由
R3#ping 4:4:4:4::4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4:4:4:4::4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R3#
IPv6-BGP需求
1. R1和R2采用Loopback 0建立IBGP邻居,R1和R4、R2和R3建立EBGP邻居。
R1
& R2
IBGP邻居
R1#
router bgp 12no bgp default ipv4-unicastneighbor 2:2:2:2::2 remote-as 12neighbor 2:2:2:2::2 update-source Loopback0neighbor 2001:14::4 remote-as 34 //R4的EBGP邻居!address-family ipv6neighbor 2:2:2:2::2 activateneighbor 2:2:2:2::2 next-hop-selfneighbor 2001:14::4 activateexit-address-family
R2#
router bgp 12no bgp default ipv4-unicastneighbor 1:1:1:1::1 remote-as 12neighbor 1:1:1:1::1 update-source Loopback0neighbor 2001:23::3 remote-as 34 //R3的EBGP邻居!address-family ipv6neighbor 1:1:1:1::1 activateneighbor 1:1:1:1::1 next-hop-selfneighbor 2001:23::3 activateexit-address-family
R1&R4 EBGP邻居
R4#
router bgp 34bgp router-id 4.4.4.4bgp log-neighbor-changesneighbor 2001:14::1 remote-as 12 //R1的EBGP邻居!address-family ipv6neighbor 2001:14::1 activateexit-address-family
R2&R3 EBGP邻居
R3#
router bgp 34bgp router-id 3.3.3.3bgp log-neighbor-changesneighbor 2001:23::2 remote-as 12 //R2的EBGP邻居!address-family ipv6neighbor 2001:23::2 activateexit-address-family
IPv6的R3和R4之间并没有IBGP邻居关系
由于OSPFv3路由没有R4-R3之间的直连路由。如果此时在R3和R4之间建立直连路由时。 从R1访问R3时根据BGP选路规则时,选择从R1走到R4时再走到R3时,就有可能发生以下情况。如R1走到R4之后再往下走的时候,由于R4访问R3是通过OSPFv3的选路R4->R1->R2->R3,那么这个时候包又从R4回到R1然后又到R4,就形成了环路
R1#traceroute 30:30:30::30
Type escape sequence to abort.
Tracing the route to 30:30:30::301 2001:14::4 1 msec 0 msec 0 msec2 2001:14::1 1 msec 0 msec 0 msec3 2001:14::4 0 msec 1 msec * 4 2001:14::1 1 msec 1 msec 0 msec5 2001:14::4 0 msec * 1 msec6 2001:14::1 1 msec 1 msec * 7 2001:14::4 1 msec 0 msec * 8 2001:14::1 2 msec 0 msec * 9 2001:14::4 2 msec 1 msec * 10 2001:14::1 1 msec 1 msec * 11 2001:14::4 1 msec * 1 msec12 * 2001:14::1 1 msec * 13 2001:14::4 1 msec * 1 msec14 * 2001:14::1 1 msec * 15 2001:14::4 2 msec * 1 msec16 * 2001:14::1 2 msec * 17 2001:14::4 7 msec * 2 msec18 * 2001:14::1 7 msec * 19 2001:14::4 2 msec * 6 msec20 * 2001:14::1 3 msec * 21 * * * 22 * * *
R1#show ipv route
2. R1上增加一个网段:10:10:10::10/128,R3上增加一个网段:30:30:30::30/128 (用Loopback模拟) 并宣告进BGP。要求R1能从10:10:10::10 Ping通R3的30:30:30::30
R1
R1#show run | s interface
interface Loopback1ipv6 address 10:10:10::10/128router bgp 12!address-family ipv6network 10:10:10::10/128 //宣告10段的路由exit-address-family
R3
R3#show run | s interface
interface Loopback1ipv6 address 30:30:30::30/128router bgp 34!address-family ipv6network 30:30:30::30/128 //宣告30段的路由exit-address-family
R1从10:10:10::10 Ping通R3的30:30:30::30
R1#ping 30:30:30::30 source 10:10:10::10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30:30:30::30, timeout is 2 seconds:
Packet sent with a source address of 10:10:10::10
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R1#
相关文章:

CCNP课程实验-05-Comprehensive_Experiment
目录 实验条件网络拓朴 基础配置实现IGP需求:1. 根据拓扑所示,配置OSPF和EIGRP2. 在R3上增加一个网段:33.33.33.0/24 (用Loopback 1模拟) 宣告进EIGRP,并在R3上将EIGRP重分布进OSPF。要求重分布进OSPF后的路由Tag值设置为666&…...

第3课 使用FFmpeg获取并播放音频流
本课对应源文件下载链接: https://download.csdn.net/download/XiBuQiuChong/88680079 FFmpeg作为一套庞大的音视频处理开源工具,其源码有太多值得研究的地方。但对于大多数初学者而言,如何快速利用相关的API写出自己想要的东西才是迫切需要…...

Java 动态树的实现思路分析
Java 动态树的实现 目录概述需求: 设计思路实现思路分析1. 简单Java实现:2.建立父子表存储3.前端的对应的json 字符串方式 参考资料和推荐阅读 Survive by day and develop by night. talk for import biz , show your perfect code,full busy࿰…...

太阳系三体模拟器
介绍 《三体》是刘慈欣创作的长篇科幻小说,文中提到的三体问题比较复杂和无解。 该项目代码就是利用 Python 来模拟三体的运行,此项目代码完全共享,欢迎下载。 我们可以自己通过调整天体的初始坐标、质量和矢量速度等等参数来自定义各种场景…...

SQL常见面试题
今天刷了一遍牛客里的必知必会题,一共50道题,大部分都比较基础,下面汇总一下易错题。 SQL81 顾客登录名 本题几个关键点: 登录名是其名称和所在城市的组合,因此需要使用substring()和concat()截取和拼接字段。得到登…...
怎么获取客户端真实IP?GO
在使用 Golang 的 net/rpc 包进行 RPC 服务开发时,我们有时候会遇到需要获取客户端的真实 IP 和当前连接 net.Conn 的需求。然而在 net/rpc 的服务处理方法中,并没有提供直接获取到这些信息的途径。 那么,我们应该如何去获取这些信息呢&…...

山海鲸可视化软件的优势:数据整合、可视化与个性化定制
随着科技的快速发展,企业数字化转型已成为必然趋势。而对于一些本身没有开发优势或非技术型企业,数字化产品的选择就成为重中之重。作为山海鲸可视化软件的开发者,我们深知这一点,对于企业来说,能选择一个产品一定要有…...

Mybatis行为配置之Ⅰ—缓存
专栏精选 引入Mybatis Mybatis的快速入门 Mybatis的增删改查扩展功能说明 mapper映射的参数和结果 Mybatis复杂类型的结果映射 Mybatis基于注解的结果映射 Mybatis枚举类型处理和类型处理器 再谈动态SQL Mybatis配置入门 Mybatis行为配置之Ⅰ—缓存 Mybatis行为配置…...
【Java开发岗面试】八股文—计算机网络
声明: 背景:本人为24届双非硕校招生,已经完整经历了一次秋招,拿到了三个offer。本专题旨在分享自己的一些Java开发岗面试经验(主要是校招),包括我自己总结的八股文、算法、项目介绍、HR面和面试…...
【PythonRS】基于矢量范围批量下载遥感瓦片高清数据(天地图、高德、谷歌等)
这个是之前写的代码了,正好今天有空所以就和大家分享一下。我们在处理项目时,有时候需要高清底图作为辅助数据源去对比数据,所以可能会需要卫星数据。所以今天就和大家分享一下如何使用Python基于矢量范围批量下载高清遥感瓦片数据。 1 读取矢…...

穷举vs暴搜vs深搜vs回溯vs剪枝
欢迎来到Cefler的博客😁 🕌博客主页:那个传说中的man的主页 🏠个人专栏:题目解析 🌎推荐文章:题目大解析(3) 目录 👉🏻全排列👉&#…...

Sensor Demosaic IP 手册PG286笔记
《 UG1449 Multimedia User Guide》中包含了大量的多媒体IP简介。 本IP 用于对bayer RGB(每个pixel只有单个R/G/B)做去马赛克处理,恢复成每个pixel点都有完整的RGB值。通过axi接口配置IP内部erg。 1、算法手册中的描述 提到了几种插值算法&…...
HarmonyOS —— UIAbility 页面跳转总结
HarmonyOS —— UIAbility 页面跳转总结 Author:Gorit Date:2023年12月27日 一、系统环境 HarmonOS API9SDK 3.1.0Stage 模型 二、应用内跳转 在应用内之前实现不同 page 的跳转,我们使用 router 即可,页面跳转主要支持如下…...

Spring Boot 3 集成 Jasypt详解
随着信息安全的日益受到重视,加密敏感数据在应用程序中变得越来越重要。Jasypt(Java Simplified Encryption)作为一个简化Java应用程序中数据加密的工具,为开发者提供了一种便捷而灵活的加密解决方案。本文将深入解析Jasypt的工作…...

Spring Boot整合 EasyExcel 实现复杂 Excel 表格的导入与导出功能
文章目录 1. 简介2. 引入依赖3. 导入功能实现3.1 创建实体类3.2 编写导入 Controller3.3 编写导入页面 4. 导出功能实现4.1 编写导出 Controller4.2 编写导出页面 5. 启动应用 🎈个人主页:程序员 小侯 🎐CSDN新晋作者 🎉欢迎 &…...

SQLSERVER排查CPU占用高
操作系统是Windows2008R2 ,数据库是SQL2008R2 64位 64G内存,16核CPU 硬件配置还是比较高的,他说服务器运行的是金蝶K3软件,数据库实例里有多个数据库 现象 他说是这几天才出现的,而且在每天的某一个时间段才会出现CPU占用高的情况 内存占用不太高,只占用了30个G CPU…...
uniapp:富文本回显
一、使用uniapp官方的标签 rich-text: 会出现图片无法显示的问题,可以用以下方法来过滤处理 <rich-text :nodes"question.title | formatRichHtml"></rich-text> formatRichHtml(html) {if (!html) {return html;}//控制小程序…...

flink内存配置
flink内存配置 配置 TaskManager 内存 | Apache Flink...

easyexcel 导出
在使用EasyExcel库进行数据写入时,通常我们会使用实体类来存储数据。但是当遇到动态查询,无法确定属性数量和名称时,就需要使用Map来接收数据。然而,直接将Map中的数据写入Excel表格并不是一件简单的事情。接下来,我将…...

maven命令行安装依赖测试
mvn dependency:get -DgroupIdorg.springframework -DartifactIdspring-core -Dversion5.3.9作用:可用于测试配置环境变量后,能否下载依赖到本地仓库...

微软PowerBI考试 PL300-选择 Power BI 模型框架【附练习数据】
微软PowerBI考试 PL300-选择 Power BI 模型框架 20 多年来,Microsoft 持续对企业商业智能 (BI) 进行大量投资。 Azure Analysis Services (AAS) 和 SQL Server Analysis Services (SSAS) 基于无数企业使用的成熟的 BI 数据建模技术。 同样的技术也是 Power BI 数据…...

关于iview组件中使用 table , 绑定序号分页后序号从1开始的解决方案
问题描述:iview使用table 中type: "index",分页之后 ,索引还是从1开始,试过绑定后台返回数据的id, 这种方法可行,就是后台返回数据的每个页面id都不完全是按照从1开始的升序,因此百度了下,找到了…...
postgresql|数据库|只读用户的创建和删除(备忘)
CREATE USER read_only WITH PASSWORD 密码 -- 连接到xxx数据库 \c xxx -- 授予对xxx数据库的只读权限 GRANT CONNECT ON DATABASE xxx TO read_only; GRANT USAGE ON SCHEMA public TO read_only; GRANT SELECT ON ALL TABLES IN SCHEMA public TO read_only; GRANT EXECUTE O…...
python爬虫:Newspaper3k 的详细使用(好用的新闻网站文章抓取和解析的Python库)
更多内容请见: 爬虫和逆向教程-专栏介绍和目录 文章目录 一、Newspaper3k 概述1.1 Newspaper3k 介绍1.2 主要功能1.3 典型应用场景1.4 安装二、基本用法2.2 提取单篇文章的内容2.2 处理多篇文档三、高级选项3.1 自定义配置3.2 分析文章情感四、实战案例4.1 构建新闻摘要聚合器…...

相机从app启动流程
一、流程框架图 二、具体流程分析 1、得到cameralist和对应的静态信息 目录如下: 重点代码分析: 启动相机前,先要通过getCameraIdList获取camera的个数以及id,然后可以通过getCameraCharacteristics获取对应id camera的capabilities(静态信息)进行一些openCamera前的…...
大模型多显卡多服务器并行计算方法与实践指南
一、分布式训练概述 大规模语言模型的训练通常需要分布式计算技术,以解决单机资源不足的问题。分布式训练主要分为两种模式: 数据并行:将数据分片到不同设备,每个设备拥有完整的模型副本 模型并行:将模型分割到不同设备,每个设备处理部分模型计算 现代大模型训练通常结合…...
实现弹窗随键盘上移居中
实现弹窗随键盘上移的核心思路 在Android中,可以通过监听键盘的显示和隐藏事件,动态调整弹窗的位置。关键点在于获取键盘高度,并计算剩余屏幕空间以重新定位弹窗。 // 在Activity或Fragment中设置键盘监听 val rootView findViewById<V…...
今日学习:Spring线程池|并发修改异常|链路丢失|登录续期|VIP过期策略|数值类缓存
文章目录 优雅版线程池ThreadPoolTaskExecutor和ThreadPoolTaskExecutor的装饰器并发修改异常并发修改异常简介实现机制设计原因及意义 使用线程池造成的链路丢失问题线程池导致的链路丢失问题发生原因 常见解决方法更好的解决方法设计精妙之处 登录续期登录续期常见实现方式特…...
Xen Server服务器释放磁盘空间
disk.sh #!/bin/bashcd /run/sr-mount/e54f0646-ae11-0457-b64f-eba4673b824c # 全部虚拟机物理磁盘文件存储 a$(ls -l | awk {print $NF} | cut -d. -f1) # 使用中的虚拟机物理磁盘文件 b$(xe vm-disk-list --multiple | grep uuid | awk {print $NF})printf "%s\n"…...

day36-多路IO复用
一、基本概念 (服务器多客户端模型) 定义:单线程或单进程同时监测若干个文件描述符是否可以执行IO操作的能力 作用:应用程序通常需要处理来自多条事件流中的事件,比如我现在用的电脑,需要同时处理键盘鼠标…...