cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4819
Views
35
Helpful
15
Replies

PC in vlan unable to ping router

Teoyucheng
Level 1
Level 1

VLANping.png

I have done the subinterfaces encapsulation on the router, done the switchport access vlan, switchport mode access

but i am not too sure where to put the switchport mode trunk and i am still unable to ping the router any help is appreciated

1 Accepted Solution

Accepted Solutions

Hello,

 

the problem was that Vlan 10 did not exist on the switch connected to the router. I manually created the Vlan. All links between the switches and the router must be trunks. Working file attached.

View solution in original post

15 Replies 15

Richard Burts
Hall of Fame
Hall of Fame

Your drawing shows information for r3 and r4. But shows only a single router. Is that significant?

 

If I interpret the drawing correctly the interface trunk should be FA0/1.

HTH

Rick

Im sorry but the R4 labeling is wrong it is supposed to be R3

 

balaji.bandi
Hall of Fame
Hall of Fame

You need to configure the Trunk port connected to the router.  (in your case as per the diagram fa 0/1)

 

still not working post the switch and router config ?

 

BB

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

How to Ask The Cisco Community for Help

 

It has already been trunked to Fa0/1

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

!

!

!

spanning-tree mode pvst

spanning-tree extend system-id

!

interface FastEthernet0/1

switchport mode trunk

!

interface FastEthernet0/2

switchport mode trunk

!

interface FastEthernet0/3

switchport mode trunk

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

 

 

 

 

!

interface GigabitEthernet0/1

ip address 172.16.70.1 255.255.252.0

duplex auto

speed auto

!

interface GigabitEthernet0/1.10

encapsulation dot1Q 10

ip address 172.16.10.1 255.255.252.0

!

interface GigabitEthernet0/1.20

encapsulation dot1Q 20

ip address 172.16.20.1 255.255.252.0

!

interface GigabitEthernet0/1.30

encapsulation dot1Q 30

ip address 172.16.30.1 255.255.252.0

!

interface GigabitEthernet0/1.90

encapsulation dot1Q 90

ip address 172.16.90.1 255.255.252.0

!

interface Serial0/0/0

no ip address

clock rate 2000000

shutdown

!

interface Serial0/0/1

no ip address

clock rate 2000000

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

network 172.16.8.0 0.0.3.255 area 0

network 172.16.20.0 0.0.3.255 area 0

network 172.16.28.0 0.0.3.255 area 0

network 172.16.88.0 0.0.3.255 area 0

network 172.16.68.0 0.0.3.255 area 0

Hello,

 

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

 

if you like to gigabit interface with subinterface 

 

interface GigabitEthernet0/1

no ip address 172.16.70.1 255.255.252.0

duplex auto

speed auto

no shutdown

 

create another subnet for VLAN 70 or 192.168.70.X  subnet

 

BB

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

How to Ask The Cisco Community for Help

I removed the ip and it still didnt work

Which PC (which IP address) cannot ping which IP address on the router ? You have put an IP address on the physical interface of the router, which means that this is the Vlan 1 IP address. Typically, your switches have an IP address in Vlan 1 as well.I have added the management IP addresses to the Vlan 1 interfaces of the three switches (see project file attached).

PC0 172.16.10.2  should be able to ping the 172.16.10.1 on the r4. I am still unable to ping with the file u sent

Hello,

 

the problem was that Vlan 10 did not exist on the switch connected to the router. I manually created the Vlan. All links between the switches and the router must be trunks. Working file attached.

It sounds like @Georg Pauwen has got it. If problems persist please post the output of these commands on the switch

show vlan

show interface trunk

show interface status

HTH

Rick

The only issue right now is that PC0 and PC1 are in vlan 10 PC2,3,4 are in vlan 20 and when i switchport access vlan 20 the vlan 10 stops working

Edit/ Create vlan 10 and 20 on switch connected to router

It works now but can i ask whats the command to manually make the vlan?

Edit/ vlan (number)

Review Cisco Networking for a $25 gift card