ตัวอย่างต้องการทราบ traffic ที่ flow ผ่านทาง load-balance link ซึ่งโดย default CEF จะ loadbalance by src-dst ip
โดยมีข้อมูลดังนี้
source address: 192.168.100.1
destination address: 192.168.200.1
C6509#sh ip route 192.168.200.0
Routing entry for 192.168.200.0/24
Known via "ospf 100", distance 110, metric 20
Tag 65001, type extern 1
Last update from 10.0.0.71 on Port-channel2, 03:51:18 ago
Routing Descriptor Blocks:
10.0.0.90, from 10.0.254.98, 03:51:18 ago, via Port-channel2
Route metric is 20, traffic share count is 1
Route tag 65001
* 10.0.0.71, from 10.0.254.20, 03:51:18 ago, via Port-channel2
Route metric is 20, traffic share count is 1
Route tag 65001
C6509#sh ip cef exact-route 192.168.100.1 192.168.200.1
192.168.100.1 -> 192.168.200.1 => IP adj out of Port-channel2, addr 10.0.0.90
C6509#sh mls cef exact-route 192.168.100.1 192.168.200.1
Interface: Po2, Next Hop: 10.0.0.90, Vlan: 1014, Destination Mac: 0012.0111.bbbb
C6509#sh etherchannel load-balance
EtherChannel Load-Balancing Configuration:
src-dst-ip
mpls label-ip
EtherChannel Load-Balancing Addresses Used Per-Protocol:
Non-IP: Source XOR Destination MAC address
IPv4: Source XOR Destination IP address
IPv6: Source XOR Destination IP address
MPLS: Label or IP
C6509#sh etherchannel load-balance hash-result int po2 ip 192.168.100.1 192.168.200.1
Computed RBH: 0x1
Would select Te4/2 of Po2
สรุปได้ว่ามี flow ของ 192.168.100.1 ----> 192.168.200.1 จะมี next-hop ไปที่ 10.0.0.90 แต่จะส่งออกทาง interface Te4/2 ซึ่งเป็นสมาชิกของ port-channel2
** อ้างอิง
Cisco IOS Software, s72033_rp Software (s72033_rp-ADVENTERPRISEK9_WAN-M), Version 12.2(33)SXI2a
Tuesday, May 11, 2010
[Cisco] How can find traffic flow across load-balance
Saturday, August 8, 2009
[Nokia] E71 ใช้ battery มากกว่าปกติเพราะ garmin xt
If you have just installed Garmin Mobile XT version 5.0.0.20 on your Mobile Phone (So far only verified on my Nokia E71 running Symbian OS), you may have notice that your battery life for you mobile phone seems to have reduce substantially from about 2 days before the installation to about 1 day.
This it seem is due to a background process that Garmin Mobile XT starts upon boot up of your Symbian operating system as well as upon running of the Mobile XT software.
Things you will need to verify if you are affected by this background process.
1.) An installed version of Garmin Mobile XT (Duh….)
2.) JBak Task Manager. (You can download it from: http://jbak.ru/jbaktaskman_en.php)
| Step 1 | Start JBakTaskMan |
| Step 2 | Select Menu >> Tools >> Processes |
| Step 3 | Type TSRAutoStart.exe |
If the process TSRAutoStart.exe is found, you are most likely affected by this background process wasting away your battery life.
How to kill the TSRAutostart?
| Step 1 | Follow the previous Step 1 – 3 |
| Step 2 | Select the process TSRAutoStart.exe |
| Step 3 | Select Menu >> Terminate process |
How to prevent TSRAutostart from auto loading upon boot up.
| Step 1 | Plug mobile phone to PC under Mass Storage mode (! important as directories used are otherwise hidden) |
| Step 2 | Delete file CardRunner.RSC in directory under Mobile Phone\Resource\plugins\CardRunner.RSC |
| Step 3 | Delete the file CardRunner.dll in directory under Mobile Phone\sys\bin\CardRunner.dll |
Permanent Fix.
Well if you are seeking a permanent fix, you could always try downloading the latest version of Garmin Mobile XT (Link: http://www8.garmin.com/support/collection.jsp?product=010-11034-00).
As of version 5.0.0.40, this background process is now an option that can be switched off, saving you the trouble of killing the process each time you run Garmin.
| Step 1 | Start GMobileXT (Duh…) |
| Step 2 | Goto Tools >> Settings >> System |
| Step 3 | Scroll down all the way till you see the option “Launch background service” |
| Step 4 | Select Disabled then Done to save |
h**p://www.symbian-freak.com/forum/viewtopic.php?p=440972
After installing v5.0.0.x0:
Turn OFF your S60
Turn S60 back ON
Launch JBak Taskman to see if TSRAutoStart.exe is running in Memory in Menu -> Tools -> Processes even though it's set as DISABLED by default in Tools -> Settings -> System -> Launch Background Services.
If TSRAutoStart.exe is running after S60 is turned ON, do this:
START GarminMXT v5.0.0.x0, goto Tools -> Settings -> System -> Launch Background Services and change to ENABLED.
EXIT GarminMXT, re-start GarminMXT and goto Tools -> Settings -> System -> Launch Background Services and change to DISABLED
Turn OFF S60
Turn ON S60
Launch JBak TaskMan to check that TSRAutoStart.exe ISN'T in Menu -> Tools -> Processes
Now:
START GarminMXT v5.0.0.x0
EXIT GarminMXT
Launch JBak TaskMan to check that TSRAutoStart.exe ISN'T in Menu -> Tools -> Processes
Now, you should find:
TSRAutoStart.exe doesn't start when you first turn ON your S60
TSRAutoStart.exe now CLOSES automatically when you exit GarminMXT v5.0.0.x0
It appears that GarminMXT v5.0.0.x0 when being installed, doesn't create the DISABLED entry and has to be done manually by setting to ENABLE, then DISABLE.
Thursday, June 11, 2009
[Linux] ใช้ wireshark บน text mode
ผมติดการใช้งาน wireshark แต่พอดีมาใช้บน linux แล้วเป็น text mode command line ใช้ tcpdump มันแสดงผลไม่สวยเห็น wireshark มีบน text เหมือนกันชื่อ tshark
[Cisco] QoS ทำการ marking ค่า DSCP แล้ว ไม่เห็นค่าที่ mark
Diagram
Thursday, December 4, 2008
[Linux] Compile cacti-spine แล้ว error
ผมใช้ ubuntu 8.10 เวลาจะ compile cacti-spine เองมัน error
ubuntu@hybitz:~/cacti-spine-0.8.7a$ ./configure
configure: error: cannot run /bin/bash config/config.sub
วิธีแก้คือ
aclocal
autoheader
libtoolize --force
automake --add-missing
autoconf
./configure
make
make install
Wednesday, November 5, 2008
[Troubleshoot] show tcam ที่ apply interface
sh tcam count
sh platform software tcam interface vl10 acl in ip
sh platform software tcam interface vl10 acl out ip
Monday, April 2, 2007
[Troubleshoot] ตรวจสอบว่า server เปิด port หรือเปล่า?
ผมมีปัญหาอยู่ว่าใช้งาน www ว่าเปิดใช้งานได้หรือเปล่า?
ผมจึง test ไปที่ port 80
#telnet www.google.co.th 80
GET / HTTP/1.0
Host: www.google.co.th
HTTP/1.0 200 OK
Cache-Control: private
Content-Type: text/html; charset=windows-874
Set-Cookie: PREF=ID=5b1649e656f8f15d:TM=1175486984:LM=1175486984:S=N34yIfvZSGMzc36h; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.co.th
Server: GWS/2.1
Date: Mon, 02 Apr 2007 04:09:44 GMT
Connection: Close
<----- DATA ------>