返回頂部

產品新聞

Cisco:如何查看某一條流在etherchannel中走哪一條物理link

日期:2015-06-02 點擊:     關鍵詞:Cisco Catalyst 6500,4500,2960,3750,3750G,3750X,3560 Series S

2015-06-02

  如何查看某一條流在etherchannel中走哪一條物理link,涉及設備平臺:Cisco Catalyst 6500, 4500, 2960, 3750, 3750G,3750X, and 3560 Series Switches.

  背景:

  Etherchannel load-balance工作是基于所配置的對于不同流量的哈希算法所得到的0-7這8個哈希值的。哈希的結果我們叫做 Result Bundle Hash (RBH)

  注意哈希值是根據我們所配置的load-balancing 的算法來確定的。下面是一個例子:

  Source 192.168.1.1 (mac a.a.a ) sending a tcp stream to 172.16.1.1 ( mac b.b.b )

  with a source tcp port of 50 and destination port 2000

  Source 192.168.1.1 (mac a.a.a ) sending a tcp stream to 209.165.201.1 ( mac c.c.c )

  with a source tcp port of 60 and destination 2000.

  If configured load balancing algorithm is SRC_MAC

  Then no of flows = 1

  If configured load balancing algorithm is DST_MAC

  Then no of flows = 2

  If configured load balancing algorithm is DST_PORT

  Then no of flows= 1

  Catalyst 6500 系列

  1, 查在用的load-balance算法

  2, 進入switch processor (SP),敲show etherchannel load-balance:

  6500#remote login sw

  Trying Switch ...

  Entering CONSOLE for Switch

  Type "^C^C^C" to end this session

  6500−sp#show etherchannel load−balance

  EtherChannel Load−Balancing Configuration:

  src−dst−ip

  mpls label−ip

  3, 查具體某一條flow的RBH 值:

  6500−sp#test etherchannel load−balance interface port−channel

  在上面的例子中,這條flow是在192.168.1.1 和172.16.1.1,問題中的Portchannel是port-channel 1。如果我們配置的算法是基于src-dst ip 的,那我們就填入源目IP: 192.168.1.1 和 172.16.1.1:

  6500−sp#test etherchannel load−balance int port−channel 1 ip 192.168.1.1 172.16.1.1

  Computed RBH: 0x5

  Would select Gi3/2 of Po1

  4, 在一些IOS中是不會去顯示流量從哪個具體物理接口的,可以使用如下的方法:

  在RP的console中敲show interface port−channel etherchannel。 然后再按照下面的方法計算出來是哪個物理端口:

  6500#show interface port−channel 1 etherchannel

  Port−channel1 (Primary aggregator)

  Age of the Port−channel = 0d:01h:05m:54s

  Logical slot/port = 14/1 Number of ports = 2

  HotStandBy port = null

  Port state = Port−channel Ag−Inuse

  Protocol = LACP

  Fast−switchover = disabled

  Ports in the Port−channel:

  Index Load Port EC state No of bits

  −−−−−−+−−−−−−+−−−−−−+−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−

  0 55 Gi3/1 Active 4

  1 AA Gi3/2 Active 4

  在輸出中load一欄可以看到兩個Portchannel中的接口分別為55 和AA。

  我們分別將55和AA轉換為2進制后,用下面的方法來確定RBH值對應的物理接口是哪個:

Cisco:如何查看某一條流在etherchannel中走哪一條物理link

  像上面這樣,AA對應的2進制是1010 1010;55對應的是0101 0101 。然后再從7-0進行匹配,對應1的就是該接口所對應的RBH值。

  在上面例子中,G3/2對應的RBH值為:1 3 5 7;G3/1對應的是0 2 4 6

  這樣我們再得到RBH值之后就能夠用這種方法匹配出對應接口。

  Catalyst 4500 系列交換機

  1, 檢查load-balancing算法: show etherchannel load-balance

  2, 用如下命令查看:

  4500#show platform software etherchannel port−channel 1 map ip 192.168.1.1 172.16.1.1

  Map port for IP 192.168.1.1, 172.16.1.1 is Gi3/1(Po1)

  NOTE: Software forwarded traffic uses Gi3/1(Po1)

  Catalyst 3750 系列交換機:

  使用如下命令:

  test etherchannel load−balance interface port−channel

  舉個例子:

  3750(config)#port−channel load−balance src−dst−ip

  3750#show etherchannel load−balance

  EtherChannel Load−Balancing Configuration:

  src−dst−ip

  3750#test etherchannel load−balance interface port−channel 1 ip 192.168.1.1 172.16.1.1

  Would select Gi3/1 of Po1

  如果算法是基于MAC地址的,根據源目MAC也可以用該命令找到物理端口。

400-0806-056
主站蜘蛛池模板: 综合国产在线观看无码| 欧美精品国产日韩综合在线| 丁香五月天综合缴情网| 亚洲欧美成人综合久久久| 亚洲伊人久久大香线蕉综合图片| 欧美亚洲综合另类| 久久综合综合久久狠狠狠97色88| 国产精品天干天干综合网| 天天干天天射综合网| 一本久久a久久精品综合夜夜| 国产香蕉尹人综合在线| 欧美日韩一区二区综合| 丁香色欲久久久久久综合网| 国产在线一区二区综合免费视频| 亚洲色婷婷综合久久| 欧美日韩国产综合视频一区二区二| 欧美久久综合性欧美| 久久综合一区二区无码| 综合欧美亚洲日本| 国产成人精品综合久久久| 日日AV色欲香天天综合网| 中文网丁香综合网| 久久婷婷五月综合色奶水99啪| 精品久久综合1区2区3区激情| 热综合一本伊人久久精品| 国产成+人+综合+亚洲欧美| 精品国产综合成人亚洲区| 色天使久久综合网天天| 97久久婷婷五月综合色d啪蜜芽| 欧美色综合天天综合高清网| 亚洲五月激情综合图片区| 色综合久久88色综合天天| 国产成+人+综合+欧美亚洲| 色综合天天综合婷婷伊人| 色狠狠色狠狠综合天天| 亚洲色婷婷综合久久| 欧美综合区自拍亚洲综合天堂| 色诱久久久久综合网ywww| 综合国产精品第一页| 国产色婷婷五月精品综合在线| 2020国产精品亚洲综合网|