cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2521
Views
10
Helpful
4
Replies

Can't ping host on same VLAN on a different switch

D Fine
Level 1
Level 1

This is probably CCNA 101, though I don't remember it on the exam = )
Host 1 can ping Host 3
Host 1 can not ping Host 2, nor can Host 2 ping Host 1

I need Host 1 and Host 2 to be able to ping each other (and communicate otherwise)

 

Switch 1                                                                                                                        Switch 2


Port 1 assigned VLAN 2                                                                                         Port 1 assigned VLAN 2

Host 1 attached to Port 1                                                                                              Host 2 attached to Port 1


Port 2 assigned VLAN 2
Host 3 attached to Port 3

 

Port 48 Trunk Allows VLAN 2  <------------------------------------------------------------->  Port 48 Trunk Allows VLAN 2

Trunk native 999                                                                                                          Trunk native 999

(No int vlan 2 command)                                                                                          (No int vlan 2 command)


If I do the following, Host 1 can now ping Host 2, and vice versa:

Trunk Allows VLAN 2   <------------------------------------------------------------->  Trunk Allows VLAN 2 
Trunk native 2                                                                                                      Trunk native 2

int vlan 2                                                                                                               int vlan 2 
ip address 192.168.2.22 255.255.255.0                                                               ip address 192.168.2.24 255.255.255.0


 

I've attached the configs of switch 1 and switch 2, which might make more sense then what I have above.

 

I need a little help understanding why these changes would allow hosts to ping across the trunk.  If I remove one or the other commands, pinging does not work.  Also, Is there a better way for me to accomplish what I need to do?

One thing that might make this more complicated is that host 1 on switch 1 is a server with a port channel configuration for NIC teaming.

 

Thank you

4 Replies 4

devils_advocate
Level 7
Level 7

What model of switch and what IOS is it running?

You shouldn't need to change the Native Vlan to 210 so something is not right.

Can you post the entire configurations of both switches in .txt files attached to this post?

Thanks

I've attached the configs to the original post...

Ganesh Hariharan
VIP Alumni
VIP Alumni

Hi,

In order to ping between the host in two different switches, you always required trunking to carry out vlans from one switch to other switch and which is been done in your configuration on port 48 by allowing plan 210. 

If you change the allowed vlan in on port 48 then pinging cannot work because plan is not spanned across the switch.

Hope that Helps..

- GI

Rate if Helpful

Hi there ,

From your show tech, i could see you have configured access and trunk on same host interface. I would suggest to remove those configuration and make it as access interface like below.

 


interface GigabitEthernet1/0/1
 description Server3 Port 1 on NIC 2
 switchport access
 switchport access vlan 2
 switchport nonegotiate
 spanning-tree portfast 
 spanning-tree guard root

 

your present configuration :

===================

interface GigabitEthernet1/0/1
 description Server3 Port 1 on NIC 2
 switchport access vlan 2
 switchport trunk allowed vlan 2
 switchport mode trunk
 switchport nonegotiate
 spanning-tree portfast trunk
 spanning-tree guard root

 

Also if i understand correctly then you said that both host are connected on port 1 on respective switch and trunk is port 48 .

but i could see one side switch is configured like above and other side switch interface gi0/1 dont have any configuration and dont find port 48 on both switches.

 

I would suggest below configuration for your requirement .

Switch 1 :

========

interface GigabitEthernet1/0/1
 switchport access
 switchport access vlan 2
 switchport nonegotiate
 spanning-tree portfast 
 spanning-tree guard root

interface gix/x
  switchport trunk allowed vlan 2,3
 switchport mode trunk

 

Switch 2:

=====

 

 

interface GigabitEthernet1/0/1
 switchport access
 switchport access vlan 2
 switchport nonegotiate
 spanning-tree portfast 
 spanning-tree guard root

 

interface gix/x
  switchport trunk allowed vlan 2,3
 switchport mode trunk

 

HTH
Regards,
VS.Suresh.
*Plz rate the usefull posts *

Review Cisco Networking for a $25 gift card