cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
544
Views
6
Helpful
10
Replies

VLAN Configuration not pinging to other terminal in different switch

cpdl2325
Level 1
Level 1

cpdl2325_0-1729943570894.png

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)

 

1 Accepted Solution

Accepted Solutions

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.

View solution in original post

10 Replies 10

balaji.bandi
Hall of Fame
Hall of Fame

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.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

cpdl2325_0-1729947377631.png

here is the ip 

cpdl2325_1-1729947501380.png

the first ping was terminal 1 to terminal 3 which are both vlan 10 and the second ping was from terminal 1 to terminal 7 which are also vlan 10 but in different switches. If it helps to identify I also attach the pkt file of from my screenshot

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.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

@cpdl2325 

  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.

here is the zip file I really appreciate the help

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.

 

FlavioMiranda_0-1729955700828.png

 

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?

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.

Here is the final scenario. Keeping your topology and working with subinterface. This is probably what you want.

Thank you so much I now get it I really appreciate the help.