04-24-2018 09:27 AM - edited 03-08-2019 02:47 PM
Hello,
Im trying to connect 2 hosts via a Cisco Catalyst 2960 switch. I want to send traffic between both hosts in 3 different VLANs (10,11 and 12). Both hosts are in the same subnet (172.16.10.0/24). I configured the switch as follows:
-Host 1:
configure terminal
interface Fa0/1
switchport mode trunk
switchport trunk allowed vlan 1,10,11,12
end
- Host 2:
configure terminal
interface Fa0/2
switchport mode trunk
switchport trunk allowed vlan 1,10,11,12
end
When pinging from host 1 (172.16.10.10) to host 2 (172.16.10.20), i get the following log error:
*Mar 1 00:18:12.314: %SW_MATM-4-MACFLAP_NOTIF: Host 082e.5f2f.70e2 in vlan 11 is flapping between port Fa0/1 and port Fa0/2
*Mar 1 00:18:12.314: %SW_MATM-4-MACFLAP_NOTIF: Host 082e.5f2f.70e2 in vlan 12 is flapping between port Fa0/1 and port Fa0/2
*Mar 1 00:18:12.314: %SW_MATM-4-MACFLAP_NOTIF: Host 082e.5f2f.70e2 in vlan 10 is flapping between port Fa0/1 and port Fa0/2
I am a newbie at networking and i dont really know what is causing the problem.
Thanks in advance.
04-24-2018 09:32 AM
Hi,
The ports that are facing the hosts need to be in one vlan and configured as access and not trunk.
configure terminal
interface Fa0/1
switchport mode access
switchport access vlan x
end
- Host 2:
configure terminal
interface Fa0/2
switchport mode access
switchport access vlan x
HTH
04-24-2018 09:42 AM
04-24-2018 09:46 AM - edited 04-24-2018 09:47 AM
Hi,
A regular host (laptop, desktop, printer, etc..) usually reside in one vlan. On the other hand, devices like servers, VMs, etc.. can support trunking and can be in multiple vlans.
If you want to test communication between vlans, you can simply put one host in one vlan and the other host in a different vlan.
example
host-1 in vlan 10 and ip segment 10.10.10.0/24
and host-2 in vlan 20 and ip address 10.10.20.0/24
your switch needs to support inter-vlan routing or you need a router.
Does this make sense?
HTH
04-24-2018 10:01 AM
04-24-2018 10:07 AM
is vlan trunking with dot1q enabled on these hosts?
04-24-2018 10:17 AM
04-24-2018 10:40 AM
Are the same vlan (10,11, and 12) added the hosts?
You need to have the same vlans on both sides.
HTH
04-25-2018 04:25 AM
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