cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
667
Views
1
Helpful
2
Replies

Can't connect to internet from PC through Home Lab

mepp10
Level 1
Level 1

Hello all, 

A bit of a newbie to the cisco real. I've taken Cisco R&S in college and in the Navy but only getting around to building my first home lab now. I'm having difficulties connecting to the internet from my pc that's hooked up to my switch and router. The router can ping 8.8.8.8 as well as see my PC in it's ARP table. The switch, however, can not ping 8.8.8.8. I feel like that narrows it down some but I am still having trouble seeing the disconnect. Any help would be appreciated. 

I have a line run from my home router to my 2821 G0/0 port. g0/1 goes to fa0/1 on the 3560 switch. fa0/2 goes to my PC.

Router: 

Building configuration...

Current configuration : 1840 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1-153
!
boot-start-marker
boot-end-marker
!
enable secret 5 X.X.X
enable password secret
!
no aaa new-model
dot11 syslog
!
!
ip cef
no ip dhcp use vrf connected
!
ip dhcp pool 153net
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8
!
!
no ip domain lookup
multilink bundle-name authenticated
!
!
!
!
!
archive
log config
hidekeys
!
!
!
!
!
interface GigabitEthernet0/0
ip address dhcp
ip access-group 101 in
ip nat outside
ip virtual-reassembly
duplex auto
speed 1000
!
interface GigabitEthernet0/1
ip address 192.168.2.1 255.255.255.0
ip access-group 100 in
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
no mop enabled
!
interface FastEthernet0/3/0
!
interface FastEthernet0/3/1
!
interface FastEthernet0/3/2
!
interface FastEthernet0/3/3
!
interface Serial0/0/0
no ip address
shutdown
no fair-queue
!
interface Serial0/1/0
no ip address
shutdown
!
interface Serial0/2/0
no ip address
shutdown
!
interface Vlan1
ip address dhcp
ip nat inside
ip virtual-reassembly
!
ip default-gateway 192.168.1.1
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 192.168.1.1
ip route 192.168.0.0 255.255.0.0 192.168.1.1
ip route 192.168.1.0 255.255.255.0 192.168.1.1
ip route 192.168.2.0 255.255.255.0 192.168.1.1
!
!
ip http server
no ip http secure-server
ip nat inside source list 10 interface GigabitEthernet0/0 overload
!
access-list 10 permit 192.168.1.0 0.0.0.255
access-list 10 deny any
access-list 10 permit 192.168.2.0 0.0.0.255
snmp-server community public RO
!
!
control-plane
!
!
line con 0
password X.X.X
line aux 0
line vty 0 4
password X.X.X
login
!
scheduler allocate 20000 1000
!
end




Switch:

Building configuration...

Current configuration : 1634 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname S1-153
!
!
no aaa new-model
system mtu routing 1500
vtp domain ORRM
vtp mode transparent
ip subnet-zero
!
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
description R1-G0/1
duplex full
!
interface FastEthernet0/2
description LT-153
switchport mode access
duplex full
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 192.168.1.4 255.255.255.0
!
ip default-gateway 192.168.1.1
ip classless
ip route 192.168.0.0 255.255.0.0 192.168.1.1
ip route 192.168.0.0 255.255.0.0 192.168.1.3
ip route 192.168.1.0 255.255.255.0 192.178.1.2
ip route 192.168.1.0 255.255.255.0 192.178.1.1
ip route 192.168.1.0 255.255.255.0 192.178.1.3
ip http server
!
!
control-plane
!
!
line con 0
line vty 0 4
login
line vty 5 15
login
!
end

PC:

192.168.2.10

255.255.255.0

192.168.1.1
1 Accepted Solution

Accepted Solutions

@mepp10 hi, as per my understanding your configuration need full revamp. below guide will give basic idea about cisco router configurations.

https://www.networkstraining.com/basic-cisco-router-configuration-steps/

1. 1st you need to understand router connects 2 networks. you need 2 IP ranges for 2 interfaces of router. (1 for your home internet connection which may have DHCP. and LAN ip range for your laptop and switch. these networks cannot be in same subnet if you are connecting your router.

2. NAT or direct routing. i prefer to suggest to use NAT instead of static routing because your lab is home lab. NAT  ACL need to be correct.

3. If you planning to use ACL on interface, make sure you are using correct subnets and ACL rules.

4. your laptop gateway need to be in same subnet in LAN interface. gateway is the default point to send traffic if traffic destination is out of local subnet.

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

View solution in original post

2 Replies 2

@mepp10 hi, as per my understanding your configuration need full revamp. below guide will give basic idea about cisco router configurations.

https://www.networkstraining.com/basic-cisco-router-configuration-steps/

1. 1st you need to understand router connects 2 networks. you need 2 IP ranges for 2 interfaces of router. (1 for your home internet connection which may have DHCP. and LAN ip range for your laptop and switch. these networks cannot be in same subnet if you are connecting your router.

2. NAT or direct routing. i prefer to suggest to use NAT instead of static routing because your lab is home lab. NAT  ACL need to be correct.

3. If you planning to use ACL on interface, make sure you are using correct subnets and ACL rules.

4. your laptop gateway need to be in same subnet in LAN interface. gateway is the default point to send traffic if traffic destination is out of local subnet.

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

I liked the way you worded your response and provided instruction through giving points to focus on. 

You helped me look at my configuration in a better way and it helped me to solve my problem.

Thanks again and cheers.

Sam

Review Cisco Networking for a $25 gift card