cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1221
Views
0
Helpful
11
Replies

Unable to ping switches on different subnet/vlan

darrenoleary
Level 1
Level 1

I have two 2960 switches trunked via their respective GE ports and a 2620 router connected to port 1 on switch 1.

Ports 1 thru 12 are in vlan1, while ports 13 thru 24 are in vlan 2.

The router has a sub-interface created and associated to vlan2.

Devices configured as follows:

2960

interface vlan1 192.168.74.231 255.255.255.0

2620

interface FastEthernet 0/0 192.168.74.250 255.255.255.0

switchport mode trunk

interface FastEthernet 0/0.2 172.16.2.254 255.255.255.0

encapsulation dot1Q 2

From the router, I am able to ping the switch connected on port 1 as well as an end device in vlan2 with IP 172.16.2.1

From the end device, I AM able to ping the gateway - 172.16.2.254 - AND the router 192.168.74.250 but NOT the switch - 192.168.74.231 - that the device is connected to to get to the router.

Any suggestions on what I can do to fix this? Is there anything that I am missing?

I can provide the full running config if required.

thanks,

Darren

1 Accepted Solution

Accepted Solutions

I've just had a look at your config of the 2960 and where's VLAN 2, 3, 4, 10 in the VLAN Database?

vlan 2

name USER_DEVICES

!

vlan 3

!

View solution in original post

11 Replies 11

Leo Laohoo
Hall of Fame
Hall of Fame

Is interface VLAN 1 port unshut?

Yes, vlan1 interface is open (no shut).

I can ping the vlan1 address 192.168.74.231 from the router OK but no from an end device.

Similarly, I can telnet to the router but not to either of the switches from the end device.

sh_zy1234
Level 1
Level 1

Dose the 2960 have a route to the subnet 172.16.2.0?

To tell you the truth, I really don't know, but would have to say 'no'.

What should I be looking for in the switch config or what command should I use to configure accordingly?

navinder.singh
Level 1
Level 1

Hi,

Try to create the virtual interface for vlan 1 also in router 2620 i.e fa0/0.1

and encapsulation too might be helpful to you

What IP address, if any, should I give it?

Should I keep it as per other sub-interfaces ie 172.16.1.x or doesn't it matter?

Hi,

Tried this and still no luck unfortunately.

I have attached my configs for the router and the switch for everyones input.

regards

I've just had a look at your config of the 2960 and where's VLAN 2, 3, 4, 10 in the VLAN Database?

vlan 2

name USER_DEVICES

!

vlan 3

!

Hi,

Thanks for point that out.

I ended up clearing all config from the router and switch and startign from scratch.

I quickly found that there was other commands that I had either not implemented on either device or had put too much in.

All is working now perfectly. I am able to ping all machines in each subnet as well as each gateway, switch and router from any subnet including 192.168.x.x from any of the 172.16.x.x subnets and vice versa.

thanks again for you help.

regards,

Darren

Glad to be of assistance.

darrenoleary
Level 1
Level 1

Additional to this:

When I connect the end device into any port from 1-12 (vlan1) and attempt to ping any of the 172.16.x.254 addresses, I get no response.

Likewise, when I attempt to ping the same 172.16.x.254 addresses from the switches.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco