百科生活 投稿
关于【32768】,32768是2的多少次方,今天小编给您分享一下,如果对您有所帮助别忘了关注本站哦。
- 内容导航:
- 1、32768
- 2、实验 | 思科 ASA BGP 配置
1、32768
32768是2的几次方32768是2的多少次方?2^15=32768分析:2^3=82^5=3232768/32=32x32所以2^15=32768指数的运算法则:1、[a^m]×[a^n]=a^(m+n) 【同底数幂相乘,底数不变,指数相加】2、[a^m]÷[a^n]=a^(m-n) 【同底数幂相除,底数不变,指数相减】3、[a^m]^n=a^(mn) 【幂的乘方,底数不变,指数相乘】4、[ab]^m=(a^m)×(a^m) 【积的乘方,等于各个因式分别乘方,再把所得的幂相乘】
32768mb等于多少g2、实验 | 思科 ASA BGP 配置
在这篇文章中,我们将研究在 Cisco ASA 中使用 BGP 来允许在来自同一 ISP 的 2 个以太网连接之间进行故障转移。
测试实验拓扑:
第 1 阶段 - 设置路由器
我们的 2 台路由器上将有镜像配置,并且它们都将向 ASA 通告默认路由。
router bgp 111 bgp log-neighbor-changes neighbor 2.2.2.2 remote-as 111 neighbor 2.2.2.2 update-source Loopback0 neighbor 2.2.2.2 next-hop-self neighbor 11.11.11.2 remote-as 65000 neighbor 11.11.11.2 default-originate
非常基本的配置,这边使用了 IS-IS 在两个路由器之间共享环回信息。
第 2 阶段 - 进入 ASA
首先是选择我们的宣告前缀,我使用的是99.99.99.99/32,但请注意,此时它未附加到接口,我们可以通过使用Null0来解决这个问题
route Null0 99.99.99.99 255.255.255.255
现在我们可以设置一个前缀列表:
prefix-list MYIP seq 5 permit 99.99.99.99/32
最后是实际的 BGP 配置:
router bgp 65000 bgp log-neighbor-changes address-family ipv4 unicast neighbor 10.10.10.1 remote-as 111 neighbor 10.10.10.1 activate neighbor 10.10.10.1 prefix-list MYIP out neighbor 11.11.11.1 remote-as 111 neighbor 11.11.11.1 activate neighbor 11.11.11.1 prefix-list MYIP out network 99.99.99.99 mask 255.255.255.255 no auto-summary no synchronization exit-address-family
它的配置方式有点奇怪,但它工作正常。
第 3 阶段 - 测试
第一个测试是show bgp summ,在 ASA 语言中是:
ciscoasa# show bgp summBGP router identifier 192.168.192.1, local AS number 65000BGP table version is 13, main routing table version 132 network entries using 400 bytes of memory3 path entries using 240 bytes of memory2/2 BGP path/bestpath attribute entries using 416 bytes of memory1 BGP AS-PATH entries using 24 bytes of memory0 BGP route-map cache entries using 0 bytes of memory0 BGP filter-list cache entries using 0 bytes of memoryBGP using 1080 total bytes of memoryBGP activity 14/12 prefixes, 57/54 paths, scan interval 60 secsNeighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd10.10.10.1 4 111 8 6 13 0 0 00:01:35 1 11.11.11.1 4 111 8 6 13 0 0 00:01:35 1
请注意,我们从每个对等方收到 1 条路由,这应该是默认路由,但我们可以测试一下:
ciscoasa# sh route bgp Codes: L - local, 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, V - VPN 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, + - replicated routeGateway of last resort is 11.11.11.1 to network 0.0.0.0B* 0.0.0.0 0.0.0.0 [20/0] via 11.11.11.1, 00:03:44
以及更多信息……
ciscoasa# show bgp 0.0.0.0/0BGP routing table entry for 0.0.0.0/0, version 2Paths: (2 available, best #1, table default) Not advertised to any peer 111 11.11.11.1 from 11.11.11.1 (1.1.1.1) Origin IGP, localpref 100, valid, external, best 111 10.10.10.1 from 10.10.10.1 (2.2.2.2) Origin IGP, localpref 100, valid, external
我们还应该检查我们是否向我们的同行宣告了99.99.99.99/32前缀
ciscoasa# show bgp neighbors 10.10.10.1 advertised-routes BGP table version is 13, local router ID is 192.168.192.1Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipathOrigin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path*> 99.99.99.99/32 0.0.0.0 0 32768 iTotal number of prefixes 1
第 4 阶段 - 调整
最后一部分是调整设置以使用主线路和备用线路,目前两条链路不受控制,默认路由以最长正常运行时间为准!
第一阶段是确保我们将流量发送到主连接之外,我们将使用本地偏好,但还有其他方式,例如权重,这是通过附加到 bap 邻居的路线图来完成的。
prefix-list DG seq 5 permit 0.0.0.0/0route-map OUTMAP permit 10 match ip address prefix-list DG set local-preference 200router bgp 65000 bgp log-neighbor-changes address-family ipv4 unicast neighbor 11.11.11.1 remote-as 111 neighbor 11.11.11.1 activate neighbor 11.11.11.1 prefix-list MYIP out neighbor 11.11.11.1 route-map OUTMAP in
我们可以验证它正在使用以下输出:
ciscoasa# show bgp 0.0.0.0/0BGP routing table entry for 0.0.0.0/0, version 17Paths: (2 available, best #1, table default) Not advertised to any peer 111 11.11.11.1 from 11.11.11.1 (1.1.1.1) Origin IGP, localpref 200, valid, external, best 111 10.10.10.1 from 10.10.10.1 (2.2.2.2) Origin IGP, localpref 100, valid, external
接下来,我们需要确保流量通过相同的主路由发回给我们,由于我们使用的是同一服务提供商,因此我们可以使用 MED,更可靠的方法是 as prepend功能:
prefix-list MYIP seq 5 permit 99.99.99.99/32route-map BAKMAP permit 10 match ip address prefix-list MYIP set as-path prepend 65000 65000router bgp 65000 bgp log-neighbor-changes address-family ipv4 unicast neighbor 10.10.10.1 remote-as 111 neighbor 10.10.10.1 activate neighbor 10.10.10.1 prefix-list MYIP out neighbor 10.10.10.1 route-map BAKMAP out
这可以在上游路由器上验证:
R2#sh ip bgpBGP table version is 43, local router ID is 2.2.2.2Status 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, ? - incompleteRPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path 0.0.0.0 0.0.0.0 0 i *>i 99.99.99.99/32 1.1.1.1 0 100 0 65000 i * 10.10.10.2 0 0 65000 65000 65000 i
本文关键词:32768mb是多少g,32768的补码怎么计算,32768的二进制表示,32768转化为十六进制,32768kb等于多少g。这就是关于《32768,32768是2的多少次方(ASA)》的所有内容,希望对您能有所帮助!
- 最近发表