I have created a simple bus topology connecting 2 switches and a router, with each switch connected to their respective end devices through ordinary star topology. The switch model used was 3560-24PS and the router's being 2811.
- I have created a VLAN for each switch and assigned the interfaces connected to the end devices to the same VLAN, to form a subnet. Namely, Switch 1 end devices are part of VLAN 10 and Switch 2 devices part of VLAN 20.
- Next, I configured the interfaces of each switch that is connected to each other, and the interface of switch 2 which is connected to the router to be trunk ports, and enabled traffic for both VLANs.
- Then, I configured inter-VLAN routing in the router by configuring the router port interface connected to Switch 3 with 2 subinterfaces for each VLAN to act as each's default gateway.
- Finally, I configured each end device of both VLANs with static IPs and their respective default gateways. The default gateway of devices of VLAN 10 are configured with the IP of its router subinterface: 192.168.10.1 and VLAN 20: 192.168.20.1
Nevertheless, when attempting to send a simple PDU between a device in VLAN 10 to a device in VLAN 20, it shows "Failed". I tried pinging too using the command prompt. Why is this the case? Is there something that I am missing or overlooking? I have been extensively looking up resources online for days and cracking my skull,and tried different steps but to no avail. Please do help me as I need to figure this out to successfully carry out inter-VLAN communication for my networking module assignment for university which is a lot more complex than this simple example.
Edit:
Nodes(devices) of Switch 2(VLAN 20) can ping its default gateway but nodes of Switch 1(VLAN 10) cannot ping its default gateway. Moreover, as stated above, pinging between nodes of different VLANs don't work. Nevertheless, pinging between nodes of the same VLAN works.
For more information, I have decided to provide the MAC address tables for each switch as a user have requested it.
- Zac67 has kindly informed me that he thinks VLAN is not configured for Switch 1 interfaces based on the MAC table I provided. I do not think this is the case. When I hover my mouse over the switch, a pop-up box shows up showing each port interface's information. It shows each port interface that is connected to end device nodes are configured with a VLAN.
From my understanding which hopefully isn't wrong, the reason the MAC address table of Switch 1 is incomplete(and also Switch 2) is that the table is dynamic. There is a timeout before the information resets(like in real-life switch MAC tables). So, it only showed the information of certain ports because I only pinged certain nodes and not all connected to the switch, leading to ARP discovery of only the nodes that had communicated with the switch. I did ping other nodes but it may ahve timed-out.
If my reasoning is way off, I am sorry.
{}
preformat option.{}
) that is right next to the image option that you used.vlan <vlan number>
command (you can add things like VLAN names here, which is an easy way to check that you actually created it in the VLAN database), andexit
to write it to the VLAN database after you create the VLAN in the VLAN database.