04-02-2019 10:21 PM - edited 04-02-2019 10:22 PM
All I want is to ping across both PCs in vlan 10 but 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
Solved! Go to Solution.
04-04-2019 04:08 AM
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.
04-02-2019 10:39 PM
04-02-2019 11:22 PM
Hi,
Please collect some logs from both switches:
Show mac address-table
Show interface trunk
show CDP neighbor
04-02-2019 11:43 PM
04-03-2019 12:12 AM
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...
04-03-2019 05:52 AM
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!
04-03-2019 11:18 PM
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
04-04-2019 01:25 AM
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.
04-04-2019 04:08 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide