cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1490
Views
5
Helpful
6
Replies

xor in etherchannel

prashantrecon
Level 1
Level 1

when we transfer  the data from site 1 to site 2

site1--172.x.x.98

site2--172.x.x.100

As two links are there in etherchannel and both sides are src-dst ip based loadbalance.

So when i transfer the data from site 1 it will choose link 0 right ? from site1

If i transfer the data from site 2 to site 1 ie from 172.x.x.100 to 172.x.x.98

Than which link will be selected? from site2

6 Replies 6

Lee Smitherman
Level 1
Level 1

Hi,  As far as I understand it,  if you are using TWO links in the channel and source-dest IP loadbalance then you use the last bit of the last octect to XOR

So 100 = 01100100   using the last bit of 0

       98 = 01100010 using the last bit of 0

XOR 0 and 0 = 0 so link 0.

So that would also be true of Site2 to site 1.

I did read an article (I cannot find) which in this scenareo would use other metrics to stop only one link being used.

nputOutput
AB
000
011
101
110
Select An Input Value

Is it is table right ?

It is, my appologies,  been a while since using XOR.  Corrected above.

So it will use Link 0

Yup. I found the article,  well actually its a book, If you can get hold of or borrow the CCNP Switch book (Cisco CCNP Switch 642-813) it has a fantastic overview of the above.

Correct table.

eXclusive OR (XOR) is "true" only when :

a)only one input is 1

b) at least one input is 1

both these conditions must be verified for the XOR result to be 1.

Alessio

Review Cisco Networking for a $25 gift card