02-18-2018 12:56 AM - edited 03-08-2019 01:54 PM
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.
02-18-2018 01:44 AM
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
02-19-2018 12:01 PM
02-19-2018 12:13 PM
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
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