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

How to ping a switch from a pc belongs to another vlan

Hello All,

 

I am quite new in this networking world and stuck somewhere. If anyone can help me, I would highly appreciate. 

 

I have this network topology where there are 3 switches and one router as networking device. Two end users are connected to Switch A and B and The router is connected to the switch C. I have established couple of vlans and then went successful. As you can see in the screenshot, I can ping from PC1 to switch A,  (because of Vlan 10), I can ping PC2 to switch B (because of VLAN 20). 

I have setup trunk between the switches.

My question is how can I lets say ping from PC1 to Switch C (102.168.20.5). 

 

Please see the screenshot attached. switch-vlan.PNG

 

Any help is highly appreciated.

I have also attached the packet tracer file, if you need it.

 

 

 

Thanks

1 Accepted Solution

Accepted Solutions

Hello,

 

in order for Vlan 10 and Vlan 20 to be able to communicate, you need to configure what is called a router on a stick. Review the attached file that provides end to end connectivity between all devices. I have made the following changes:

 

1. Added default gateways to all PCs, Servers, and switches

2. Changed the IP addressing to correspond to the Vlan

3. Configured inter-Vlan routing on the router

4. Added Vlans to the switches

5. Changed all links between the switches, and the link between the switch and the router, to trunks

View solution in original post

6 Replies 6

Is

192.168.20.3 the address of inter vlan 10 on Switch A,

192.168.20.4 the address of inter vlan 20 on Switch B,

192.168.20.5 the address of inter vlan 30 on Switch C?

 

If yes - this won't work

 

Yes they are atm.

Please suggest any changes that is required.

 

Thanks

Hello,

 

post the zipped Packet Tracer project (.pkt) file...

Please find the .pkt file in zipped folder attached.  Sorry i forgot to upload. 

Hello,

 

in order for Vlan 10 and Vlan 20 to be able to communicate, you need to configure what is called a router on a stick. Review the attached file that provides end to end connectivity between all devices. I have made the following changes:

 

1. Added default gateways to all PCs, Servers, and switches

2. Changed the IP addressing to correspond to the Vlan

3. Configured inter-Vlan routing on the router

4. Added Vlans to the switches

5. Changed all links between the switches, and the link between the switch and the router, to trunks

Hello Georg,

 

Thanks for looking into this for me and sending me the file (modified). You have clearly highlighted the changes that you made. Only one thing i didnt get it. I did a show running-config on router and came across 

 

interface FastEthernet0/0.10

encapsulation dot1Q 10

ip address 192.168.10.1 255.255.255.0

!

interface FastEthernet0/0.20

encapsulation dot1Q 20

ip address 192.168.20.1 255.255.255.0

 

So basically you  have divided the fa0/0 into two segments. One is FastEthernet0/0.10 and another is FastEthernet0/0.20 and for each you have added the corresponding gateway as the ip.  Can you please tell me whats the command to do that?

 

Thanks in advanced.