cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
444
Views
0
Helpful
3
Replies

Noob question from CCNA student

agustinmoscoso
Level 1
Level 1

I have a simple network topology. Three PC´s connected to a switch to a Router.
 Before creating VLANs and assigning interfaces to VLANs, I was able to ping the router from all PC´s. After creating 3 VLANs and setting gig0/1 to trunk mode wich is the port connected to the Router, I cannot ping the router anymore. The IP of the Router port wich is connected to the switch is 192.168.1.1/24 and the PC IP is 192.168.1.10/26. 
 Using the sim and ICMP I placed the packet from PC to Router. The packet reach the switch and the switch send the packet to another PC within the VLAN but not the router. What am I missing here ? Thanks in advance. 




AIM
3 Replies 3

Hello,

 

the problem is most likely that you have not configured subinterfaces for each VLAN on the router (my apologies if you have).

Let's say your switch is connected to interface FastEthernet0/0 on the router, and you have three VLANs, 1,2, and 3. The router then would need to be configured as below:

 

interface FastEthernet0/0.1

encapsulation dot1q 1

ip address 192.168.1.1 255.255.255.0

 

interface FastEthernet0/0.2

encapsulation dot1q 2

ip address 192.168.2.1 255.255.255.0

 

interface FastEthernet0/0.3

encapsulation dot1q 3

ip address 192.168.3.1 255.255.255.0

I thought it was related to that. Thank you very much Sir. I aprecciate it.



AIM

I agree with Georg that it is most likely that the problem here is with the configuration of trunking subinterfaces on the router. But I also notice this in both of your posts

ping mysocial-life.com
Request time out.

 

Failure to ping when specifying the destination name could also be caused by problems with DNS name resolution. What happens if you attempt to ping specifying the IP address of the destination?

 

HTH

 

Rick

HTH

Rick