cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1388
Views
0
Helpful
8
Replies

vlan ping help

networkinggeek
Level 1
Level 1

 

 

All I want is to ping across both PCs in vlan 10 Capture.JPGbut I cannot, what am I missing here?

SW1#show running-config int gigabitEthernet 0/0
Building configuration...

Current configuration : 122 bytes
!
interface GigabitEthernet0/0
switchport access vlan 10
switchport mode access
media-type rj45
negotiation auto
end

SW1#show running-config int gigabitEthernet 0/1
Building configuration...

Current configuration : 132 bytes
!
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
media-type rj45
negotiation auto
end

SW1#show running-config int vlan 10
Building configuration...

Current configuration : 39 bytes
!
interface Vlan10
no ip address
end

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

SW2#show running-config interface gigabitEthernet 0/0
Building configuration...

Current configuration : 122 bytes
!
interface GigabitEthernet0/0
switchport access vlan 10
switchport mode access
media-type rj45
negotiation auto
end

SW2#show running-config interface gigabitEthernet 0/1
Building configuration...

Current configuration : 132 bytes
!
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
media-type rj45
negotiation auto
end

SW2#show running-config interface vlan10
Building configuration...

Current configuration : 39 bytes
!
interface Vlan10
no ip address
end

---

PC-2> sh ip

NAME : PC-2[1]
IP/MASK : 192.168.1.1/24
GATEWAY : 0.0.0.0
DNS :
MAC : 00:50:79:66:68:01
LPORT : 10002
RHOST:PORT : 127.0.0.1:10003
MTU: : 1500

---


NAME : PC-1[1]
IP/MASK : 192.168.1.2/24
GATEWAY : 0.0.0.0
DNS :
MAC : 00:50:79:66:68:00
LPORT : 10004
RHOST:PORT : 127.0.0.1:10005
MTU: : 1500

PC-1> ping 192.168.1.1
host (192.168.1.1) not reachable



1 Accepted Solution

Accepted Solutions

Hello


@networkinggeek wrote:

Yes this in gns3


That's your problem not your switch config, I assume your using the Etherswitch router in GNS3?

 

For trunks and access ports use fa1/0 onwards , Also make the interfaces duplex and speed modes to auto, you should see your connection.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

8 Replies 8

jalejand
Cisco Employee
Cisco Employee
Nothing wrong on that particular configuration.
Is that GNS3?

Is SW1 learning PC1 mac address in gi0/0 for vlan 10?
Is SW1 learning PC2 mac address in gi0/1 for vlan 10?
Same for SW2.

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

Please collect some logs from both switches:

Show mac address-table

Show interface trunk

show CDP neighbor 

 

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

colin.parkinson
Level 1
Level 1
Put G0/1 into vlan 10?

At the minute it’s a trunk port

Hello,

 

on a side note, make sure you have not inadvertently connected the PCs (or one PC) to the trunk port and vice versa, connected the inter-switch link through (one of ) the access ports...

So in short make sure your physical links match the logical configuration...

brselzer
Cisco Employee
Cisco Employee

Hello,

 

I see you created the SVI but did you create the layer 2 vlan? On both switches:

 

conf t

vlan 10

end

 

Hope that helps!

-Bradley Selzer
CCIE# 60833

Yes this in gns3, I do have vlan10 configured on both switches
I do not have anything in mac address table, when I try to ping from my pc1 to pc2 it says not reachable.

 

Am I doing SVI right? what gateway should I configure on vpcs?  I feel like it is purely layer 2. not sure what I am missing

 

SW1#show int tr
SW1#show int trunk

Port Mode Encapsulation Status Native vlan
Gi0/1 on 802.1q trunking 1

Port Vlans allowed on trunk
Gi0/1 1-4094

Port Vlans allowed and active in management domain
Gi0/1 1,10

Port Vlans in spanning tree forwarding state and not pruned
Gi0/1 1,10

 

SW1#sh cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
D - Remote, C - CVTA, M - Two-port Mac Relay

Device ID Local Intrfce Holdtme Capability Platform Port ID
SW2 Gig 0/1 140 R S I Gig 0/1

Total cdp entries displayed : 1

 

SW2#show int trunk

Port Mode Encapsulation Status Native vlan
Gi0/1 on 802.1q trunking 1

Port Vlans allowed on trunk
Gi0/1 1-4094

Port Vlans allowed and active in management domain
Gi0/1 1,10,20

Port Vlans in spanning tree forwarding state and not pruned
Gi0/1 1,10,20

 

SW2#sh cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
D - Remote, C - CVTA, M - Two-port Mac Relay

Device ID Local Intrfce Holdtme Capability Platform Port ID
SW1 Gig 0/1 149 R S I Gig 0/1

Total cdp entries displayed : 1

 

 

Hi,

As both are in the same broadcast domain so default no required but cloud you try with below commands:

 

Start ping from the PC1 to PC2

 

Sw1"

vlan 10

exit

!

show mac address-table 

!
Sw2:

vlan 10

exit

!

show mac address-table 

!

 

Please note that after typing the exit command you will not get any error massage.

 

 

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

Hello


@networkinggeek wrote:

Yes this in gns3


That's your problem not your switch config, I assume your using the Etherswitch router in GNS3?

 

For trunks and access ports use fa1/0 onwards , Also make the interfaces duplex and speed modes to auto, you should see your connection.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul