07-25-2021 07:17 AM
Hello everyone. In the interest of full disclosure, I've also posted this in other online communities but haven't found a solution yet. For starters, I'm a Cisco noob, comparatively speaking to others here. I'm trying to get more familiar with IOS and have started acquiring some test lab equipment at home. I have a Catalyst 3560 now and plan to add a couple more older devices to play with.
One thing I'm trying to figure out is why I can't ping IP addresses on the internet from the 3560. It's directly connected to a PC (192.168.50.121) through its gig interface. I can ping the PC from the switch but can't ping the PC's gateway (192.168.50.1) or anything beyond it on the internet.
Here's the config on the switch:
Current configuration : 3261 bytes ! version 12.2 no service pad service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname LU-CISCO-3560-8P-1 ! boot-start-marker boot-end-marker ! enable secret 5 ############################## ! username ##### privilege 15 secret 5 ############################## ! ! no aaa new-model system mtu routing 1500 vtp domain #####.com vtp mode transparent authentication mac-move permit ip subnet-zero ip domain-name #####.com ! ! ! ! crypto pki trustpoint TP-self-signed-21811##### enrollment selfsigned subject-name cn=IOS-Self-Signed-Certificate-21811##### revocation-check none rsakeypair TP-self-signed-21811##### ! ! crypto pki certificate chain TP-self-signed-21811##### certificate self-signed 01 ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ######## ## quit ! ! ! spanning-tree mode pvst spanning-tree etherchannel guard misconfig spanning-tree extend system-id ! vlan internal allocation policy ascending ! vlan 100 name #####_Default lldp run ! ip ssh version 2 ! ! ! interface FastEthernet0/1 ! interface FastEthernet0/2 ! interface FastEthernet0/3 ! interface FastEthernet0/4 ! interface FastEthernet0/5 ! interface FastEthernet0/6 ! interface FastEthernet0/7 ! interface FastEthernet0/8 ! interface GigabitEthernet0/1 description MANAGEMENT PORT switchport trunk encapsulation dot1q switchport mode trunk ! interface Vlan1 description MANAGEMENT VLAN ip address 192.168.50.122 255.255.255.0 no ip route-cache ! ip default-gateway 192.168.50.1 ip classless ip http server ip http secure-server ! ! ip sla enable reaction-alerts logging trap debugging no cdp run ! ! banner login ^CWelcome to #####!^C ! line con 0 exec-timeout 45 0 login local line vty 0 4 exec-timeout 45 0 privilege level 15 login local transport input ssh line vty 5 15 exec-timeout 45 0 privilege level 15 login local transport input ssh ! end
I imagine it's something obvious, but for the life of me I'm not seeing it. Thank you.
Solved! Go to Solution.
07-25-2021 07:33 AM
Hello
First of all your pc having its 2 network cards in the same network should not be possible i am assuming that are in different subnets
with the one of them having a default gateway of the router lan facing interface
also for the a non public routable network such as the one you have shown to access the internet you would require the router to perform NAT as the switch won’t be able to do this.
07-25-2021 07:33 AM
Hello
First of all your pc having its 2 network cards in the same network should not be possible i am assuming that are in different subnets
with the one of them having a default gateway of the router lan facing interface
also for the a non public routable network such as the one you have shown to access the internet you would require the router to perform NAT as the switch won’t be able to do this.
07-26-2021 06:13 AM
Hi Paul,
The 2nd adapter in the PC was in the same subnet and was statically assigned. The switch wasn't connected to any router at all, only directly to the PC through that 2nd network card.
My test lab is on the other side of the house from the one-and-only router I own, which is that Edgerouter. Is there a way to use the PC as a router to reroute traffic from the switch bound for the internet through the PC's primary network card (the one going back to the router)?
07-25-2021 09:55 PM
Hi kermit4ip,
Could you please try to access it now.
Regards,
Rupesh
07-26-2021 06:14 AM
Hi Rupesh, the question is no longer marked as spam. Thank you.
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