CCNP课程实验-04-BGP_CFG

目录

  • 实验条件
    • 网络拓朴
  • 基础配置
  • 需求实现
    • IGP部分
      • 1. 按照图示配置OSPF区域,RID为Loopback 0地址。其中Area 146要配置为OSPF的特殊区域。
      • 2. 配置其它路由协议,重分布使得路由互相注入,实现全网互通。
      • 3. R1配置策略路由,使得R2经R1去往Area 57的数据流走R6;R2经R1去往EIGRP 35的数据流走R4。 (请在R2采用针对3.3.3.3和5.5.5.5进行Traceroute测试)
      • 4. 在R3的EIGRP 35上增加以下网段:
    • BGP部分
      • 1. 如图按红色字体规划配置BGP,RID为Loopback 0地址。
      • 2. 配置AS 146的R1为路由反射器,R4/R6为客户端。要求采用peer-group的方式配置。
      • 3. 在R2上增加以下网段,并发布到BGP:
      • 4. 在适当路由器上修改BGP路由属性,使得R2前往30.30.30.30/27的路径为:R1-R6-R7-R5-R3。

实验条件

网络拓朴

在这里插入图片描述
拓扑中的IP地址段采用:172.8.AB.X/24,其中AB为两台路由器编号组合。
例如:R3-R5之间的AB为35,X为路由器编号,例如R3的X=3
所有路由器都有一个Loopback 0接口,地址格式为:X.X.X.X/32,其中X为路由器编号。
R1/R4/R6之间的网段为:172.8.146.X/24,其中X为路由器编号。
没有特殊要求,不允许使用静态路由。

基础配置

R1

interface Loopback0ip address 1.1.1.1 255.255.255.255
interface Ethernet0/0ip address 172.8.12.1 255.255.255.0
interface Ethernet0/1ip address 172.8.146.1 255.255.255.0

R2

interface Loopback0ip address 2.2.2.2 255.255.255.255
interface Ethernet0/0ip address 172.8.12.2 255.255.255.0

R3

interface Loopback0ip address 3.3.3.3 255.255.255.255
interface Ethernet0/0ip address 172.8.35.3 255.255.255.0

R4

interface Loopback0ip address 4.4.4.4 255.255.255.255
interface Ethernet0/0ip address 172.8.47.4 255.255.255.0
interface Ethernet0/1ip address 172.8.146.4 255.255.255.0

R5

interface Loopback0ip address 5.5.5.5 255.255.255.255
interface Ethernet0/0ip address 172.8.35.5 255.255.255.0
interface Ethernet0/1ip address 172.8.57.5 255.255.255.0

R6

interface Loopback0ip address 6.6.6.6 255.255.255.255
interface Ethernet0/1ip address 172.8.146.6 255.255.255.0
interface Ethernet0/2ip address 172.8.67.6 255.255.255.0

R7

interface Loopback0ip address 7.7.7.7 255.255.255.255
interface Ethernet0/0ip address 172.8.47.7 255.255.255.0
interface Ethernet0/1ip address 172.8.57.7 255.255.255.0
interface Ethernet0/2ip address 172.8.67.7 255.255.255.0

需求实现

IGP部分

1. 按照图示配置OSPF区域,RID为Loopback 0地址。其中Area 146要配置为OSPF的特殊区域。

R1

router eigrp 12network 172.8.12.1 0.0.0.0eigrp router-id 1.1.1.1
router ospf 100router-id 1.1.1.1area 146 nssa	// 非ABR,配置NSSA区域,只要配置成nssa即可network 1.1.1.1 0.0.0.0 area 146interface Ethernet0/1ip ospf 100 area 146

R2

router eigrp 12network 2.2.2.2 0.0.0.0network 172.8.12.2 0.0.0.0eigrp router-id 2.2.2.2

R3

router eigrp 35network 3.3.3.3 0.0.0.0network 172.8.35.3 0.0.0.0eigrp router-id 3.3.3.3

R4

router ospf 100router-id 4.4.4.4//需要引入外部的路由。所以特殊区域只能选择NSSA,由于NSSA默认不会下发默认路由,这样的话,会影响访问外部路由//因此,需要配置成Totally NSSA, 或是配置default-information-originate, area 146 nssa default-information-originatenetwork 4.4.4.4 0.0.0.0 area 0

R5

router eigrp 35network 172.8.35.5 0.0.0.0eigrp router-id 5.5.5.5
router ospf 100router-id 5.5.5.5network 5.5.5.5 0.0.0.0 area 57interface Ethernet0/1ip ospf 100 area 57

R6

router ospf 100router-id 6.6.6.6//需要引入外部的路由。所以特殊区域只能选择NSSA,由于NSSA默认不会下发默认路由,这样的话,会影响访问外部路由//因此,需要配置成Totally NSSA, 或是配置default-information-originate, area 146 nssa default-information-originatenetwork 6.6.6.6 0.0.0.0 area 0interface Ethernet0/1ip ospf 100 area 146
interface Ethernet0/2ip ospf 100 area 0

R7

router ospf 100network 7.7.7.7 0.0.0.0 area 0interface Ethernet0/0ip ospf 100 area 0
interface Ethernet0/1ip ospf 100 area 57
interface Ethernet0/2ip ospf 100 area 0

2. 配置其它路由协议,重分布使得路由互相注入,实现全网互通。

R1 ASBR配置 双向重分布路由
OSPF重分布进eigrp的时候,默认的metric值无穷大,导致路由无效,因此需要特别指定引入的路由的metric计算值。

router eigrp 12redistribute ospf 100 metric 10000 100 255 255 1500
router ospf 100redistribute eigrp 12 metric-type 1 subnets

R5 ASBR配置双向重分布路由

router eigrp 35redistribute ospf 100 metric 10000 100 255 255 1500
router ospf 100redistribute eigrp 35 metric-type 1 subnets

全网互通结果检测

R3#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R3#ping 2.2.2.2 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R3#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 5/5/6 ms
R3#ping 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 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#ping 5.5.5.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R3#ping 6.6.6.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R3#ping 7.7    
% Unrecognized host or address, or protocol not running.R3#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:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

3. R1配置策略路由,使得R2经R1去往Area 57的数据流走R6;R2经R1去往EIGRP 35的数据流走R4。 (请在R2采用针对3.3.3.3和5.5.5.5进行Traceroute测试)

  1. R2经R1去往Area 57的数据流走R6;
    R2的ip是2.2.2.2,AREA 57的目标网段是:172.8.57.0 0.0.0.255
    access-list 125 permit ip host 2.2.2.2 172.8.57.0 0.0.0.255
    access-list 125 permit ip host 2.2.2.2 host 5.5.5.5
  2. R2经R1去往EIGRP 35的数据流走R4;
    R2的ip是2.2.2.2,EIGRP 35的目标网段是:172.8.35.0 0.0.0.255
    access-list 123 permit ip host 2.2.2.2 172.8.35.0 0.0.0.255
    access-list 123 permit ip host 2.2.2.2 host 3.3.3.3

在R1上进行配置

access-list 123 permit ip host 2.2.2.2 172.8.35.0 0.0.0.255
access-list 123 permit ip host 2.2.2.2 host 3.3.3.3
access-list 125 permit ip host 2.2.2.2 172.8.57.0 0.0.0.255
access-list 125 permit ip host 2.2.2.2 host 5.5.5.5ip policy route-map PBR
route-map PBR permit 10match ip address 123// 配置策略,由2.2.2.2发起,前往EIGRP35区域的,走R4set ip next-hop 172.8.146.4
route-map PBR permit 20match ip address 125// 配置策略,由2.2.2.2发起,前往AREA57区域的,走R6 set ip next-hop 172.8.146.6
route-map PBR permit 30//在R1入口方向配置策略
interface Ethernet0/0ip policy route-map PBR

效果测试

R2#traceroute 3.3.3.3 source 2.2.2.2
Type escape sequence to abort.
Tracing the route to 3.3.3.3
VRF info: (vrf in name/id, vrf out name/id)1 172.8.12.1 0 msec 1 msec 0 msec2 172.8.146.4 0 msec 0 msec 0 msec3 172.8.47.7 0 msec 0 msec 1 msec4 172.8.57.5 0 msec 1 msec 0 msec5 172.8.35.3 1 msec *  1 msec
R2#traceroute 5.5.5.5 source 2.2.2.2
Type escape sequence to abort.
Tracing the route to 5.5.5.5
VRF info: (vrf in name/id, vrf out name/id)1 172.8.12.1 1 msec 0 msec 0 msec2 172.8.146.6 0 msec 1 msec 0 msec3 172.8.67.7 1 msec 0 msec 0 msec4 172.8.57.5 1 msec *  1 msec
R2#

4. 在R3的EIGRP 35上增加以下网段:

		Loopback17:17.17.17.17/32,Loopback101:100.100.100.101/32Loopback18:18.18.18.18/32,Loopback102:100.100.100.102/32
a.配置使得Loopback 18网段只能在EIGRP 35内传输,其它地址要求全网Ping通。
b.配置Loopback 100和Loopback 101最精确的路由汇总,隐藏明细路由,且汇总路由不允许在EIGRP 35出现。

R3配置环回口地址

interface Loopback1ip address 17.17.17.17 255.255.255.255
interface Loopback2ip address 18.18.18.18 255.255.255.255
interface Loopback3ip address 100.100.100.101 255.255.255.255
interface Loopback4ip address 100.100.100.102 255.255.255.255

宣告到EIGRP

router eigrp 35network 17.17.17.17 0.0.0.0network 18.18.18.18 0.0.0.0network 100.100.100.101 0.0.0.0network 100.100.100.102 0.0.0.0

a.配置使得Loopback 18网段只能在EIGRP 35内传输,其它地址要求全网Ping通。
在重分布进ospf时拦截掉18网段路由
在R5的路由器上配置

access-list 18 permit 18.18.18.18route-map R3-18 deny 10match ip address 18
route-map R3-18 permit 20router ospf 100redistribute eigrp 35 metric-type 1 subnets route-map R3-18

在R1上测试网络结果

R1#ping 18.18.18.18
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 18.18.18.18, timeout is 2 seconds:
U.U.U
Success rate is 0 percent (0/5)
R1#ping 17.17.17.17
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 17.17.17.17, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R1#ping 100.100.100.101
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.101, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R1#ping 100.100.100.102
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.102, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R1#

b.配置Loopback 100和Loopback 101最精确的路由汇总,隐藏明细路由,且汇总路由不允许在EIGRP 35出现。
在R5的路由器上配置

ip prefix-list deny_100 seq 5 permit 100.100.100.100/30route-map deny_100 deny 10match ip address prefix-list deny_100
route-map deny_100 permit 20router eigrp 35redistribute ospf 100 metric 10000 100 255 255 1500 route-map deny_100

查看R7的路由表信息

R7(config-router)#do show ip route
......
O E1     17.17.17.17 [110/30] via 172.8.57.5, 00:56:47, Ethernet0/1100.0.0.0/30 is subnetted, 1 subnets
O E1     100.100.100.100 [110/30] via 172.8.57.5, 00:24:01, Ethernet0/1172.8.0.0/16 is variably subnetted, 9 subnets, 2 masks
......
R7(config-router)#

查看EIGRP 35内的路由表信息

R3(config)#do show ip route          
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route+ - replicated route, % - next hop override, p - overrides from PfRGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnets
D EX     1.1.1.1 [170/307200] via 172.8.35.5, 00:18:35, Ethernet0/02.0.0.0/32 is subnetted, 1 subnets
D EX     2.2.2.2 [170/307200] via 172.8.35.5, 00:18:35, Ethernet0/03.0.0.0/32 is subnetted, 1 subnets
C        3.3.3.3 is directly connected, Loopback04.0.0.0/32 is subnetted, 1 subnets
D EX     4.4.4.4 [170/307200] via 172.8.35.5, 00:18:35, Ethernet0/05.0.0.0/32 is subnetted, 1 subnets
D EX     5.5.5.5 [170/307200] via 172.8.35.5, 00:18:35, Ethernet0/06.0.0.0/32 is subnetted, 1 subnets
D EX     6.6.6.6 [170/307200] via 172.8.35.5, 00:18:35, Ethernet0/07.0.0.0/32 is subnetted, 1 subnets
D EX     7.7.7.7 [170/307200] via 172.8.35.5, 00:18:35, Ethernet0/017.0.0.0/32 is subnetted, 1 subnets
C        17.17.17.17 is directly connected, Loopback118.0.0.0/32 is subnetted, 1 subnets
C        18.18.18.18 is directly connected, Loopback2100.0.0.0/32 is subnetted, 2 subnets
C        100.100.100.101 is directly connected, Loopback3
C        100.100.100.102 is directly connected, Loopback4172.8.0.0/16 is variably subnetted, 7 subnets, 2 masks
D EX     172.8.12.0/24 [170/307200] via 172.8.35.5, 00:18:35, Ethernet0/0
C        172.8.35.0/24 is directly connected, Ethernet0/0
L        172.8.35.3/32 is directly connected, Ethernet0/0
D EX     172.8.47.0/24 [170/307200] via 172.8.35.5, 00:18:35, Ethernet0/0
D EX     172.8.57.0/24 [170/307200] via 172.8.35.5, 00:18:35, Ethernet0/0
D EX     172.8.67.0/24 [170/307200] via 172.8.35.5, 00:18:35, Ethernet0/0
D EX     172.8.146.0/24 [170/307200] via 172.8.35.5, 00:18:35, Ethernet0/0
R3(config)#

R3的路由表并没有汇总的100网段路由。

BGP部分

1. 如图按红色字体规划配置BGP,RID为Loopback 0地址。

R1

router bgp 146bgp router-id 1.1.1.1neighbor IBGP peer-groupneighbor IBGP remote-as 146neighbor IBGP update-source Loopback0neighbor IBGP route-reflector-clientneighbor IBGP next-hop-selfneighbor 4.4.4.4 peer-group IBGPneighbor 6.6.6.6 peer-group IBGPneighbor 172.8.12.2 remote-as 22

R2

router bgp 22bgp router-id 2.2.2.2neighbor 172.8.12.1 remote-as 146

R3

router bgp 33bgp router-id 3.3.3.3neighbor 172.8.35.5 remote-as 57

R4

router bgp 146bgp router-id 4.4.4.4neighbor IBGP peer-groupneighbor IBGP remote-as 146neighbor IBGP update-source Loopback0neighbor IBGP next-hop-selfneighbor 1.1.1.1 peer-group IBGPneighbor 6.6.6.6 peer-group IBGPneighbor 172.8.47.7 remote-as 57

R5

router bgp 57bgp router-id 5.5.5.5neighbor 7.7.7.7 remote-as 57neighbor 7.7.7.7 update-source Loopback0neighbor 7.7.7.7 next-hop-selfneighbor 172.8.35.3 remote-as 33

R6

router bgp 146bgp router-id 6.6.6.6bgp log-neighbor-changesneighbor IBGP peer-groupneighbor IBGP remote-as 146neighbor IBGP update-source Loopback0neighbor IBGP next-hop-selfneighbor 1.1.1.1 peer-group IBGPneighbor 4.4.4.4 peer-group IBGPneighbor 172.8.67.7 remote-as 57

R7

router bgp 57bgp router-id 7.7.7.7neighbor 5.5.5.5 remote-as 57neighbor 5.5.5.5 update-source Loopback0neighbor 5.5.5.5 next-hop-selfneighbor 172.8.47.4 remote-as 146neighbor 172.8.67.6 remote-as 146

2. 配置AS 146的R1为路由反射器,R4/R6为客户端。要求采用peer-group的方式配置。

R1配置路由反射器

router bgp 146neighbor IBGP route-reflector-client或neighbor 4.4.4.4 route-reflector-clientneighbor 6.6.6.6 route-reflector-client

3. 在R2上增加以下网段,并发布到BGP:

	Loopback24:192.168.24.1/24			Loopback25:192.168.25.1/24			Loopback26:192.168.26.1/24在R3上增加以下网段,Loopback30:30.30.30.30/27,并发布到BGP:配置使得R2的BGP表如下:

在这里插入图片描述
R2配置3个环回口

interface Loopback24ip address 192.168.24.1 255.255.255.0
interface Loopback25ip address 192.168.25.1 255.255.255.0
interface Loopback26ip address 192.168.26.1 255.255.255.0

R3配置1个环回口

interface Loopback30ip address 30.30.30.30 255.255.255.224

查看R2的BGP路由表

R2(config-router)#do show ip bgp
BGP table version is 5, local router ID is 2.2.2.2
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*>   30.30.30.0/27    172.8.12.1                             0 146 57 33 i*>   192.168.24.0     0.0.0.0                  0         32768 i*>   192.168.25.0     0.0.0.0                  0         32768 i*>   192.168.26.0     0.0.0.0

对比截图,发现在多了一条掩码长度为22的汇聚路由。而24,25,26三条路由被镇压。第3字节的二进制如下:
24的二进制为 00001100
25的二进制为 00001101
26的二进制为 00001110
变动的位数是最后的2位,固定不变的高6位的值为:24,因此聚合的路由就为:192.168.24.0/22。
执行以下命令

router bgp 22// 不带参数summary-only的话,不会镇压其它明细路由,根据图片的要求,所以需要带上summary-onlyaggregate-address 192.168.24.0 255.255.252.0 as-set summary-only

再次查看BGP路由表

R2(config-router)#do show ip bgp      
BGP table version is 19, local router ID is 2.2.2.2
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*>   30.30.30.0/27    172.8.12.1                             0 146 57 33 is>   192.168.24.0     0.0.0.0                  0         32768 i*>   192.168.24.0/22  0.0.0.0                       100  32768 is>   192.168.25.0     0.0.0.0                  0         32768 is>   192.168.26.0     0.0.0.0                  0         32768 i
R2(config-router)#

比对图片,目的达到。

4. 在适当路由器上修改BGP路由属性,使得R2前往30.30.30.30/27的路径为:R1-R6-R7-R5-R3。

注:此时R2的BGP表仍如上面所示不变,并且不改变R4路由器的BGP选路。
查看当前R2到R3的选路路径。

R2#traceroute 30.30.30.30
Type escape sequence to abort.
Tracing the route to 30.30.30.30
VRF info: (vrf in name/id, vrf out name/id)1 172.8.12.1 0 msec 0 msec 1 msec2 172.8.146.4 0 msec 0 msec 1 msec3 172.8.47.7 0 msec 0 msec 0 msec4 172.8.57.5 0 msec 1 msec 0 msec5 172.8.35.3 1 msec *  2 msec

当前的路径为:R1-R4-R7-R5-R3
要达成目标则可以以下的几个策略来达到目的

  1. 修改Weight权重值
    修改邻居R6的weight权重值
router bgp 146neighbor 6.6.6.6 weight 1000

查看BGP路由表

R1(config-router)#do show ip bgp
BGP table version is 40, local router ID is 1.1.1.1
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  30.30.30.0/27    6.6.6.6                  0    100   1000 57 33 i* i                   4.4.4.4                  0    100      0 57 33 i*>   192.168.24.0/22  172.8.12.2               0             0 22 i

测试R2到R3的路径

R2#traceroute 30.30.30.30
Type escape sequence to abort.
Tracing the route to 30.30.30.30
VRF info: (vrf in name/id, vrf out name/id)1 172.8.12.1 1 msec 0 msec 0 msec2 172.8.146.6 0 msec 0 msec 0 msec3 172.8.67.7 1 msec 0 msec 1 msec4 172.8.57.5 0 msec 1 msec 0 msec5 172.8.35.3 1 msec *  2 msec
  1. 修改local-preference
    确定30网段路由传递方向。R3 -> R5 -> R7 -> [ R4或R6 ] -> R1 -> R2
    将来数据的传递方向则是反过来,因此在R1将会有多条可选路径去往R3,那么要影响R1选择R4和R6(除了上面的weight)就是调整R4和R6传递过来的路由在R1上的local-preference值。默认是不传递该值的。直接就是默认值100,可以进行的操作有如下方法
    a. 调小R4或调大R6的bgp default local-preference 值。不过这样的话,R4所有过来的路由的local-preference都会受到影响。范围太大。
    b. 使用route-map调整R4/R6,对R1出方向的local-preference值
    c. 因为要求对R4不做改动,因此可以在R1路由器上对R4-R1-in方向 或 R6-R1-in方向的local-preference值。
    R1上配置in方向的local-preference值修改
ip prefix-list 30 seq 5 permit 30.30.30.0/27route-map R4-R1-in permit 10match ip address prefix-list 30set local-preference 99
route-map R4-R1-in permit 20router bgp 146neighbor 4.4.4.4 route-map R4-R1-in in

查询local-preference值

R1(config-router)#do show ip bgp
BGP table version is 58, local router ID is 1.1.1.1
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  30.30.30.0/27    4.4.4.4                  0     99      0 57 33 i*>i                   6.6.6.6                  0    100      0 57 33 i*>   192.168.24.0/22  172.8.12.2               0             0 22 i
R1(config-router)# 

在R2测试配置结果

R2#traceroute 30.30.30.30
Type escape sequence to abort.
Tracing the route to 30.30.30.30
VRF info: (vrf in name/id, vrf out name/id)1 172.8.12.1 0 msec 0 msec 1 msec2 172.8.146.6 0 msec 0 msec 1 msec3 172.8.67.7 0 msec 1 msec 0 msec4 172.8.57.5 1 msec 1 msec 0 msec5 172.8.35.3 1 msec *  1 msec
R2#

目标达成:R1-> R6-> R7-> R5-> R3

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

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

相关文章

Vue 框架前导:详解 Ajax

Ajax Ajax 是异步的 JavaScript 和 XML。简单来说就是使用 XMLHttpRequest 对象和服务器通信。可以使用 JSON、XML、HTML 和 text 文本格式来发送和接收数据。具有异步的特性,可在不刷新页面的情况下实现和服务器的通信,交换数据或者更新页面 01. 体验 A…

18、BLIP

简介 github BLIP提出了一种基于预训练的方法,通过联合训练视觉和语言模型来提升多模态任务的性能。 BLIP(Bootstrapping Language-Image Pretraining)是salesforce在2022年提出的多模态框架,是理解和生成的统一,引入了跨模态的编码器和解码…

词嵌入位置编码的实现(基于pytorch)

背景介绍 在transformers架构当中,对于词向量的输入需要加上原本词对应的位置信息,作为输入到模型中训练的input,那具体的位置编码如何实现呢?本篇博客就跟大家一起分享一下对应的步骤 位置编码的公式 对于词向量的位置编码的方…

西电期末1017.有序序列插值

一.题目 二.分析与思路 简单题。主要考察简单的排序&#xff0c;最后的插入数据同样不用具体实现&#xff0c;只需在输出时多输出一下即可&#xff0c;注意顺序&#xff01;&#xff01; 三.代码实现 #include<bits/stdc.h>//万能头 int main() {int n;scanf("%d…

HTML5+CSS3+Vue小实例:彩色圆环溶解加载动画

实例:彩色圆环溶解加载动画 技术栈:HTML+CSS+Vue.js 效果: 源码: 【HTML】 <!DOCTYPE html> <html lang="zh-CN"> <head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge&…

【已解决】Invalid bound statement (not found)

报错讯息 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.casey.mapper.SysRoleMapper.getUserRoleCode at org.apache.ibatis.binding.MapperMethod S q l C o m m a n d . < i n i t > ( M a p p e r M e t h o d . j a v a :…

Springcloud 微服务实战笔记 Ribbon

使用 Configurationpublic class CustomConfiguration {BeanLoadBalanced // 开启负载均衡能力public RestTemplate restTemplate() {return new RestTemplate();}}可看到使用Ribbon&#xff0c;非常简单&#xff0c;只需将LoadBalanced注解加在RestTemplate的Bean上&#xff0…

视频通话录制 方案 教程

一些基本概要 1 市面流行的音视频产品&#xff0c;都包含一对一、一对多、多对多通话&#xff0c;云端录制等这些基本功能&#xff0c;有些厂商支持本地服务录制。 2 本地服务录制&#xff0c;云端录制区别 两个录制区别在于&#xff0c;本地服务端录制的 SDK 要求部署在 …

【Proteus仿真】【Arduino单片机】电蒸锅温度控制系统

文章目录 一、功能简介二、软件设计三、实验现象联系作者 一、功能简介 本项目使用Proteus8仿真Arduino单片机控制器&#xff0c;使用LCD1602液晶、按键开关、蜂鸣器、DS18B20温度传感器&#xff0c;液位传感器、继电器控制加热保温装置等。 主要功能&#xff1a; 系统运行后&…

C++-模板与容器

1、模板 模板可以让类或者函数支持一种通用类型&#xff0c;这种通用类型在实际运行过程中可以使用任何数据类型。因此程序员可以写出一些与类型无关的代码。这种编程方式也叫“泛型编程”。 通常有两种形式&#xff1a; 函数模板类模板 1.1 函数模板 //模板类型声明 template&…

中文自然语言处理库(SnowNLP)的简单使用

snownlp 是一个简单易用的 Python 库&#xff0c;专为处理中文文本而设计。它基于自然语言处理技术&#xff0c;提供了多种功能&#xff0c;包括分词、词性标注、情感分析、文本转换&#xff08;简繁转换&#xff09;等。这个库的核心优势在于对中文文本的处理能力&#xff0c;…

Navicat 技术干货 | 聚合查询的介绍

基础 SQL 查询可以检索、插入、更新和删除记录&#xff0c;而聚合查询可通过提供求和、平均值或最大/最小值等的大型结果集&#xff0c;将数据库交互提升到一个新的水平。本文中&#xff0c;我们将探索聚合 SQL 查询的基础知识&#xff0c;并研究如何有效的利用他们来分析和汇总…

14.1 Linux 并发与竞争

一、并发与竞争 并发&#xff1a;多个执行单元同时、并行执行。 竞争&#xff1a;并发的执行单元同时访问共享资源(硬件资源和软件上的全局变量等)易导致竞态。 二、原子操作 1. 原子操作简介 原子操作&#xff1a;不能再进一步分割的操作&#xff0c;一般用于变量或位操作。 …

关于设计模式的一点总结

一、GoF 23种设计模式 1.分类 GoF 23种设计模式可分为几类&#xff1a;创建型、结构型和行为型。如下表 分类设计模式创建型单例模式、工厂方法模式、抽象工厂模式、原型模式、建造者模式结构型代理模式、适配器模式、装饰者模式、桥接模式、组合模式、门面模式、享元模式行…

基于多反应堆的高并发服务器【C/C++/Reactor】(中)添加 删除 修改 释放

在上篇文章&#xff08;处理任务队列中的任务&#xff09;中我们讲解了处理任务队列中的任务的具体流程&#xff0c;eventLoopProcessTask函数的作用&#xff1a; 处理队列中的任务&#xff0c;需要遍历链表并根据type进行对应处理,也就是处理dispatcher中的任务。 // 处理任…

Idea启动运行“错误:java: 无效的源发行版: 13”,如何解决?

以上是以JDK1.8的项目作为举例&#xff0c;如果您用的是其他版本请选择对应的language level idea中项目的language level的含义 language level指的是编译项目代码所用的jdk版本。那么&#xff0c;从这个定义出发会有两个小问题。 ❶ 如果project sdk是jdk8&#xff0c;那么la…

2020年认证杯SPSSPRO杯数学建模C题(第一阶段)抗击疫情,我们能做什么全过程文档及程序

2020年认证杯SPSSPRO杯数学建模 C题 抗击疫情&#xff0c;我们能做什么 原题再现&#xff1a; 2020 年 3 月 12 日&#xff0c;世界卫生组织&#xff08;WHO&#xff09;宣布&#xff0c;席卷全球的冠状病毒引发的病毒性肺炎&#xff08;COVID-19&#xff09;是一种大流行病。…

解析大语言模型LLM的幻觉问题:消除错觉、提高认知

文章目录 前言一、幻觉介绍二、幻觉产生的原因三、幻觉的现象四、幻觉的分类五、幻觉解决方案六、幻觉待解决问题后记 前言 在人类的感知和认知过程中&#xff0c;幻觉一直是一个被广泛讨论和研究的问题。幻觉指的是一种虚假的感知或认知经验&#xff0c;使我们看到、听到或感…

企业微信开发:自建应用:应用形态(网页,小程序,默认页面)

概述 问题&#xff1a; 企业微信&#xff0c;自建应用&#xff0c;应该实现成什么样子&#xff1f;应用里是一个网页应用吗&#xff1f; 企业微信自建应用可以实现为多种形态&#xff0c;根据实际需求和功能设计&#xff0c;它可以是一个网页应用、一个小程序或者结合企业微信提…

【Pytorch】学习记录分享9——新闻数据集文本分类任务实战

【Pytorch】学习记录分享9——PyTorch新闻数据集文本分类任务 1. 认为主流程code2. NLP 对话和预测基本均属于分类任务详细见3. Tensorborad 1. 认为主流程code import time import torch import numpy as np from train_eval import train, init_network from importlib impo…