网络拓扑如下:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Server( ethernet-port 1   ethernet-port2   )

                                   |                 |

                    Swith 1 port        Swith 2 port 

服务器两网卡跨接到两台以太网交换机,交换机端口为access 模式。两网卡通过网卡绑定软件(inter Proset)进行绑定,双网卡绑定后工作主备模式。

备注:主机物理网卡两张(本地连接1和本地连接2),绑定后生成一新的虚拟机网卡,此处为team-public

交换机行为分析:

1、分别在交换机1和交换机2上查看MAC地址表

交换机1:
3750-1#sh mac-address-table interface f2/0/17

          Mac Address Table

-------------------------------------------

Vlan    Mac Address       Type        Ports

----    -----------       --------    -----

   1    <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />0013.725c.fe58    DYNAMIC     Fa2/0/17

Total Mac Addresses for this criterion: 1

交换机2
3750-2#sh mac-address-table interface f2/0/17

          Mac Address Table

-------------------------------------------

Vlan    Mac Address       Type        Ports

----    -----------       --------    -----

   1    0013.725c.fe57    DYNAMIC     Fa2/0/17

Total Mac Addresses for this criterion: 1

两交换机学到的主机MAC地址不一致,哪个是真实的呢?看看主机侧显示的情况。

2、 在主机查看网卡MAC地址:

Ethernet adapter team-public:

   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : Intel(R) Advanced Network Services

l Adapter

   Physical Address. . . . . . . . . : 00-13-72-5C-FE-58

   DHCP Enabled. . . . . . . . . . . : No

   IP Address. . . . . . . . . . . . : 192.168.114.115

   Subnet Mask . . . . . . . . . . . : 255.255.255.0 
   Default Gateway . . . . . . . . . : 192.168.114.200

在网络连接中观察两物理网卡的Locally Administered Address均为00-13-72-5C-FE-58
将交换机1的F2/0/17端口shutdown后,交换机2 F2/0/17的MAC地址发生了变化,由原来的0013.725c.fe57    变化为0013.725c.fe58  。期间ping丢包3-5个包。
结论

双网卡绑定后,交换机进行arp请求时,主机响应的是哪个mac地址,由网卡绑定程序负责将正确可正常通信的mac地址(00-13-72-5C-FE-58)发送给两交换机中的一台,另一交换机arp请求得到的MAC地址为网卡的真实mac地址非虚拟网卡MAC地址。通过此行为以确保,在任意时刻两交换机中仅有一台交换机得到可通信MAC地址,用于和主机通信。