cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
743
Views
0
Helpful
2
Replies

Ping from Vlan to Router issue

Cisco_Learner25
Level 1
Level 1

Hi Members,

I have attached a pic/diagram with this question. My question is very simple, I just got stuck somewhere. I got two PC's, one switch and one router. PC-One got the IP address 192.168.1.20/24 , PC-Two got the IP address 192.168.1.10/24, and Router's interface got the IP 192.168.1.1/24. There is a switch in between of these three device. All can Ping each other. But when I created the VLAN's in the Switch. After that, No device can ping any of the device. I'm doing this lab in Packet-Tracer. I'm going to attach the diagram with this email. Plus, I'm to paste the run-config's of Switch and Router. Could you please have a look on the config's, and guide me that what thing i'm doing wrong. I want to Ping the Router's interface from both PC's which his 192.168.1.1/24, because subnet is same according the IP address of PC's.
By the way, by having the router in between. Should I be able to ping both PC's to each other, even they are from different VLAN's, but with the same Sabnet. Need help. Thanks


Switch#show running-config

Building configuration...

 

Current configuration : 1139 bytes

!

version 12.1

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

spanning-tree mode pvst

!

interface FastEthernet0/1

switchport access vlan 10

switchport mode access

!

interface FastEthernet0/2

switchport trunk allowed vlan 10,20

switchport mode trunk

!

interface FastEthernet0/3

switchport access vlan 20

switchport mode access

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

!

interface FastEthernet0/24

!

interface Vlan1

no ip address

shutdown

!

!

!

!

line con 0

!

line vty 0 4

login

line vty 5 15

login

!

!

end

 -----------------------------------

 

Router#

 Building configuration...

 

Current configuration : 564 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Router

!

!

ip cef

no ipv6 cef

!

!

!

spanning-tree mode pvst

!

!

interface FastEthernet0/0

ip address 192.168.1.1 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Vlan1

no ip address

shutdown

!

ip classless

!

ip flow-export version 9

 

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

end

 

 

2 Replies 2

Dan Lukes
VIP Alumni
VIP Alumni

Your question is more appropriate in appropriate group of Cisco Learning Network (CLN).

 

Ryan Wright
Level 1
Level 1
I see a few issues

Your switch you need to add the Vlans 10 and vlan 20

# vlan 10
#name HR

#vlan 20
#name help desk

Router

You need vlan interfaces

#Interface vlan 10
#Ip address 192.168.1.1

#Interface vlan 20
#ip address 192.168.20.1

I would not use ip address on fast Ethernet port ..

You need to create a sub interface also known as router on a stick
Review Cisco Networking for a $25 gift card