10-26-2024 04:59 AM
I already created subinterfaces, encapsulate, setup each ip address of terminals, the connection between switch and router is on trunk mode but I still can't ping other terminal with the same vlan on other switches(I can ping vlan 10 terminals on the same switches but not terminals from other switches)
Solved! Go to Solution.
10-26-2024 10:08 AM - edited 10-26-2024 10:09 AM
You dont need to replace the default gateway, they must be the same.
You can see the file attached. I only fixed the Router and the switch Sw2 and Sw3 and Terminal 1 and Terminal 6. You can ping from terminal 1 to 6 and vice versa.
What you need to do is:
On the router, remove the subinterfaces and add the IP address on the "physical" interfaces directly.
Connect each switch to its respective interfaces on the router.
Change the interface Fa0/1 on the switch side to Access on Vlan 1.
Bring the vlan 1 UP on the switch
conf t
int vlan 1
no shut
Then, assign the vlan1 to the interface where the terminal is connected.
Do it for all terminal and switches.
====================================================================
If you want to keep working with vlan 10, 20 and 30 it is also possible. For that, you need to create one subinterface for each Router´s interface.
Example
Interface GigabitEthernet0/0.10
ip add 192.168.10.1 255.255.255.0
Interface GigabitEthernet0/1.20
ip add 192.168.20.1 255.255.255.0
Interface GigabitEthernet0/2.30
ip add 192.168.30.1 255.255.255.0
Now, you can connect each switch to the respective interface. Keep the config on the switch side as is. Trunk on interface Fa0/1 and keep Terminal on respective interfaces.
10-26-2024 05:30 AM
Make sure you vlan created on all other switches and they are allowed in the trunk (i know you mentioned) - i would like to re-check.
show spann vlan X from all switches make sure you able to reach.
you are not able to ping other terminal (check any firewall) - does the terminal able to ping own gateway ?
can you post show ip interface brief and show run from Router and other devices.
10-26-2024 06:00 AM
10-26-2024 06:10 AM
I generally do not use PT - but looking at your output you have on the router only 1 interface configured for all the sub-interface, but interface may be only connected SW3
the configuration need to applied between SW1 to Router 2911 and SW2 to Router 2911 - that i do not see as per your output.
But if this routing ports you can not extend the Layer 2 VLAN in to other segment, that to work.
Router should be done using BVI if you like to hve Layer 2 or you need get in to Layer 3 segment with Routing in place for this to work.
once you make mind to go with BVI then you can have BVI with sub-interface.
10-26-2024 05:31 AM - edited 10-26-2024 05:33 AM
Check a few things and if you do not fix the problem, attach the pkt file here and let me see. You need to zip it first
-check if the terminals have the proper default-gateway configured on it.
-Check with you created the vlan on the switch with the command "vlan xxx"
-Dont configured IP address on the interface you used to create the subinterface, leave it as layer2 only.
-Make sure the switch interface for terminals is correct.
10-26-2024 05:55 AM
10-26-2024 08:19 AM
The problem was, you configured the interfaces of the router and created sub-interface on the interface Gi0/0;
if you create subinterface on the Gi0/0 for each vlan like that, you can´t connect the switches in the interface G0/1 and Gi0/2. You need to connect one switch to the interface Gi0/0, like I did below, and connect the remaining switches to this one.
You can test the file I am attaching and it is working. The topology is called Router in a stick.
If you want to connect each switch to individual interface on the router, you dont use subinterface, you configure IP address on each router´s interface.
Hope I could explain.
10-26-2024 09:37 AM
Can you elaborate more on configuring ip address on each interface of the router. I really appreciate the effort and thank you for fixing it. I'm just curious now and wanted to learn on how to configure it using the topology that I posted earlier.
So I'm gonna remove the sub interface then assign ip to each interface in the router? and do I also need to replace the default gateway on each terminal?
10-26-2024 10:08 AM - edited 10-26-2024 10:09 AM
You dont need to replace the default gateway, they must be the same.
You can see the file attached. I only fixed the Router and the switch Sw2 and Sw3 and Terminal 1 and Terminal 6. You can ping from terminal 1 to 6 and vice versa.
What you need to do is:
On the router, remove the subinterfaces and add the IP address on the "physical" interfaces directly.
Connect each switch to its respective interfaces on the router.
Change the interface Fa0/1 on the switch side to Access on Vlan 1.
Bring the vlan 1 UP on the switch
conf t
int vlan 1
no shut
Then, assign the vlan1 to the interface where the terminal is connected.
Do it for all terminal and switches.
====================================================================
If you want to keep working with vlan 10, 20 and 30 it is also possible. For that, you need to create one subinterface for each Router´s interface.
Example
Interface GigabitEthernet0/0.10
ip add 192.168.10.1 255.255.255.0
Interface GigabitEthernet0/1.20
ip add 192.168.20.1 255.255.255.0
Interface GigabitEthernet0/2.30
ip add 192.168.30.1 255.255.255.0
Now, you can connect each switch to the respective interface. Keep the config on the switch side as is. Trunk on interface Fa0/1 and keep Terminal on respective interfaces.
10-26-2024 10:18 AM
10-26-2024 06:14 PM
Thank you so much I now get it I really appreciate the help
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