cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3360
Views
0
Helpful
19
Replies

Ping Issue

Naveen Costa
Level 1
Level 1

There is this small problem with my setup that I can't figure out. What I want to achieve simply is gain remote access to my switch from the laptop.

 

I have two VLAN's for Data and Management,

Data VLAN 60 (10.60.0.230/24)

Management VLAN 99 (10.61.0.230/24).

 

I have configured a sub interface on the router for VLAN 99 and there is no issue pinging to that interface (g0/0.99). But I can't seem to figure out why I cannot ping the other router interface (s0/1/0).

 

Heres the link to the Packet tracer file - https://drive.google.com/file/d/1_EUBH4uAQzhdn2rgPA2fif3LnCcZ5FtU/view?usp=sharing

2 Accepted Solutions

Accepted Solutions

Hi,

Why is it happening?

As I checked that Switch is taking source VLAN 60 for sending a ping command but the router is denying because it will unable to understand the VLAN for VLAN 60 because of no VLAN 60 on the router. This issue must be resolved if you will choose a source keyword with ping command but due to limitation in the PT, this source keyword is not supported. 

 

Here are the logs:
ping source.png

 

interface Vlan60

mac-address 0001.6407.7701

ip address 10.60.0.230 255.255.255.0

!

interface Vlan99

mac-address 0001.6407.7702

ip address 10.61.0.230 255.255.255.0

 

 

Note: Shutdown the SVI VLAN 60 and ping will working start.

 

 

 

 

This is the reason that we guide to configure only a management SVI with IP address on Layer 2 switches.

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

View solution in original post

Yes indeed. There can only be one management interface on a layer 2 switch. That management interface could be Vlan 60 as well, IF you configure a corresponding layer 3 subinterface on the router, and then change the default gateway on the layer 2 switch. So the below would work as well (changes marked in bold):

 

Switch0

 

interface Vlan60
mac-address 0001.6407.7701
ip address 10.60.0.230 255.255.255.0
!
interface Vlan99
mac-address 0001.6407.7702
ip address 10.61.0.230 255.255.255.0
shutdown
!
ip default-gateway 10.60.0.100

 

Router 1

 

interface GigabitEthernet0/0

no ip address

duplex auto

speed auto

!

interface GigabitEthernet0/0.60

encapsulation dot1Q 60

ip address 10.60.0.100 255.255.255.0

!

interface GigabitEthernet0/0.99

encapsulation dot1Q 99

ip address 10.61.0.100 255.255.255.0

View solution in original post

19 Replies 19

Jaderson Pessoa
VIP Alumni
VIP Alumni
Is there a gateway configured on laptop?
Jaderson Pessoa
*** Rate All Helpful Responses ***

Yeah, I can connect to both the router from the laptop.

from where you cant ping? Because i cant open your archive.
Jaderson Pessoa
*** Rate All Helpful Responses ***

From the switch to the other side. I can't even ping the serial interface on Router 1.

It works if I configure a static route to 172.16.1.0/24 network with a L3 switch. Why can't I use a L2 switch without the need for a route even though I have added the ip default-gateway????

Hi,

I noticed two things:

1. No default gateway configured on the PC0. You must define a default gateway.

2. You are using Layer 2 switch for VLAN routing but Layer 2 switch can't perform Inter-VLAN routing. Here, You must select the Layer 3 switch for InterVLAN routing or extend the VLANs till to Router so the router can perform InterVLAN routing.

A layer 2 switch is Send packet to a destination on the basis of MAC address means it is totally working on the MAC address list but InterVLAN routing is required Route a Packet with help of IP address and Routing table. This is a basic difference between Layer 2 and Layer 3 switch.

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

Hi Deepak,

Thanks for the reply, I believe you have misunderstood my question. I'm totally aware of the difference between an L2 & L3 switch and I have also configured router of a stick in case I wanted to use inter vlan routing, but what I want to do is ping the routers s0/1/0 interface from the switch. Forget about PC0 since it's on another (VLAN 60).

Hello,

 

I am kind of lost on what you are asking...

 

Either way, in order to reach 10.61.0.230 (the management IP address in Vlan 99 on the switch) from the laptop, you need to shut the interface Vlan 60 down:

 

Switch0#conf t

Switch0(config)#interface Vlan 60

Switch0(config-if)#shut

 

That also allows you to ping 10.61.0.100 and 172.16.1.2 from the switch...

Hi Georg,
Thanks for the reply. So if I wanted to have multiple management interfaces configured, would the only option be to replace it with an L3 switch.

Yes indeed. There can only be one management interface on a layer 2 switch. That management interface could be Vlan 60 as well, IF you configure a corresponding layer 3 subinterface on the router, and then change the default gateway on the layer 2 switch. So the below would work as well (changes marked in bold):

 

Switch0

 

interface Vlan60
mac-address 0001.6407.7701
ip address 10.60.0.230 255.255.255.0
!
interface Vlan99
mac-address 0001.6407.7702
ip address 10.61.0.230 255.255.255.0
shutdown
!
ip default-gateway 10.60.0.100

 

Router 1

 

interface GigabitEthernet0/0

no ip address

duplex auto

speed auto

!

interface GigabitEthernet0/0.60

encapsulation dot1Q 60

ip address 10.60.0.100 255.255.255.0

!

interface GigabitEthernet0/0.99

encapsulation dot1Q 99

ip address 10.61.0.100 255.255.255.0

Thanks for the support Georg.

Hi,

Why is it happening?

As I checked that Switch is taking source VLAN 60 for sending a ping command but the router is denying because it will unable to understand the VLAN for VLAN 60 because of no VLAN 60 on the router. This issue must be resolved if you will choose a source keyword with ping command but due to limitation in the PT, this source keyword is not supported. 

 

Here are the logs:
ping source.png

 

interface Vlan60

mac-address 0001.6407.7701

ip address 10.60.0.230 255.255.255.0

!

interface Vlan99

mac-address 0001.6407.7702

ip address 10.61.0.230 255.255.255.0

 

 

Note: Shutdown the SVI VLAN 60 and ping will working start.

 

 

 

 

This is the reason that we guide to configure only a management SVI with IP address on Layer 2 switches.

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

So if I wanted use multiple management interfaces the only option would be using a L3 switch?

Hi,
As a short answer, Yes. But here is a question, Why would you want many management interfaces? In real life, A management interface/SVI must be secure and limited access.
Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!
Review Cisco Networking for a $25 gift card