12-18-2018 05:21 AM - edited 03-08-2019 04:50 PM
Hi,
I'am trying to make a CISCO 2960 configuration. This switch will be connected to equipment and an other network. I need it to switch the frames depending on 2 parameters.
First the mac destination of the frame. I know how to do it with the command
mac address-table static 0300.0000.1595 vlan 1 interface FastEthernet 0/23
for example.
But I need also to specify the source port of the cisco in the command because a frame with same dest mac may be received from 2 port and the receiver port will not be the same.
Something like
mac address-table static 0300.0000.1595 vlan 1 interface FastEthernet 0/23 source_port FastEthernet 0/21
mac address-table static 0300.0000.1595 vlan 1 interface FastEthernet 0/19 source_port FastEthernet 0/18
or if I could specify different vlan for each port, and not allowing frame to be switched between specific vlan?
hence I should see 2 different entries in the "show mac address-table".
Thanks.
12-18-2018 06:18 AM - edited 12-18-2018 06:21 AM
Hi
If I understand what you're asking, you wish to switch a frame for the same destination mac address out of different switchports, conditional on the switchport the frame has come in on. The issue is that the mac address-table can only have one entry for a unique mac address reachable out a switchport per vlan.
In your example static entries i notice you have two pairs of src/dst switchports.
1. if traffic towards dst mac 0300.0000.1595 is received on fa0/21 send out fa0/23
2. if traffic towards dst mac 0300.0000.1595 is received on fa0/18 send out fa0/19
If this is the case then you can put each pair of ports in a different vlan, which will allow you to have a static entry for the same mac-address per vlan. So switchports fa0/21 and fa0/23 are configured in vlan 1; switchports fa0/18 and fa0/19 in vlan 2. We don't need to worry about the source switchport now, as we have separated the switching between ports at L2.
Example:
mac address-table static 0300.0000.1595 vlan 1 interface FastEthernet 0/23
mac address-table static 0300.0000.1595 vlan 2 interface FastEthernet 0/19
Hope this helps. Please rate if it does.
12-18-2018 07:26 AM
I'm not sure but I don't think that's possible. Groups of ports (ie vlan in your proposal) will not be always the same depending on the mac dest.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide