|
发表于 2017-8-21 14:43:45
|
显示全部楼层
CAM Table Before Host B Communicates on the Network
当host B 就是你的网关IP 10.10.5.1、
Host A is connected to switch port 1 and Host B is connected to switch port 2.
Host A sends traffic to the switch.
The switch looks into the frame and records the source MAC address (of Host A) and places an entry into the CAM table. Host A is on switchport 1, has the MAC address of AAAA, VLAND ID of 1, and the timestamp.
Host B has not communicated with the switch yet.
Host A decides to communicate with Host B.
When Host A sends a frame to the switch destined to Host B, the switch notices the destination MAC address (for Host B) in the frame, queries the CAM table for that MAC address but doesn’t find it.
Because the destination MAC is unknown, the switch marks the frame for flooding and sends the unicast frame to all ports with the same VLAN association.
Host B responds to the unicast frame.
The switch records the incoming frame from Host B and records Host B’s MAC, switchport location, VLAN ID, and applies a timestamp.
The next time Host A sends a frame destined for Host B, the switch queries it’s CAM table, finds Host B in the table and sends the frame directly to Host B.
|
沙发
2017-8-21 14:43:45
回复(0)
收起回复
|